diff --git a/src/ControlStructure/AbstractLoop.php b/src/ControlStructure/AbstractLoop.php index 6bbf2e6..35d74a4 100644 --- a/src/ControlStructure/AbstractLoop.php +++ b/src/ControlStructure/AbstractLoop.php @@ -14,27 +14,8 @@ abstract class AbstractLoop implements ControlStructure { $count = count($stack); -<<<<<<< HEAD - return ""; - - case "endwhile": - case "endforeach": - $last = end($context->iterationStack); - - if ( $last['or'] === false ) { - $output = ""; - } - else { - $output = ""; - } - - array_pop($context->iterationStack); - - return $output; -======= if ( $count > 0 ) { $name .= "[" . end($stack)['uid'] . "]"; ->>>>>>> 579a917 (- Added a loop index in AbstractLoop control struct.) } $context->iterationStack[] = [ @@ -62,3 +43,4 @@ abstract class AbstractLoop implements ControlStructure { return $output; } } + \ No newline at end of file