| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 3 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php namespace Arcanedev\Localization\Traits;  | 
            ||
| 31 | 15 | protected function replaceRouter()  | 
            |
| 32 |     { | 
            ||
| 33 | 15 |         $this->router = $this->app->make('router'); | 
            |
| 34 | |||
| 35 | 15 |         foreach ($this->middlewareGroups as $key => $middleware) { | 
            |
| 36 | 15 | $this->router->middlewareGroup($key, $middleware);  | 
            |
| 37 | 5 | }  | 
            |
| 38 | |||
| 39 | 15 |         foreach ($this->routeMiddleware as $key => $middleware) { | 
            |
| 40 | 15 | $this->router->aliasMiddleware($key, $middleware);  | 
            |
| 41 | 5 | }  | 
            |
| 42 | 15 | }  | 
            |
| 43 | }  | 
            ||
| 44 |