LoaderException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A notFound() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
namespace AlexMasterov\EquipTwig\Exception;
5
6
use AlexMasterov\EquipTwig\Exception\ExceptionInterface;
7
use Twig_Error_Loader;
8
9
class LoaderException extends Twig_Error_Loader implements ExceptionInterface
10
{
11 2
    public static function notFound(string $name, string $where): self
12
    {
13 2
        return new static(sprintf(
14 2
            'Unable to find template `%s` (looked into: %s).',
15
            $name,
16
            $where
17
        ));
18
    }
19
}
20