php-pear-PHP-CodeSniffer/php-pear-PHP-CodeSniffer-rpm.patch
Remi Collet 8233b24af9 update to 3.8.0
sources from github instead or pear channel
2023-12-11 10:25:44 +01:00

32 lines
1.1 KiB
Diff

diff -up ./bin/phpcbf.rpm ./bin/phpcbf
--- ./bin/phpcbf.rpm 2023-12-11 09:46:17.920584703 +0100
+++ ./bin/phpcbf 2023-12-11 09:46:27.469951577 +0100
@@ -8,11 +8,7 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
-if (is_file(__DIR__.'/../autoload.php') === true) {
- include_once __DIR__.'/../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/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 2023-12-11 09:45:10.918010545 +0100
+++ ./bin/phpcs 2023-12-11 09:46:03.104015468 +0100
@@ -8,11 +8,7 @@
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
-if (is_file(__DIR__.'/../autoload.php') === true) {
- include_once __DIR__.'/../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
+include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php';
$runner = new PHP_CodeSniffer\Runner();
$exitCode = $runner->runPHPCS();