| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | private static function getAuthMiddleware() |
||
| 48 | { |
||
| 49 | $auth_middleware = 'auth.basic'; |
||
| 50 | |||
| 51 | if (interface_exists(\Illuminate\Contracts\Auth\Factory::class)) { |
||
| 52 | $manager = App::make(\Illuminate\Contracts\Auth\Factory::class); |
||
| 53 | if ($manager->guard('api')) { |
||
| 54 | $auth_middleware = 'auth:api'; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | return $auth_middleware; |
||
| 59 | } |
||
| 60 | } |
||
| 61 |