| Conditions | 4 |
| Paths | 8 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | public function __invoke(ContainerInterface $container, $resolvedName, array $options = null) |
||
| 52 | { |
||
| 53 | $pattern = (isset($options[$this->patternOptionKey]) ? $options[$this->patternOptionKey] : ''); |
||
| 54 | $constraints = (isset($options['constraints']) ? $options['constraints'] : []); |
||
| 55 | $key = serialize([$pattern, $constraints]); |
||
| 56 | |||
| 57 | if (!isset($this->cache[$key])) { |
||
| 58 | $this->cache[$key] = new Segment($this->delimiter, $pattern, $constraints); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $this->cache[$key]; |
||
| 62 | } |
||
| 63 | |||
| 74 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.