Completed
Push — master ( 592d95...c00565 )
by Abdelrahman
18:11 queued 10s
created

InvalidAuthTokenException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A different() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Oauth\Exceptions;
6
7
use Illuminate\Auth\Access\AuthorizationException;
8
9
class InvalidAuthTokenException extends AuthorizationException
10
{
11
    /**
12
     * Create a new InvalidAuthTokenException for different auth tokens.
13
     *
14
     * @return static
15
     */
16
    public static function different()
17
    {
18
        return new static('The provided auth token for the request is different from the session auth token.');
19
    }
20
}
21