diff --git a/src/Illuminate/View/Compilers/BladeCompiler.php b/src/Illuminate/View/Compilers/BladeCompiler.php index 4290b6557b8a..1ebf4f9ee12b 100644 --- a/src/Illuminate/View/Compilers/BladeCompiler.php +++ b/src/Illuminate/View/Compilers/BladeCompiler.php @@ -104,13 +104,6 @@ class BladeCompiler extends Compiler implements CompilerInterface */ protected $verbatimBlocks = []; - /** - * Counter to keep track of nested forelse statements. - * - * @var int - */ - protected $forElseCounter = 0; - /** * Compile the view at the given path. * diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesAuthorizations.php b/src/Illuminate/View/Compilers/Concerns/CompilesAuthorizations.php index 739bbc6f86cf..e7b197c67092 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesAuthorizations.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesAuthorizations.php @@ -38,7 +38,7 @@ protected function compileElsecan($expression) } /** - * Compile the else-can statements into valid PHP. + * Compile the else-cannot statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php b/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php index e8973a48382b..cc26f5eced1d 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesComponents.php @@ -16,7 +16,7 @@ protected function compileComponent($expression) } /** - * Compile the end component statements into valid PHP. + * Compile the end-component statements into valid PHP. * * @param string $expression * @return string @@ -38,7 +38,7 @@ protected function compileSlot($expression) } /** - * Compile the end slot statements into valid PHP. + * Compile the end-slot statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php b/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php index 5c3bdcd219ee..d83e68478d04 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php @@ -5,7 +5,7 @@ trait CompilesConditionals { /** - * Compile the has section statements into valid PHP. + * Compile the has-section statements into valid PHP. * * @param string $expression * @return string @@ -71,7 +71,7 @@ protected function compileEndif($expression) } /** - * Compile the end unless statements into valid PHP. + * Compile the end-unless statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php b/src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php index f413ecda7999..e2ac126c31d9 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php @@ -29,7 +29,7 @@ protected function compileInclude($expression) } /** - * Compile the include statements into valid PHP. + * Compile the include-if statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesLoops.php b/src/Illuminate/View/Compilers/Concerns/CompilesLoops.php index 8a5e448976c3..bf27df1e7888 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesLoops.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesLoops.php @@ -5,7 +5,14 @@ trait CompilesLoops { /** - * Compile the forelse statements into valid PHP. + * Counter to keep track of nested forelse statements. + * + * @var int + */ + protected $forElseCounter = 0; + + /** + * Compile the for-else statements into valid PHP. * * @param string $expression * @return string @@ -28,7 +35,7 @@ protected function compileForelse($expression) } /** - * Compile the forelse statements into valid PHP. + * Compile the for-else-empty statements into valid PHP. * * @param string $expression * @return string @@ -63,7 +70,7 @@ protected function compileFor($expression) } /** - * Compile the foreach statements into valid PHP. + * Compile the for-each statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesRawPhp.php b/src/Illuminate/View/Compilers/Concerns/CompilesRawPhp.php index eb5fda3aebdf..8bcc707ae4f6 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesRawPhp.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesRawPhp.php @@ -16,7 +16,7 @@ protected function compilePhp($expression) } /** - * Compile end-php statement into valid PHP. + * Compile end-php statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesStacks.php b/src/Illuminate/View/Compilers/Concerns/CompilesStacks.php index ac2408ebceb0..9ea76b719fb3 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesStacks.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesStacks.php @@ -27,7 +27,7 @@ protected function compilePush($expression) } /** - * Compile the endpush statements into valid PHP. + * Compile the end-push statements into valid PHP. * * @param string $expression * @return string diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php b/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php index 042a2a7e043d..8ffd80364e43 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php @@ -22,7 +22,7 @@ protected function compileLang($expression) } /** - * Compile the endlang statements into valid PHP. + * Compile the end-lang statements into valid PHP. * * @return string */