-
Notifications
You must be signed in to change notification settings - Fork 46
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
19 changed files
with
3,449 additions
and
288 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,21 @@ | ||
# 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 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[{*.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.txt,wp-config-sample.php}] | ||
end_of_line = crlf |
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,2 +1,3 @@ | ||
.idea/ | ||
vendor | ||
.idea | ||
vendor | ||
build |
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 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PSR-1 and PSR-2 code sniffs"> | ||
<description>Generally-applicable sniffs for modern PHP development</description> | ||
|
||
<rule ref="PSR1"> | ||
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" /> | ||
</rule> | ||
<rule ref="PSR2"> | ||
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" /> | ||
</rule> | ||
|
||
|
||
<!-- Check all PHP files in directory tree by default. --> | ||
<arg name="extensions" value="php"/> | ||
<file>.</file> | ||
|
||
<!-- Show progress and sniff codes in all reports --> | ||
<arg value="ps"/> | ||
|
||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
<exclude-pattern>*/languages/*</exclude-pattern> | ||
<exclude-pattern>*/deprecatded.php</exclude-pattern> | ||
</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,26 @@ | ||
language: php | ||
|
||
matrix: | ||
include: | ||
- php: 7.3 | ||
- php: 7.2 | ||
- php: 7.1 | ||
- php: 7.3 | ||
env: TRAVISCI=phpcs | ||
allow_failures: | ||
- php: 7.3 | ||
env: TRAVISCI=phpcs | ||
|
||
install: | ||
- composer install --dev --no-interaction | ||
|
||
script: | ||
- mkdir -p build/logs | ||
- php vendor/bin/phpunit -c phpunit.xml.dist | ||
- | | ||
if [[ "$TRAVISCI" == "phpcs" ]] ; then | ||
php vendor/bin/phpcs | ||
fi | ||
after_success: | ||
- travis_retry php vendor/bin/php-coveralls |
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.