@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | protected function loadConsoleCommands() |
| 66 | 66 | { |
| 67 | - if(!$this->app->runningInConsole()) { |
|
| 67 | + if (!$this->app->runningInConsole()) { |
|
| 68 | 68 | return; |
| 69 | 69 | } |
| 70 | 70 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | protected function loadGuards() |
| 87 | 87 | { |
| 88 | 88 | // Skip loading guards if an application running in the console |
| 89 | - if($this->app->runningInConsole()) { |
|
| 89 | + if ($this->app->runningInConsole()) { |
|
| 90 | 90 | return; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $this->app['auth']->guard('authService') |
| 95 | 95 | ); |
| 96 | 96 | |
| 97 | - if(!$this->enabled()) { |
|
| 97 | + if (!$this->enabled()) { |
|
| 98 | 98 | $this->app['authService']->setFallbackGuard( |
| 99 | 99 | $this->app['auth']->guard('fallback') |
| 100 | 100 | ); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $this->app->singleton(AuthService::class); |
| 126 | 126 | |
| 127 | - $this->app->alias(AuthService::class,'authService'); |
|
| 127 | + $this->app->alias(AuthService::class, 'authService'); |
|
| 128 | 128 | |
| 129 | 129 | $this->app->singleton(Mailer::class); |
| 130 | 130 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | }); |
| 149 | 149 | |
| 150 | 150 | // Register the fallback driver if service is disabled |
| 151 | - if(!$this->app->runningInConsole() && !$this->enabled()) { |
|
| 151 | + if (!$this->app->runningInConsole() && !$this->enabled()) { |
|
| 152 | 152 | $this->app['auth']->shouldUse('fallback'); |
| 153 | 153 | } |
| 154 | 154 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | protected function buildRecipients(Collection $recipients): array |
| 213 | 213 | { |
| 214 | - return $recipients->map(function (string $email) { |
|
| 214 | + return $recipients->map(function(string $email) { |
|
| 215 | 215 | return [ |
| 216 | 216 | 'email' => $email, |
| 217 | 217 | 'type' => 'to' |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | protected function buildVariables(Collection $recipients): array |
| 230 | 230 | { |
| 231 | - return $recipients->map(function (string $email) { |
|
| 231 | + return $recipients->map(function(string $email) { |
|
| 232 | 232 | return [ |
| 233 | 233 | 'rcpt' => $email, |
| 234 | 234 | 'vars' => $this->userVariables($email) |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | */ |
| 248 | 248 | protected function userVariables(string $email): array |
| 249 | 249 | { |
| 250 | - return array_map(function ($variable) use ($email) { |
|
| 250 | + return array_map(function($variable) use ($email) { |
|
| 251 | 251 | return $this->resolver->resolve($variable, $email); |
| 252 | 252 | }, $this->variables); |
| 253 | 253 | } |
@@ -277,7 +277,7 @@ |
||
| 277 | 277 | { |
| 278 | 278 | $stack = HandlerStack::create(); |
| 279 | 279 | |
| 280 | - $stack->push(Middleware::mapRequest(function (RequestInterface $request) { |
|
| 280 | + $stack->push(Middleware::mapRequest(function(RequestInterface $request) { |
|
| 281 | 281 | return $this->request = $request; |
| 282 | 282 | })); |
| 283 | 283 | |