| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function applyFunction(string $string): array |
||
| 26 | { |
||
| 27 | foreach (self::$functions as $function) { |
||
| 28 | try { |
||
| 29 | $result = $function->applyFunction($string); |
||
| 30 | } catch (\Exception $exception) { |
||
| 31 | ForrestLogger::error($exception->getMessage()); |
||
| 32 | continue; |
||
| 33 | } |
||
| 34 | |||
| 35 | if (is_array($result)) { |
||
| 36 | return $result; |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | return []; |
||
| 41 | } |
||
| 43 |