protected function executePhpMd($binaryPath)
    {
        $cmd = $binaryPath . ' "%s" xml %s %s %s';

        $path = $this->getTargetPath();

        $ignore = '';
        if (count($this->ignore)) {
            $ignore = ' --exclude ' . implode(',', $this->ignore);
        }

        $suffixes = '';
        if (count($this->suffixes)) {
            $suffixes = ' --suffixes ' . implode(',', $this->suffixes);
        }

        // Disable exec output logging, as we don't want the XML report in the log:
        $this->phpci->logExecOutput(false);

        // Run PHPMD:
        $this->phpci->executeCommand(
            $cmd,
            $path,
            implode(',', $this->rules),
            $ignore,
            $suffixes
        );

        // Re-enable exec output logging:
        $this->phpci->logExecOutput(true);
    }
protected function executePhpMd($binaryPath)
    {
        $cmd = $binaryPath . ' "%s" xml %s %s %s';

        $path = $this->getTargetPath();

        $ignore = '';
        if (count($this->ignore)) {
            $ignore = ' --exclude ' . implode(',', $this->ignore);
        }

        $suffixes = '';
        if (count($this->suffixes)) {
            $suffixes = ' --suffixes ' . implode(',', $this->suffixes);
        }

        // Disable exec output logging, as we don't want the XML report in the log:
        $this->phpci->logExecOutput(false);

        // Run PHPMD:
        $this->phpci->executeCommand(
            $cmd,
            $path,
            implode(',', $this->rules),
            $ignore,
            $suffixes
        );

        // Re-enable exec output logging:
        $this->phpci->logExecOutput(true);
    }
protected function executePhpMd ( $ binaryPath ) { $ cmd = $ binaryPath . ' "%s" xml %s %s %s' ; $ path = $ this -> getTargetPath ( ) ; $ ignore = '' ; if ( count ( $ this -> ignore ) ) { $ ignore = ' --exclude ' . implode ( ',' , $ this -> ignore ) ; } $ suffixes = '' ; if ( count ( $ this -> suffixes ) ) { $ suffixes = ' --suffixes ' . implode ( ',' , $ this -> suffixes ) ; } // Disable exec output logging, as we don't want the XML report in the log: $ this -> phpci -> logExecOutput ( false ) ; // Run PHPMD: $ this -> phpci -> executeCommand ( $ cmd , $ path , implode ( ',' , $ this -> rules ) , $ ignore , $ suffixes ) ; // Re-enable exec output logging: $ this -> phpci -> logExecOutput ( true ) ; }
Execute PHP Mess Detector.
@param $binaryPath
Execute PHP Mess Detector .