LoaderException::notFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 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