Components_Qc_Task_Loc::run PHP Method

run() public method

Run the task.
public run ( &$options ) : integer
return integer Number of errors.
    public function run(&$options)
    {
        $finder = new FinderFacade(array(realpath($this->_config->getPath())));
        $files = $finder->findFiles();
        $analyser = new PHPLOC\Analyser();
        $count = $analyser->countFiles($files, true);
        $this->_printResult($count);
    }