| Conditions | 5 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 8 | protected function doEnterNode(\Twig_Node $node, \Twig_Environment $env) |
|
| 41 | { |
||
| 42 | 8 | if ($this->enabled && $node instanceof \Twig_Node_Expression_Filter) { |
|
| 43 | 6 | $name = $node->getNode('filter')->getAttribute('value'); |
|
| 44 | |||
| 45 | 6 | if ('desc' === $name || 'meaning' === $name) { |
|
| 46 | 2 | return $this->enterNode($node->getNode('node'), $env); |
|
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | 8 | return $node; |
|
| 51 | } |
||
| 52 | |||
| 72 |