Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Dec 24, 2024
1 parent 9824b08 commit 1057c28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Laravel/src/Commands/MoonShineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ protected function replaceInConfig(
): void {
$replace = "'$key' => $value,";

$pattern = ! \is_null($classReplace) ?
"/['\"]" . $key . "['\"]\s*=>\s*" . $classReplace . "::class,/"
: "/['\"]" . $key . "['\"]\s*=>\s*[^'\"]+?,/";
$pattern = \is_null($classReplace) ?
"/['\"]" . $key . "['\"]\s*=>\s*[^'\"]+?,/"
: "/['\"]" . $key . "['\"]\s*=>\s*" . $classReplace . "::class,/";

file_put_contents(
config_path('moonshine.php'),
Expand Down

0 comments on commit 1057c28

Please sign in to comment.