Passed
Branch main (4cb13d)
by Mr.
04:54 queued 02:43
created

HttpUnauthorizedException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LibraryCatalog\Exception;
6
7
class HttpUnauthorizedException extends AppException
8
{
9 3
    public function __construct($message = "", $code = 0, ?\Throwable $previous = null)
10
    {
11 3
        if ($message == '') {
12 2
            $message = 'Unauthorized';
13
        }
14 3
        parent::__construct($message, $code, $previous);
15 3
    }
16
}
17