Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Mar 20, 2024
1 parent f25a941 commit ddf678e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function copyServiceProviderInApp(): self

$namespace = Str::replaceLast('\\', '', $this->laravel->getNamespace());

if (intval(app()->version()) < 11 || !file_exists(base_path('bootstrap/providers.php'))) {
if (intval(app()->version()) < 11 || ! file_exists(base_path('bootstrap/providers.php'))) {
$appConfig = file_get_contents(config_path('app.php'));
} else {
$appConfig = file_get_contents(base_path('bootstrap/providers.php'));
Expand All @@ -174,7 +174,7 @@ protected function copyServiceProviderInApp(): self
return $this;
}

if (intval(app()->version()) < 11 || !file_exists(base_path('bootstrap/providers.php'))) {
if (intval(app()->version()) < 11 || ! file_exists(base_path('bootstrap/providers.php'))) {
file_put_contents(config_path('app.php'), str_replace(
"{$namespace}\\Providers\\BroadcastServiceProvider::class,",
"{$namespace}\\Providers\\BroadcastServiceProvider::class," . PHP_EOL . " {$namespace}{$class},",
Expand Down

0 comments on commit ddf678e

Please sign in to comment.