Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 40 | public function handle(Request $request, \Closure $next) |
|
26 | { |
||
27 | app()->extend(Role::class, function($roleRepository, $app) { |
||
28 | 40 | return new LogicRoleRepository($roleRepository, $this->logicTester); |
|
29 | 40 | }); |
|
30 | |||
31 | app()->extend(UserRole::class, function($userRole, $app) { |
||
32 | 25 | return new LogicUserRoleRepository($userRole, $this->logicTester); |
|
33 | 40 | }); |
|
34 | |||
35 | 40 | return $next($request); |
|
36 | } |
||
38 | } |