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