| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1.0003 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 4 | public function registerMacros(Container $container) |
|
| 16 | { |
||
| 17 | 4 | $this->register( |
|
| 18 | 4 | $container['url'], |
|
| 19 | 4 | 'getRootControllerNamespace', |
|
| 20 | 4 | function () { |
|
| 21 | 2 | return $this->rootNamespace; |
|
| 22 | 4 | } |
|
| 23 | ); |
||
| 24 | |||
| 25 | 4 | $this->register( |
|
| 26 | 4 | $container['router'], |
|
| 27 | 4 | 'hasMiddlewareGroup', |
|
| 28 | 4 | function ($name) { |
|
| 29 | return array_key_exists($name, $this->middlewareGroups); |
||
| 30 | 4 | } |
|
| 31 | ); |
||
| 32 | 4 | } |
|
| 33 | |||
| 51 |