summaryrefslogtreecommitdiffstats
path: root/php-pear-PHP-CodeSniffer-rpm.patch
blob: 082cf2d4835a6535b98064696371ad608626503b (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
diff -up ./bin/phpcbf.rpm ./bin/phpcbf
--- ./bin/phpcbf.rpm	2024-04-02 07:58:25.996735959 +0200
+++ ./bin/phpcbf	2024-04-02 07:59:09.906379098 +0200
@@ -8,7 +8,7 @@
  * @license   https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
  */
 
-require_once __DIR__.'/../autoload.php';
+include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php';
 
 $runner   = new PHP_CodeSniffer\Runner();
 $exitCode = $runner->runPHPCBF();
diff -up ./bin/phpcs.rpm ./bin/phpcs
--- ./bin/phpcs.rpm	2024-04-02 07:58:25.996735959 +0200
+++ ./bin/phpcs	2024-04-02 07:59:18.295693037 +0200
@@ -8,7 +8,7 @@
  * @license   https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
  */
 
-require_once __DIR__.'/../autoload.php';
+include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php';
 
 $runner   = new PHP_CodeSniffer\Runner();
 $exitCode = $runner->runPHPCS();