summaryrefslogtreecommitdiffstats
path: root/php-cs-fixer-autoload.patch
blob: b3202a2d0d05b8440e29f3b4f35ded9fabc2eca0 (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-04-01 08:35:52.000000000 +0200
+++ ./php-cs-fixer	2017-04-01 08:48:58.016723873 +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-04-01 08:50:31.217299123 +0200
+++ ./tests/AutoReview/ProjectCodeTest.php	2017-04-01 08:51:10.127539283 +0200
@@ -314,6 +314,7 @@ final class ProjectCodeTest extends \PHP
             ->files()
             ->name('*.php')
             ->in(__DIR__.'/../../src')
+            ->notName('autoload.php')
             ->exclude(array(
                 'Resources',
             ))