Showing 3 of 13 total issues
Function findPluginImplementations
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
Open
public function findPluginImplementations(PluginDefinitionInterface ...$definitions) : PluginDefinitionSet { // Clear the annotation loaders of any previous annotation classes. AnnotationRegistry::reset(); // Register the namespaces of classes that can be used for annotations. AnnotationRegistry::registerLoader('class_exists');
- Read upRead up
Method findPluginImplementations
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function findPluginImplementations(PluginDefinitionInterface ...$definitions) : PluginDefinitionSet { // Clear the annotation loaders of any previous annotation classes. AnnotationRegistry::reset(); // Register the namespaces of classes that can be used for annotations. AnnotationRegistry::registerLoader('class_exists');
Function extractNamespace
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function extractNamespace(array $tokens) : string { $namespace = ''; $found = FALSE; foreach ($tokens as $token) { if (is_array($token) && $token[0] == T_NAMESPACE) {
- Read upRead up