/** * check blackList files. * * @param ReviewableInterface $fileName * * @return bool */ public function isBlacklistFile(ReviewableInterface $fileName) { if (strpos($fileName->getName(), '.js.php') !== false) { return true; } $blacklistFiles = array('_inline_end_js.mobile.php', '_inline_end_js.php'); return in_array($fileName->getName(), $blacklistFiles); }
/** * @param ReviewableInterface $subject * * @return string */ protected function getCommandLine(ReviewableInterface $subject) : string { return 'vendor/bin/phpcs' . ' --standard=' . 'vendor/leaphub/phpcs-symfony2-standard/leaphub/phpcs/Symfony2/' . ' ' . $subject->getName(); }
/** * @param ReviewableInterface $subject * * @return string */ protected function getCommandLine(ReviewableInterface $subject) : string { return 'vendor/bin/php-cs-fixer -vvv fix ' . $subject->getName() . ' --level=symfony'; }
/** * @param ReviewableInterface $subject * * @return string */ protected function getCommandLine(ReviewableInterface $subject) : string { return 'vendor/bin/phpmd' . ' ' . $subject->getName() . ' text ' . $this->pathToPhpMdXml; }