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

AbstractTwigExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
ccs 0
cts 4
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A disableInSafeMode() 0 4 1
A onlyInDebug() 0 4 1
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