public function execute()
    {
        $success = true;
        $this->phpci->logExecOutput(false);

        $errorCount = $this->getErrorList();

        $this->phpci->log("Found $errorCount instances of " . implode(', ', $this->searches));

        $this->build->storeMeta('technical_debt-warnings', $errorCount);

        if ($this->allowed_errors != -1 && $errorCount > $this->allowed_errors) {
            $success = false;
        }

        return $success;
    }
public function execute()
    {
        $success = true;
        $this->phpci->logExecOutput(false);

        $errorCount = $this->getErrorList();

        $this->phpci->log("Found $errorCount instances of " . implode(', ', $this->searches));

        $this->build->storeMeta('technical_debt-warnings', $errorCount);

        if ($this->allowed_errors != -1 && $errorCount > $this->allowed_errors) {
            $success = false;
        }

        return $success;
    }
public function execute ( ) { $ success = true ; $ this -> phpci -> logExecOutput ( false ) ; $ errorCount = $ this -> getErrorList ( ) ; $ this -> phpci -> log ( "Found $errorCount instances of " . implode ( ', ' , $ this -> searches ) ) ; $ this -> build -> storeMeta ( 'technical_debt-warnings' , $ errorCount ) ; if ( $ this -> allowed_errors != - 1 && $ errorCount > $ this -> allowed_errors ) { $ success = false ; } return $ success ; }
Runs the plugin
Runs the plugin