| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 8 | private function applicableFeature(string $method): ?Feature |
|
| 17 | { |
||
| 18 | // Probably want a factory class to resolve any dependencies and cache |
||
| 19 | 8 | foreach ($this->buildFeatures() as $feature) { |
|
| 20 | 8 | if ($feature->hasToggle($method)) { |
|
| 21 | 8 | return $feature; |
|
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | 2 | return null; |
|
| 26 | } |
||
| 27 | |||
| 46 |