| Conditions | 5 |
| Paths | 5 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | final private function fcInjectors() : array |
||
| 43 | { |
||
| 44 | if ($this->chips) { |
||
| 45 | return $this->chips; |
||
| 46 | } |
||
| 47 | |||
| 48 | foreach ($this->features as $feature) { |
||
| 49 | if (method_exists($this, $chip = sprintf('%sChip', $feature))) { |
||
| 50 | $observers = $this->$chip(); |
||
| 51 | foreach ($observers as $observer) { |
||
| 52 | list($action, $program) = $observer; |
||
| 53 | $this->chips[$action][] = $program; |
||
| 54 | } |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | return $this->chips; |
||
| 59 | } |
||
| 61 |