* @package PHPCI * @subpackage Plugins */ class PhpParallelLint implements \PHPCI\Plugin { protected $directory; protected $preferDist; protected $phpci; public function __construct(\PHPCI\Builder $phpci, array $options = array()) { $path = $phpci->buildPath; $this->phpci = $phpci; $this->directory = isset($options['directory']) ? $path . $options['directory'] : $path; } /** * Executes parallel lint */ public function execute() { // build the parallel lint command $cmd = "run %s"; // and execute it return $this->phpci->executeCommand(PHPCI_BIN_DIR . $cmd, $this->directory); } }