Skip to content

Commit 85bb8d6

Browse files
shaunthegeektymondesigns
authored andcommitted
fix: end of line (tymondesigns#1832)
* fix: noeol. close tymondesigns#1831 * fix: bad code comment
1 parent 13e8ddc commit 85bb8d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Console/JWTGenerateSecretCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ public function handle()
5252
}
5353

5454
if (Str::contains(file_get_contents($path), 'JWT_SECRET') === false) {
55-
// update existing entry
56-
file_put_contents($path, PHP_EOL."JWT_SECRET=$key", FILE_APPEND);
55+
// create new entry
56+
file_put_contents($path, PHP_EOL."JWT_SECRET=$key".PHP_EOL, FILE_APPEND);
5757
} else {
5858
if ($this->isConfirmed() === false) {
5959
$this->comment('Phew... No changes were made to your secret key.');
6060

6161
return;
6262
}
6363

64-
// create new entry
64+
// update existing entry
6565
file_put_contents($path, str_replace(
6666
'JWT_SECRET='.$this->laravel['config']['jwt.secret'],
6767
'JWT_SECRET='.$key, file_get_contents($path)

0 commit comments

Comments
 (0)