ErrorHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Xervice\Service\Handler\Handler;
6
7
8
use Symfony\Component\Debug\ErrorHandler as SymfonyErrorHandler;
9
use Xervice\Service\Handler\HandlerInterface;
10
11
class ErrorHandler implements HandlerInterface
12
{
13
    /**
14
     * @param bool $isDebug
15
     */
16
    public function handle(bool $isDebug): void
17
    {
18
        SymfonyErrorHandler::register();
19
    }
20
21
}