43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
diff -up ./php-cs-fixer.rpm ./php-cs-fixer
|
|
--- ./php-cs-fixer.rpm 2017-08-03 11:05:45.000000000 +0200
|
|
+++ ./php-cs-fixer 2017-08-03 11:52:15.526145624 +0200
|
|
@@ -40,12 +40,7 @@ set_error_handler(function ($severity, $
|
|
}
|
|
});
|
|
|
|
-// installed via composer?
|
|
-if (file_exists($a = __DIR__.'/../../autoload.php')) {
|
|
- require_once $a;
|
|
-} else {
|
|
- require_once __DIR__.'/vendor/autoload.php';
|
|
-}
|
|
+require_once '/usr/share/php/PhpCsFixer/autoload.php';
|
|
|
|
use PhpCsFixer\Console\Application;
|
|
|
|
diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCommand.php
|
|
--- ./src/Console/Command/HelpCommand.php.rpm 2017-08-03 11:05:45.000000000 +0200
|
|
+++ ./src/Console/Command/HelpCommand.php 2017-08-03 11:52:15.526145624 +0200
|
|
@@ -343,6 +343,8 @@ EOF
|
|
{
|
|
static $version = null;
|
|
|
|
+ return Application::VERSION;
|
|
+
|
|
if (null !== $version) {
|
|
return $version;
|
|
}
|
|
diff -up ./tests/AutoReview/ProjectCodeTest.php.rpm ./tests/AutoReview/ProjectCodeTest.php
|
|
--- ./tests/AutoReview/ProjectCodeTest.php.rpm 2017-08-03 11:05:45.000000000 +0200
|
|
+++ ./tests/AutoReview/ProjectCodeTest.php 2017-08-03 11:52:47.461317357 +0200
|
|
@@ -310,8 +310,10 @@ final class ProjectCodeTest extends Test
|
|
->files()
|
|
->name('*.php')
|
|
->in(__DIR__.'/../../src')
|
|
+ ->notName('autoload.php')
|
|
->exclude([
|
|
'Resources',
|
|
+ 'tests',
|
|
])
|
|
;
|
|
|