Completed
Push — master ( f63aaf...b18312 )
by Alex
05:51
created

LoaderException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

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