| @@ 138-146 (lines=9) @@ | ||
| 135 | ->write("}, this);\n") |
|
| 136 | ; |
|
| 137 | ||
| 138 | if ($this->hasElseNode($node)) { |
|
| 139 | $compiler |
|
| 140 | ->write("if (!$iteratedName) {\n") |
|
| 141 | ->indent() |
|
| 142 | ->subcompile($node->getNode('else')) |
|
| 143 | ->outdent() |
|
| 144 | ->write("}\n") |
|
| 145 | ; |
|
| 146 | } |
|
| 147 | ||
| 148 | if ($count > 0) { |
|
| 149 | $compiler->leaveScope(); |
|
| @@ 58-65 (lines=8) @@ | ||
| 55 | ; |
|
| 56 | } |
|
| 57 | ||
| 58 | if ($node->hasNode('else') && null !== $node->getNode('else')) { |
|
| 59 | $compiler |
|
| 60 | ->outdent() |
|
| 61 | ->write("} else {\n") |
|
| 62 | ->indent() |
|
| 63 | ->subcompile($node->getNode('else')) |
|
| 64 | ; |
|
| 65 | } |
|
| 66 | ||
| 67 | $compiler |
|
| 68 | ->outdent() |
|