| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function loadContainersInternalMiddlewares() |
||
| 19 | { |
||
| 20 | // TODO: might need refactoring to get rid ot the functions on the PortKernel |
||
| 21 | |||
| 22 | // Registering single and grouped middleware's |
||
| 23 | (App::make(PortKernel::class)) |
||
| 24 | ->registerMiddlewares($this->middleware) |
||
|
|
|||
| 25 | ->registerMiddlewareGroups($this->middlewareGroups); |
||
| 26 | |||
| 27 | // Registering Route Middleware's |
||
| 28 | foreach ($this->routeMiddleware as $key => $routeMiddleware) { |
||
| 29 | $this->app['router']->middleware($key, $routeMiddleware); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: