NullExtension   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
dl 0
loc 71
rs 10
c 1
b 0
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getNodeVisitors() 0 3 1
A getTests() 0 3 1
A getName() 0 3 1
A getOperators() 0 3 1
A getFilters() 0 3 1
A getFunctions() 0 3 1
A getTokenParsers() 0 3 1
A initRuntime() 0 2 1
A getGlobals() 0 3 1
1
<?php
2
3
namespace Afsy\Bundle\Twig;
4
5
use \Twig\Extension\ExtensionInterface;
6
7
class NullExtension implements ExtensionInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function initRuntime(/** @scrutinizer ignore-unused */ \Twig_Environment $environment)
13
    {
14
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getTokenParsers()
20
    {
21
        return [];
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getNodeVisitors()
28
    {
29
        return [];
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getFilters()
36
    {
37
        return [];
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getTests()
44
    {
45
        return [];
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function getFunctions()
52
    {
53
        return [];
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function getOperators()
60
    {
61
        return [];
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function getGlobals()
68
    {
69
        return [];
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function getName()
76
    {
77
        return 'null_extension';
78
    }
79
}
80