summaryrefslogtreecommitdiffstats
path: root/php-cs-fixer-autoload.patch
blob: 149c6e3f835da615adeac8a19b52456a7f65cdce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -up ./php-cs-fixer.rpm ./php-cs-fixer
--- ./php-cs-fixer.rpm	2016-12-01 15:13:25.882871262 +0100
+++ ./php-cs-fixer	2016-12-01 15:14:08.756051245 +0100
@@ -32,12 +32,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;