protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $this->initializeExecute($output, $this->getHelper('process')); }
protected function configure() { parent::configure(); $this->setName('validate')->setDescription('Validate a plugin'); }
protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $this->processes = $this->processes ?: $this->initializeProcesses(); }
protected function configure() { parent::configure(); $rules = realpath(__DIR__ . '/../../res/config/phpmd.xml'); $this->setName('phpmd')->setDescription('Run PHP Mess Detector on a plugin')->addOption('rules', 'r', InputOption::VALUE_REQUIRED, 'Path to PHP Mess Detector rule set', $rules); }