protected function setPaths()
    {
        $pathPackage = realpath(__DIR__.'/../../../../');
        $pathBase = realpath(base_path());

        // Set CLI path.
        $this->pathCli = $pathBase.'/vendor/bin/'.$this::CLI_TOOL;
        if (!file_exists($this->pathCli)) {
            $this->pathCli = $pathPackage.'/vendor/bin/'.$this::CLI_TOOL;
        }

        // Set ruleset paths.
        $this->pathRulesetStock = $pathPackage.'/rulesets/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocal = $pathBase.'/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocalLegacy = $pathBase.'/app/'.$this::CLI_TOOL.'.xml';

        // Set active ruleset.
        $this->pathRuleset = $this->pathRulesetStock;
        if (is_readable($this->pathRulesetLocal)) {
            $this->pathRuleset = $this->pathRulesetLocal;
        } elseif (is_readable($this->pathRulesetLocalLegacy)) {
            $this->pathRuleset = $this->pathRulesetLocalLegacy;
        }
    }
protected function setPaths()
    {
        $pathPackage = realpath(__DIR__.'/../../../../');
        $pathBase = realpath(base_path());

        // Set CLI path.
        $this->pathCli = $pathBase.'/vendor/bin/'.$this::CLI_TOOL;
        if (!file_exists($this->pathCli)) {
            $this->pathCli = $pathPackage.'/vendor/bin/'.$this::CLI_TOOL;
        }

        // Set ruleset paths.
        $this->pathRulesetStock = $pathPackage.'/rulesets/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocal = $pathBase.'/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocalLegacy = $pathBase.'/app/'.$this::CLI_TOOL.'.xml';

        // Set active ruleset.
        $this->pathRuleset = $this->pathRulesetStock;
        if (is_readable($this->pathRulesetLocal)) {
            $this->pathRuleset = $this->pathRulesetLocal;
        } elseif (is_readable($this->pathRulesetLocalLegacy)) {
            $this->pathRuleset = $this->pathRulesetLocalLegacy;
        }
    }
protected function setPaths ( ) { $ pathPackage = realpath ( __DIR__ . '/../../../../' ) ; $ pathBase = realpath ( base_path ( ) ) ; // Set CLI path. $ this -> pathCli = $ pathBase . '/vendor/bin/' . $ this :: CLI_TOOL ; if ( ! file_exists ( $ this -> pathCli ) ) { $ this -> pathCli = $ pathPackage . '/vendor/bin/' . $ this :: CLI_TOOL ; } // Set ruleset paths. $ this -> pathRulesetStock = $ pathPackage . '/rulesets/' . $ this :: CLI_TOOL . '.xml' ; $ this -> pathRulesetLocal = $ pathBase . '/' . $ this :: CLI_TOOL . '.xml' ; $ this -> pathRulesetLocalLegacy = $ pathBase . '/app/' . $ this :: CLI_TOOL . '.xml' ; // Set active ruleset. $ this -> pathRuleset = $ this -> pathRulesetStock ; if ( is_readable ( $ this -> pathRulesetLocal ) ) { $ this -> pathRuleset = $ this -> pathRulesetLocal ; } elseif ( is_readable ( $ this -> pathRulesetLocalLegacy ) ) { $ this -> pathRuleset = $ this -> pathRulesetLocalLegacy ; } }
Set paths to executable and ruleset.

@since  1.0.1

@return void
Set paths to executable and ruleset .