File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ before_install:
24
24
install : travis_retry composer update --prefer-dist
25
25
26
26
script :
27
- - vendor/bin/ phpcs
27
+ - make phpcs
28
28
- vendor/bin/phpunit
29
29
- make test-report
30
30
Original file line number Diff line number Diff line change 1
- .PHONY : test test-report test-fix update-compatibility-patch
1
+ .PHONY : test phpcs test-report test-fix update-compatibility-patch
2
2
3
3
PHP_74_OR_NEWER =` php -r " echo (int) version_compare(PHP_VERSION, '7.4', '>=');" `
4
4
5
5
test : test-report test-fix
6
6
7
+ phpcs :
8
+ @if [ $( PHP_74_OR_NEWER) -eq 1 ]; then git apply tests/php-compatibility.patch; fi
9
+ @vendor/bin/phpcs src
10
+ @if [ $( PHP_74_OR_NEWER) -eq 1 ]; then git apply -R tests/php-compatibility.patch; fi
11
+
7
12
test-report : vendor
8
13
@if [ $( PHP_74_OR_NEWER) -eq 1 ]; then git apply tests/php-compatibility.patch; fi
9
14
@vendor/bin/phpcs ` find tests/input/* | sort` --report=summary --report-file=phpcs.log; diff tests/expected_report.txt phpcs.log; if [ $$ ? -ne 0 ] && [ $( PHP_74_OR_NEWER) -eq 1 ]; then git apply -R tests/php-compatibility.patch; exit 1; fi
Original file line number Diff line number Diff line change 1
1
diff --git a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
2
- index 1905143..518a85b 100644
2
+ index eee1c6f..742226e 100644
3
3
--- a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
4
4
+++ b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
5
5
@@ -11,11 +11,10 @@ use Unleashed\SniffHelper;
You can’t perform that action at this time.
0 commit comments