File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments