Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function onFindExecutableDefinitions(FindExecutableDefinitionFilesEvent $event) |
||
47 | { |
||
48 | $collection = $event->getDefinitionFileCollection(); |
||
49 | |||
50 | foreach($collection->getArrayCopy() as $index => $class){ |
||
51 | $tagValues = $this->docBlock->getTagsByName($class, 'env'); |
||
52 | if($this->docBlock->hasTag($class, 'env') && !in_array($this->env->getName(), $tagValues, false)){ |
||
53 | $collection->offsetUnset($index); |
||
54 | } |
||
57 | } |