ExceptionHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: toor
5
 * Date: 20.03.18
6
 * Time: 1:03
7
 */
8
9
namespace Symfony\Component\Debug\Extension\Tests\Handlers;
10
11
12
use Exception;
13
use Symfony\Component\Debug\Extension\Tests\TestCase;
14
use Symfony\Component\Debug\Extension\Api\ErrorHandlerInterface;
15
16
/**
17
 * Class ExceptionHandler
18
 * @package Symfony\Component\Debug\Extension\Tests\Handlers
19
 */
20
class ExceptionHandler implements ErrorHandlerInterface {
21
22
    const FILE = 'exception_handler';
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function handle(Exception $exception) {
28
29
        file_put_contents(TestCase::getRootFolder() . self::FILE, '1', FILE_APPEND | LOCK_EX);
30
31
        return false;
32
    }
33
}
34