Completed
Push — master ( f92166...9df481 )
by Korotkov
08:19
created

AuthApiMiddleware   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
3
namespace App\Http\Middleware;
4
5
use App\Http\HttpMiddleware;
6
use Rudra\AuthTrait;
7
8
class AuthApiMiddleware extends HttpMiddleware
9
{
10
11
    use AuthTrait;
12
13
    public function __invoke($middleware = null)
14
    {
15
        $this->auth(false, null, ['API', 'API']);
16
        $this->next($middleware);
17
    }
18
}