From 0c0ba39072bda126e91586c2da2a7f01b333dcc4 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 15 Oct 2025 14:59:31 +0000 Subject: [PATCH] - Fixed last rebase --- src/ControlStructure/AbstractLoop.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) 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