ErrorExceptionHandler::handler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace Nopolabs\Yabot;
4
5
use ErrorException;
6
7
class ErrorExceptionHandler
8
{
9
    public static function handler($severity, $message, $file, $line) {
10
        throw new ErrorException($message, 0, $severity, $file, $line);
11
    }
12
}