Completed
Push — master ( 0164d4...9f5a90 )
by Cees-Jan
01:55
created

PotentialDangerous::getFilters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of TwigView.
4
 *
5
 ** (c) 2014 Cees-Jan Kiewiet
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace WyriHaximus\TwigView\Lib\Twig\Extension;
12
13
/**
14
 * Class Basic.
15
 * @package WyriHaximus\TwigView\Lib\Twig\Extension
16
 */
17
class PotentialDangerous extends \Twig_Extension
18
{
19
    /**
20
     * Get declared filters.
21
     *
22
     * @return \Twig_SimpleFilter[]
23
     */
24 1
    public function getFilters()
25
    {
26
        return [
27 1
            new \Twig_SimpleFilter('env', 'env'),
28
        ];
29
    }
30
31
    /**
32
     * Get declared functions.
33
     *
34
     * @return \Twig_SimpleFunction[]
35
     */
36 1
    public function getFunctions()
37
    {
38
        return [
39 1
        new \Twig_SimpleFunction('config', 'Cake\Core\Configure::read'),
40
        ];
41
    }
42
43
    /**
44
     * Get extension name.
45
     *
46
     * @return string
47
     */
48 1
    public function getName()
49
    {
50 1
        return 'potential_dangerous';
51
    }
52
}
53