@@ -26,15 +26,15 @@ |
||
26 | 26 | MaintenanceModeMiddleware::class, |
27 | 27 | ]); |
28 | 28 | |
29 | - $this->app->singleton('maintenance', function () { |
|
29 | + $this->app->singleton('maintenance', function() { |
|
30 | 30 | return new MaintenanceModeService($this->app); |
31 | 31 | }); |
32 | 32 | |
33 | - $this->app->singleton('command.up', function () { |
|
33 | + $this->app->singleton('command.up', function() { |
|
34 | 34 | return new UpCommand($this->app['maintenance']); |
35 | 35 | }); |
36 | 36 | |
37 | - $this->app->singleton('command.down', function () { |
|
37 | + $this->app->singleton('command.down', function() { |
|
38 | 38 | return new DownCommand($this->app['maintenance']); |
39 | 39 | }); |
40 | 40 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Get the services provided by the provider. |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return string[] |
|
48 | 48 | */ |
49 | 49 | public function provides() |
50 | 50 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function isUpMode() |
64 | 64 | { |
65 | - return ! $this->maintenanceFileExists(); |
|
65 | + return !$this->maintenanceFileExists(); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | $file = $this->maintenanceFilePath(); |
77 | 77 | |
78 | - if (! touch($file)) { |
|
78 | + if (!touch($file)) { |
|
79 | 79 | $message = sprintf( |
80 | 80 | 'Something went wrong on trying to create maintenance file %s.', |
81 | 81 | $file |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | { |
98 | 98 | $file = $this->maintenanceFilePath(); |
99 | 99 | |
100 | - if (file_exists($file) && ! unlink($file)) { |
|
100 | + if (file_exists($file) && !unlink($file)) { |
|
101 | 101 | $message = sprintf( |
102 | 102 | 'Something went wrong on trying to remove maintenance file %s.', |
103 | 103 | $file |