UnauthorizedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace midorikocak\nano\Exceptions;
6
7
use Exception;
8
9
use function http_response_code;
10
11
class UnauthorizedException extends Exception
12
{
13
    public function __construct()
14
    {
15
        parent::__construct('401 Unathorized', 401, null);
16
        http_response_code(401);
17
    }
18
}
19