PHPMD\RuleSetFactory::__construct PHP Method

__construct() public method

Constructs a new default rule-set factory instance.
public __construct ( )
    public function __construct()
    {
        // PEAR installer workaround
        if (strpos($this->location, '@data_dir') === 0) {
            $this->location = __DIR__ . '/../../resources';
        } else {
            $this->location .= '/PHPMD/resources';
        }
    }