| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 29 | protected function filterContractAnnotation(array $annotations): array |
|
| 47 | { |
||
| 48 | 29 | $contractAnnotations = []; |
|
| 49 | |||
| 50 | 29 | foreach ($annotations as $annotation) { |
|
| 51 | 20 | $annotationClass = \get_class($annotation); |
|
| 52 | |||
| 53 | 20 | if (\in_array($annotationClass, $this->expectedAnnotationTypes, true)) { |
|
| 54 | 20 | $contractAnnotations[] = $annotation; |
|
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | 29 | return $contractAnnotations; |
|
| 59 | } |
||
| 60 | } |
||
| 61 |