blob: aab3e64df34512b110868ef7cccddcfd7b9a4562 (
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
|
diff -up ./src/bin/phpmd.rpm ./src/bin/phpmd
--- ./src/bin/phpmd.rpm 2020-09-02 15:30:24.934332729 +0200
+++ ./src/bin/phpmd 2020-09-02 15:31:27.992170861 +0200
@@ -19,12 +19,7 @@
use Composer\XdebugHandler\XdebugHandler;
use PHPMD\TextUI\Command;
-if (file_exists(__DIR__ . '/../../../../autoload.php')) {
- // phpmd is part of a composer installation
- require_once __DIR__ . '/../../../../autoload.php';
-} else {
- require_once __DIR__ . '/../../vendor/autoload.php';
-}
+require '/usr/share/php/PHPMD/autoload.php';
// Restart if xdebug is loading, unless the environment variable PHPMD_ALLOW_XDEBUG is set.
$xdebug = new XdebugHandler('PHPMD');
diff -up ./src/main/php/PHPMD/RuleSetFactory.php.rpm ./src/main/php/PHPMD/RuleSetFactory.php
--- ./src/main/php/PHPMD/RuleSetFactory.php.rpm 2020-09-02 15:30:24.934332729 +0200
+++ ./src/main/php/PHPMD/RuleSetFactory.php 2020-09-02 15:36:12.703445806 +0200
@@ -57,7 +57,7 @@ class RuleSetFactory
*/
public function __construct()
{
- $this->location = __DIR__ . '/../../resources';
+ $this->location = __DIR__ . '/../../php-phpmd-PHP-PMD/resources';
}
/**
|