| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function matchToKeys(array $matches) |
||
| 29 | { |
||
| 30 | if (empty($parameterNames = $this->parameterNames())) { |
||
| 31 | return []; |
||
| 32 | } |
||
| 33 | |||
| 34 | $parameters = array_intersect_key($matches, array_flip($parameterNames)); |
||
| 35 | |||
| 36 | return array_filter($parameters, function ($value) { |
||
| 37 | return is_string($value) && strlen($value) > 0; |
||
| 38 | }); |
||
| 41 |