@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | public function handle() |
30 | 30 | { |
31 | 31 | $this->comment('Publishing Otp Migrations...'); |
32 | - $this->callSilent('vendor:publish', ['--tag' => 'otp-migration']); |
|
32 | + $this->callSilent('vendor:publish', [ '--tag' => 'otp-migration' ]); |
|
33 | 33 | |
34 | 34 | $this->comment('Publishing Otp Generator Configuration...'); |
35 | - $this->callSilent('vendor:publish', ['--tag' => 'otp-config']); |
|
35 | + $this->callSilent('vendor:publish', [ '--tag' => 'otp-config' ]); |
|
36 | 36 | |
37 | 37 | $this->registerTelescopeServiceProvider(); |
38 | 38 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $appConfig = file_get_contents(config_path('app.php')); |
52 | 52 | |
53 | - if (Str::contains($appConfig, $namespace.'\\Providers\\OtpGeneratorServiceProvider::class')) { |
|
53 | + if (Str::contains($appConfig, $namespace . '\\Providers\\OtpGeneratorServiceProvider::class')) { |
|
54 | 54 | return; |
55 | 55 | } |
56 | 56 | |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | "\n" => substr_count($appConfig, "\n"), |
61 | 61 | ]; |
62 | 62 | |
63 | - $eol = array_keys($lineEndingCount, max($lineEndingCount))[0]; |
|
63 | + $eol = array_keys($lineEndingCount, max($lineEndingCount))[ 0 ]; |
|
64 | 64 | |
65 | 65 | file_put_contents(config_path('app.php'), str_replace( |
66 | - "{$namespace}\\Providers\RouteServiceProvider::class,".$eol, |
|
67 | - "{$namespace}\\Providers\RouteServiceProvider::class,".$eol." {$namespace}\Providers\OtpGeneratorServiceProvider::class,".$eol, |
|
66 | + "{$namespace}\\Providers\RouteServiceProvider::class," . $eol, |
|
67 | + "{$namespace}\\Providers\RouteServiceProvider::class," . $eol . " {$namespace}\Providers\OtpGeneratorServiceProvider::class," . $eol, |
|
68 | 68 | $appConfig |
69 | 69 | )); |
70 | 70 |