pluginDefinition['hook']; $indexer = $target->getIndexer('function'); if ($indexer->has($hook)) { return [$this->buildIssue($target)->addViolation($indexer->get($hook), $this)]; } else { return []; } } }