-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
159 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
tab_width = 4 | ||
indent_style = tab | ||
insert_final_newline = false | ||
trim_trailing_whitespace = true | ||
|
||
[*.txt] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{md,json,yml}] | ||
trim_trailing_whitespace = false | ||
indent_style = space | ||
indent_size = 2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
{ | ||
"name": "a5hleyrich/wp-queue", | ||
"name": "deliciousbrains/wp-queue", | ||
"description": "WordPress job queues", | ||
"keywords": ["wordpress","queue","job"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Ashley Rich", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Delicious Brains", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.5.0", | ||
"nesbot/carbon": "^1.22" | ||
"php": ">=7.3.0", | ||
"nesbot/carbon": "^2.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
@@ -22,7 +26,16 @@ | |
] | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~5.7.0", | ||
"10up/wp_mock": "0.2.0" | ||
"phpunit/phpunit": "^9.0.0", | ||
"10up/wp_mock": "^0.4.2", | ||
"humanmade/coding-standards": "^1.1", | ||
"php-stubs/wp-cli-stubs": "^2.6", | ||
"phpstan/phpstan": "^1.4", | ||
"szepeviktor/phpstan-wordpress": "^1.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Delicious Brains"> | ||
<!-- Files or directories to check --> | ||
<file>.</file> | ||
|
||
<!-- Path to strip from the front of file paths inside reports (displays shorter paths) --> | ||
<arg name="basepath" value="." /> | ||
|
||
<!-- Use HM Coding Standards --> | ||
<rule ref="vendor/humanmade/coding-standards"> | ||
<!-- Namespace isn't required for all files. --> | ||
<exclude name="HM.Functions.NamespacedFunctions.MissingNamespace" /> | ||
<!-- Ignore rule expecting Namespaced directory. --> | ||
<exclude name="HM.Files.NamespaceDirectoryName.NoIncDirectory" /> | ||
<!-- File name and class name match is not necessary. --> | ||
<exclude name="HM.Files.ClassFileName.MismatchedName" /> | ||
<!-- Ignore class file name rule --> | ||
<exclude name="WordPress.Files.FileName.InvalidClassFileName" /> | ||
<!-- Ignore rule expecting hyphens in file name. --> | ||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> | ||
<!-- Don't require file comment header. --> | ||
<exclude name="Squiz.Commenting.FileComment.Missing" /> | ||
</rule> | ||
|
||
<!-- Ignore Snake case variables for tests --> | ||
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"> | ||
<exclude-pattern>/tests/*</exclude-pattern> | ||
</rule> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
includes: | ||
- vendor/szepeviktor/phpstan-wordpress/extension.neon | ||
parameters: | ||
level: 5 | ||
paths: | ||
- src | ||
scanFiles: | ||
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php | ||
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php | ||
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<phpunit colors="true" backupGlobals="false" bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="wp-queue"> | ||
<directory prefix="Test" suffix=".php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./src</directory> | ||
<exclude> | ||
<directory suffix=".php">./vendor</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" backupGlobals="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage includeUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<exclude> | ||
<directory suffix=".php">./vendor</directory> | ||
</exclude> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="wp-queue"> | ||
<directory prefix="Test" suffix=".php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,4 @@ public function jobs(); | |
*/ | ||
public function failed_jobs(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.