Passed
Push — master ( cc3241...e24646 )
by Eric
01:01 queued 13s
created

TemplateHasNoContentException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of Esi\SimpleTpl.
7
 *
8
 * (c) 2006 - 2025 Eric Sizemore <[email protected]>
9
 *
10
 * This file is licensed under The MIT License. For the full copyright and
11
 * license information, please view the LICENSE.md file that was distributed
12
 * with this source code.
13
 */
14
15
namespace Esi\SimpleTpl\Exception;
16
17
use RuntimeException;
18
19
class TemplateHasNoContentException extends RuntimeException
20
{
21 2
    public static function create(string $templatePath): self
22
    {
23 2
        return new self(\sprintf('"%s" does not appear to have any valid content.', $templatePath));
24
    }
25
}
26