Skip to content

Commit

Permalink
Optimise creation/modification of .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Sep 21, 2018
1 parent 6129084 commit 083b4f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Console/Commands/ArtisanMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 083b4f4

Please sign in to comment.