From 29f6bd25842a63851f4bc67103cfe989e44ef055 Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Wed, 8 Nov 2023 19:00:29 +0800 Subject: [PATCH] edge modify --- src/Compiler/Concern/CompileConditional.php | 14 -------------- src/Compiler/Concern/CompileLoopTrait.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Compiler/Concern/CompileConditional.php b/src/Compiler/Concern/CompileConditional.php index a36d7b3..07dc9f4 100644 --- a/src/Compiler/Concern/CompileConditional.php +++ b/src/Compiler/Concern/CompileConditional.php @@ -42,20 +42,6 @@ protected function compileElseif(string $expression): string return ""; } - /** - * Compile the forelse statements into valid PHP. - * - * @param string $expression - * - * @return string - */ - protected function compileEmpty(string $expression): string - { - $empty = '$__empty_' . $this->forelseCounter--; - - return ""; - } - /** * Compile the unless statements into valid PHP. * diff --git a/src/Compiler/Concern/CompileLoopTrait.php b/src/Compiler/Concern/CompileLoopTrait.php index 44fdc53..9f690d6 100644 --- a/src/Compiler/Concern/CompileLoopTrait.php +++ b/src/Compiler/Concern/CompileLoopTrait.php @@ -71,6 +71,20 @@ protected function compileForelse(string $expression): string return ""; } + /** + * Compile the forelse statements into valid PHP. + * + * @param string $expression + * + * @return string + */ + protected function compileEmpty(string $expression): string + { + $empty = '$__empty_' . $this->forelseCounter--; + + return ""; + } + /** * Compile the while statements into valid PHP. *