Skip to content

Commit

Permalink
Merge pull request #106 from lxdpt/bugfix/conflict-with-illuminate-ne…
Browse files Browse the repository at this point in the history
…wline

Fix namespace collision on Laravel 8.10
  • Loading branch information
larsjanssen6 authored Oct 18, 2020
2 parents e3c8a0a + b47e779 commit 7edffb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/SetCodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ protected function setHashInEnvironmentFile($hash)

if (preg_match($regex, $envContent)) {
$hash = str_replace(['\\', '$'], ['', '\$'], $hash);
$envContent = preg_replace($regex, $this->newLine($hash), $envContent);
$envContent = preg_replace($regex, $this->displayHash($hash), $envContent);
} else {
$envContent .= "\n".$this->newLine($hash)."\n";
$envContent .= "\n".$this->displayHash($hash)."\n";
}

$this->filesystem->put($envPath, $envContent);
Expand All @@ -94,7 +94,7 @@ protected function setHashInEnvironmentFile($hash)
* @param $hash
* @return string
*/
private function newLine($hash)
private function displayHash($hash)
{
return "UNDER_CONSTRUCTION_HASH=$hash";
}
Expand Down

0 comments on commit 7edffb7

Please sign in to comment.