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'; } /**