/** * Obtained from .php_cs configuration file. * * @param FileInterface $file * @return bool */ public function canReview(FileInterface $file) { return in_array($file->getExtension(), ['php', 'phtml', 'xml', 'yml']); }
/** * @param FileInterface $file * * @return bool */ protected function canReviewFile(FileInterface $file) { return $file->getExtension() === 'php'; }
/** * Determins if the given file should be revewed. * * @param FileInterface $file * @return bool */ public function canReviewFile(FileInterface $file) { return $file->getExtension() === 'php' && substr($file->getFileName(), -strlen('blade.php')) != 'blade.php'; }
/** * Determins if a given file should be reviewed. * * @param FileInterface $file * @return bool */ public function canReview(FileInterface $file) { $extension = $file->getExtension(); return $extension === 'php' || $extension === 'phtml'; }
/** * Determins if a given file should be reviewed. * * @param FileInterface $file * @return bool */ public function canReview(FileInterface $file) { return $file->getExtension() === 'php'; }