summaryrefslogtreecommitdiffstats
path: root/php-cs-fixer-autoload.patch
blob: eaf2d30cf3dcc0dc04cce56b21dbccd8a3f17bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -up ./php-cs-fixer.rpm ./php-cs-fixer
--- ./php-cs-fixer.rpm	2017-05-09 07:05:56.000000000 +0200
+++ ./php-cs-fixer	2017-05-09 07:15:40.115301425 +0200
@@ -42,12 +42,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 ./tests/AutoReview/ProjectCodeTest.php.rpm ./tests/AutoReview/ProjectCodeTest.php
--- ./tests/AutoReview/ProjectCodeTest.php.rpm	2017-05-09 07:15:40.116301430 +0200
+++ ./tests/AutoReview/ProjectCodeTest.php	2017-05-09 07:17:15.735775739 +0200
@@ -314,6 +314,7 @@ final class ProjectCodeTest extends \PHP
             ->files()
             ->name('*.php')
             ->in(__DIR__.'/../../src')
+            ->notName('autoload.php')
             ->exclude([
                 'Resources',
             ])