WhoopsHeaderTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 5
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 10
c 5
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A setProperHeader() 0 4 2
1
<?php
2
3
namespace ByJG\RestServer\Whoops;
4
5
use ByJG\RestServer\Exception\ClientShowException;
6
7
trait WhoopsHeaderTrait
8
{
9
    public function setProperHeader($exception)
10
    {
11
        if ($exception instanceof ClientShowException) {
12
            $exception->handleHeader();
13
        }
14
    }
15
}
16