diff --git a/src/Console/Commands/ArtisanMenu.php b/src/Console/Commands/ArtisanMenu.php index 656c2b3..a2e695a 100644 --- a/src/Console/Commands/ArtisanMenu.php +++ b/src/Console/Commands/ArtisanMenu.php @@ -80,9 +80,8 @@ public function handle() } if (!str_contains($gitIgnore, $storeFile)) { - $gitIgnore .= PHP_EOL; - $gitIgnore .= $storeFile; - $gitIgnore .= PHP_EOL; + $gitIgnore .= PHP_EOL.$storeFile; + $gitIgnore = trim($gitIgnore); file_put_contents($gitIgnorePath, $gitIgnore); }