| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __construct() |
||
| 28 | { |
||
| 29 | $this->_rolesGuiAuthEnabled = config('roles.rolesGuiAuthEnabled'); |
||
| 30 | $this->_rolesGuiMiddlewareEnabled = config('roles.rolesGuiMiddlewareEnabled'); |
||
| 31 | $this->_rolesGuiMiddleware = config('roles.rolesGuiMiddleware'); |
||
| 32 | |||
| 33 | if ($this->_rolesGuiAuthEnabled) { |
||
| 34 | $this->middleware('auth'); |
||
|
|
|||
| 35 | } |
||
| 36 | |||
| 37 | if ($this->_rolesGuiMiddlewareEnabled) { |
||
| 38 | $this->middleware($this->_rolesGuiMiddleware); |
||
| 39 | } |
||
| 42 |