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