Passed
Push — master ( 3e5b57...979fc2 )
by Hergen
05:00
created

AuthException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A auth() 0 5 1
1
<?php
2
3
namespace werk365\jwtauthroles\Exceptions;
4
5
use Symfony\Component\HttpKernel\Exception\HttpException;
6
7
class AuthException extends HttpException
8
{
9
    public static function auth(int $status, string $message): self
10
    {
11
        $exception = new static($status, $message, null, []);
12
13
        return $exception;
14
    }
15
}
16