Skip to content

Commit

Permalink
Make laravel#17151 easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss authored Jan 9, 2017
1 parent 7839ef6 commit a1c6466
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/Console/KeyGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function setKeyInEnvironmentFile($key)
{
file_put_contents($this->laravel->environmentFilePath(), preg_replace(
$this->keyReplacementPattern(),
'APP_KEY='.$key,
"APP_KEY={$key}",
file_get_contents($this->laravel->environmentFilePath())
));
}
Expand All @@ -77,8 +77,8 @@ protected function generateRandomKey()
*/
protected function keyReplacementPattern()
{
$escaped = preg_quote('='.$this->laravel['config']['app.key'], '/');
$escaped = preg_quote($this->laravel['config']['app.key'], '/');

return "/^APP_KEY{$escaped}/m";
return "/^APP_KEY={$escaped}/m";
}
}

0 comments on commit a1c6466

Please sign in to comment.