/** * Constructor * * @access public */ public function __construct($path = null) { if ($path) { $this->setPath($path); parent::__construct($path); } }
/** * @param ParserInterface $parser * @param VerboseProgressOutput $progressOutput */ public function __construct(ParserInterface $parser, VerboseProgressOutput $progressOutput) { parent::__construct(); $this->parser = $parser; $this->files()->name('*.php'); $this->progressOutput = $progressOutput; }
public function __construct() { parent::__construct(); $files = $this->getFilesToExclude(); $this->files()->name('*.php')->name('*.twig')->name('*.xml')->name('*.yml')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor')->filter(function (\SplFileInfo $file) use($files) { return !in_array($file->getRelativePathname(), $files, true); }); }
public function __construct() { parent::__construct(); foreach ($this->getNames() as $name) { $this->name($name); } $this->files()->ignoreDotFiles(true)->ignoreVCS(true); }
/** * Constructor */ public function __construct() { parent::__construct(); $finder = $this; $finder->setReader(new AnnotationReader())->files()->name('*.php')->filter(function (\SplFileInfo $file) use($finder) { try { $fileInspector = new FileInspector($file->getPathname()); $classInspector = $fileInspector->getClassInspector($finder->getReader()); foreach ($finder->getContainsAtLeastOneOf() as $annotation) { if ($classInspector->containsClassAnnotation($annotation) || $classInspector->containsMethodAnnotation($annotation) || $classInspector->containsPropertyAnnotation($annotation)) { return true; } } } catch (AnnotationScannerException $ex) { return false; } return false; }); }
public function __construct() { parent::__construct(); $this->files()->name('*.php'); }
public function __construct() { parent::__construct(); $this->files()->name('*.php')->name('*.twig')->ignoreDotFiles(true)->ignoreVCS(true)->exclude('vendor'); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->removeAdapters()->addAdapter(new MagentoPhpAdapter(), -50)->setAdapter('magento-php'); }
/** * @param ConsoleOutput $console */ public function __construct(ConsoleOutput $console) { $this->console = $console; parent::__construct(); }
public function __construct() { parent::__construct(); }