Completed
Push — master ( 74371a...6da8c0 )
by Vladimir
02:21
created

AbstractTwigExtension::onlyInDebug()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright 2018 Vladimir Jimenez
5
 * @license   https://github.com/allejo/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\Templating\Twig\Extension;
9
10
abstract class AbstractTwigExtension
11
{
12
    /**
13
     * Whether or not this filter is allowed when a site is built in safe mode.
14
     *
15
     * @return bool
16
     */
17
    public static function disableInSafeMode()
18
    {
19
        return false;
20
    }
21
22
    /**
23
     * Whether or not this filter is allowed when a site is built in debug mode.
24
     * @return bool
25
     */
26
    public static function onlyInDebug()
27
    {
28
        return false;
29
    }
30
}
31