protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     // Resolve the coding standard.
     $resolver = new StandardResolver();
     $this->standard = $input->getOption('standard');
     if ($resolver->hasStandard($this->standard)) {
         $this->standard = $resolver->resolve($this->standard);
     }
     $this->finder = Finder::create()->notPath('yui/build')->notPath('amd/build')->name('*.php')->name('*.js')->notName('*-min.js');
 }
예제 #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('phplint')->setDescription('Run PHP Lint on a plugin');
 }
 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     $this->initializeMoodle($input);
 }
예제 #4
0
 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     $this->initializeExecute($output, $this->getHelper('process'));
 }