/** * Reviews a file potentially modifying it, and returning issues * * @param type $fileResource * @param type $options * @return array[CodeIssue] an array of issues found */ function reviewTarget(Target $target, $options = null) { if (!$this->isSupported($target->getType())) { return false; } return $this->reviewFile($target->getPath(), $options); }