| Conditions | 4 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 8 | protected function doLeaveNode(\Twig_Node $node, \Twig_Environment $env) |
|
| 42 | { |
||
| 43 | 8 | if ($node instanceof \Twig_Node_Expression_Binary_Concat |
|
| 44 | 8 | && ($left = $node->getNode('left')) instanceof \Twig_Node_Expression_Constant |
|
| 45 | 8 | && ($right = $node->getNode('right')) instanceof \Twig_Node_Expression_Constant) { |
|
| 46 | 1 | return new \Twig_Node_Expression_Constant($left->getAttribute('value').$right->getAttribute('value'), $left->getTemplateLine()); |
|
| 47 | } |
||
| 48 | |||
| 49 | 8 | return $node; |
|
| 50 | } |
||
| 51 | |||
| 60 |