From 4705972214f075c0a52f59dd855b846ae79ea970 Mon Sep 17 00:00:00 2001 From: Christoph Rumpel Date: Wed, 21 Oct 2020 09:49:50 +0200 Subject: [PATCH] Naming --- src/LaravelFactoryExtractor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LaravelFactoryExtractor.php b/src/LaravelFactoryExtractor.php index 6b94c92..7757c1a 100644 --- a/src/LaravelFactoryExtractor.php +++ b/src/LaravelFactoryExtractor.php @@ -263,18 +263,18 @@ private function formatMultipleLinesFactoryMethod(Stringable $newMethodBody): st return collect(explode(PHP_EOL, $newMethodBody)) ->map(function ($line) use (&$lineBefore) { - $prepend = ' '; + $prependSpaces = ' '; // Add indention if the line before opens a function if (Str::of($lineBefore) ->endsWith('{')) { - $prepend .= ' '; + $prependSpaces .= ' '; } $lineBefore = $line; return Str::of($line) ->ltrim(' ') - ->prepend($prepend); + ->prepend($prependSpaces); }) ->map(function ($line, $key) use (&$lineBefore) { if ($key === 0) {