59 lines
1.9 KiB
Diff
59 lines
1.9 KiB
Diff
diff -up ./php-cs-fixer.rpm ./php-cs-fixer
|
|
--- ./php-cs-fixer.rpm 2019-05-06 09:31:03.871240441 +0200
|
|
+++ ./php-cs-fixer 2019-05-06 09:32:17.127721736 +0200
|
|
@@ -43,27 +43,7 @@ set_error_handler(function ($severity, $
|
|
}
|
|
});
|
|
|
|
-$require = true;
|
|
-if (class_exists('Phar')) {
|
|
- // Maybe this file is used as phar-stub? Let's try!
|
|
- try {
|
|
- Phar::mapPhar('php-cs-fixer.phar');
|
|
- require_once 'phar://php-cs-fixer.phar/vendor/autoload.php';
|
|
- $require = false;
|
|
- } catch (PharException $e) {
|
|
- }
|
|
-}
|
|
-if ($require) {
|
|
- // OK, it's not, let give Composer autoloader a try!
|
|
- if (file_exists($a = __DIR__.'/../../autoload.php')) {
|
|
- require_once $a;
|
|
- } else {
|
|
- require_once __DIR__.'/vendor/autoload.php';
|
|
- }
|
|
-
|
|
- unset($a);
|
|
-}
|
|
-unset($require);
|
|
+require_once '/usr/share/php/PhpCsFixer/autoload.php';
|
|
|
|
use Composer\XdebugHandler\XdebugHandler;
|
|
use PhpCsFixer\Console\Application;
|
|
diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCommand.php
|
|
--- ./src/Console/Command/HelpCommand.php.rpm 2019-05-06 09:29:43.000000000 +0200
|
|
+++ ./src/Console/Command/HelpCommand.php 2019-05-06 09:31:03.871240441 +0200
|
|
@@ -379,6 +379,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 2019-05-06 09:29:43.000000000 +0200
|
|
+++ ./tests/AutoReview/ProjectCodeTest.php 2019-05-06 09:31:03.872240448 +0200
|
|
@@ -412,8 +412,11 @@ final class ProjectCodeTest extends Test
|
|
->files()
|
|
->name('*.php')
|
|
->in(__DIR__.'/../../src')
|
|
+ ->notName('autoload.php')
|
|
->exclude([
|
|
'Resources',
|
|
+ 'diff',
|
|
+ 'tests',
|
|
])
|
|
;
|
|
|