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. *