public function __construct() { // PEAR installer workaround if (strpos($this->location, '@data_dir') === 0) { $this->location = __DIR__ . '/../../resources'; } else { $this->location .= '/PHPMD/resources'; } }