Skip to content

Commit 00fe632

Browse files
binarykgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 97ebfe8 commit 00fe632

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Commands/SetupCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ protected function registerRestifyServiceProvider()
5959
$providersPath = base_path('bootstrap/providers.php');
6060

6161
// Check if the providers.php file exists
62-
if (!file_exists($providersPath)) {
62+
if (! file_exists($providersPath)) {
6363
$this->error('bootstrap/providers.php file not found. Make sure you are using Laravel 12.');
64+
6465
return;
6566
}
6667

@@ -69,6 +70,7 @@ protected function registerRestifyServiceProvider()
6970
// Check if the provider is already registered
7071
if (str_contains($content, $providerClass)) {
7172
$this->line('RestifyServiceProvider already registered.');
73+
7274
return;
7375
}
7476

@@ -84,7 +86,7 @@ protected function registerRestifyServiceProvider()
8486
$newProvidersArray = $providersArrayWithoutClosing;
8587

8688
// If the array is not empty and doesn't end with a comma, add a comma
87-
if (!empty($providersArrayWithoutClosing) && !str_ends_with(trim($providersArrayWithoutClosing), ',')) {
89+
if (! empty($providersArrayWithoutClosing) && ! str_ends_with(trim($providersArrayWithoutClosing), ',')) {
8890
$newProvidersArray .= ',';
8991
}
9092

0 commit comments

Comments
 (0)