blob: 1d7032eeb54a3f7426c7e40d169abc1bee7fb991 (
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
29
30
31
32
|
diff -up ./bin/phpcbf.rpm ./bin/phpcbf
--- ./bin/phpcbf.rpm 2025-09-15 14:51:59.780439106 +0200
+++ ./bin/phpcbf 2025-09-15 14:53:16.065234768 +0200
@@ -21,10 +21,10 @@
*/
// Check if the PHP version and extensions comply with the minimum requirements before anything else.
-require_once dirname(__DIR__) . '/requirements.php';
+require_once '/usr/share/pear/PHP/CodeSniffer/requirements.php';
PHP_CodeSniffer\checkRequirements();
-require_once dirname(__DIR__) . '/autoload.php';
+require_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 2025-09-15 14:51:59.780522757 +0200
+++ ./bin/phpcs 2025-09-15 14:52:52.535306647 +0200
@@ -21,10 +21,10 @@
*/
// Check if the PHP version and extensions comply with the minimum requirements before anything else.
-require_once dirname(__DIR__) . '/requirements.php';
+require_once '/usr/share/pear/PHP/CodeSniffer/requirements.php';
PHP_CodeSniffer\checkRequirements();
-require_once dirname(__DIR__) . '/autoload.php';
+require_once '/usr/share/pear/PHP/CodeSniffer/autoload.php';
$runner = new PHP_CodeSniffer\Runner();
$exitCode = $runner->runPHPCS();
|