Completed
Push — master ( 04f40e...f278b5 )
by Tobias
05:43
created

Twig2Visitor::getPriority()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the PHP Translation package.
5
 *
6
 * (c) PHP Translation team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Translation\Extractor\Visitor\Twig;
13
14
use Twig_Environment;
15
use Twig_Node;
16
17
/**
18
 * @author Tobias Nyholm <[email protected]>
19
 */
20
final class Twig2Visitor extends TwigVisitor implements \Twig_NodeVisitorInterface
21
{
22 6
    public function enterNode(Twig_Node $node, Twig_Environment $env)
23
    {
24 6
        return $this->doEnterNode($node);
0 ignored issues
show
Bug Compatibility introduced by
The expression $this->doEnterNode($node); of type Twig_Node|Twig_NodeInterface adds the type Twig_NodeInterface to the return on line 24 which is incompatible with the return type declared by the interface Twig_NodeVisitorInterface::enterNode of type Twig_Node.
Loading history...
25
    }
26
27 6
    public function leaveNode(Twig_Node $node, Twig_Environment $env)
28
    {
29 6
        return $node;
30
    }
31
32 6
    public function getPriority()
33
    {
34 6
        return 0;
35
    }
36
}
37