File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ indent_style = tab
1111indent_size = tab
1212tab_width = 4
1313
14- [{* .json, * .yaml, * .yml, * .md} ]
14+ [{* .json,* .yml, * .yaml, * .md} ]
1515indent_style = space
1616indent_size = 2
Original file line number Diff line number Diff line change 66/composer.lock
77
88# Tests
9- /temp
10- /coverage.html
119/coverage.xml
Original file line number Diff line number Diff line change @@ -7,23 +7,23 @@ qa: phpstan cs
77
88cs :
99ifdef GITHUB_ACTION
10- vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
10+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --colors -nsp -q --report=checkstyle src tests | cs2pr
1111else
12- vendor/bin/codesniffer src tests
12+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --colors -nsp src tests
1313endif
1414
1515csf :
16- vendor/bin/codefixer src tests
16+ vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --colors -nsp src tests
1717
1818phpstan :
1919 vendor/bin/phpstan analyse -c phpstan.neon
2020
2121tests :
22- vendor/bin/tester -s -p php --colors 1 -C tests/cases
22+ vendor/bin/tester -s -p php --colors 1 -C tests/Cases
2323
2424coverage :
2525ifdef GITHUB_ACTION
26- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/cases
26+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/Cases
2727else
28- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/cases
28+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/Cases
2929endif
Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ includes:
66
77parameters :
88 level : 9
9+ phpVersion : 80000
10+
11+ scanDirectories :
12+ - src
13+
14+ fileExtensions :
15+ - php
16+
917 paths :
1018 - src
19+
1120 ignoreErrors :
12- - '#^Return type \ (string\|null\ ) of method Contributte\\Guzzlette\\Tracy\\Panel::getPanel\ (\ ) should be covariant with return type \ (string\ ) of method Tracy\\IBarPanel::getPanel\ (\ )$ #'
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" ?>
2- <ruleset >
3- <!-- Contributte Coding Standard -->
1+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
2+ <ruleset name = " Contributte " xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi : noNamespaceSchemaLocation = " vendor/squizlabs/php_codesniffer/phpcs.xsd " >
3+ <!-- Rulesets -->
44 <rule ref =" ./vendor/ninjify/coding-standard/contributte.xml" />
55
6- <!-- Specific rules -->
7- <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
8- <properties >
9- <property name =" rootNamespaces" type =" array" value ="
10- src=>Contributte\Guzzlette,
11- " />
12- <property name =" ignoredNamespaces" type =" array" value ="
13- Tests\Contributte\Guzzlette
14- " />
15- </properties >
16- </rule >
6+ <!-- Rules -->
7+ <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
8+ <properties >
9+ <property name =" rootNamespaces" type =" array" >
10+ <element key =" src" value =" Contributte\Guzzlette" />
11+ <element key =" tests" value =" Tests" />
12+ </property >
13+ </properties >
14+ </rule >
1715
18- <!-- Exclude folders -->
19- <exclude-pattern >/tests/tmp</exclude-pattern >
16+ <!-- Excludes -->
17+ <exclude-pattern >/tests/tmp</exclude-pattern >
2018</ruleset >
21-
You can’t perform that action at this time.
0 commit comments