Completed
Push — master ( 3af88c...d76c98 )
by Mewes
05:10
created
Twig/NodeVisitor/SyntaxCheckNodeVisitor.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,12 +32,10 @@
 block discarded – undo
32 32
         if (($node instanceof Twig_Node_Block || $node instanceof Twig_Node_Macro) && !$node->hasAttribute('twigExcelBundle') && $this->checkContainsXlsNode($node)) {
33 33
             if ($node instanceof Twig_Node_Block) {
34 34
                 throw new Twig_Error_Syntax('Block tags do not work together with Twig tags provided by TwigExcelBundle. Please use \'xlsblock\' instead.');
35
-            }
36
-            elseif ($node instanceof Twig_Node_Macro) {
35
+            } elseif ($node instanceof Twig_Node_Macro) {
37 36
                 throw new Twig_Error_Syntax('Macro tags do not work together with Twig tags provided by TwigExcelBundle. Please use \'xlsmacro\' instead.');
38 37
             }
39
-        }
40
-        elseif ($node instanceof XlsNode) {
38
+        } elseif ($node instanceof XlsNode) {
41 39
             /**
42 40
              * @var XlsNode $node
43 41
              */
Please login to merge, or discard this patch.
Twig/TokenParser/AbstractTokenParser.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
      */
21 21
     protected function parseBody()
22 22
     {
23
-        $body = $this->parser->subparse(function (Twig_Token $token) {
24
-            return $token->test('end' . $this->getTag());
23
+        $body = $this->parser->subparse(function(Twig_Token $token) {
24
+            return $token->test('end'.$this->getTag());
25 25
         },
26 26
             true);
27 27
         $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
      */
21 21
     protected function parseBody()
22 22
     {
23
-        $body = $this->parser->subparse(function (Twig_Token $token) {
23
+        $body = $this->parser->subparse(function (Twig_Token $token)
24
+        {
24 25
             return $token->test('end' . $this->getTag());
25 26
         },
26 27
             true);
Please login to merge, or discard this patch.