@@ -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 | } |
@@ -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 |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | protected function buildRecipients(Collection $recipients): array |
240 | 240 | { |
241 | - return $recipients->map(function (string $email) { |
|
241 | + return $recipients->map(function(string $email) { |
|
242 | 242 | return [ |
243 | 243 | 'email' => $email, |
244 | 244 | 'type' => 'to' |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | */ |
256 | 256 | protected function buildVariables(Collection $recipients): array |
257 | 257 | { |
258 | - return $recipients->map(function (string $email) { |
|
258 | + return $recipients->map(function(string $email) { |
|
259 | 259 | return [ |
260 | 260 | 'rcpt' => $email, |
261 | 261 | 'vars' => $this->userVariables($email) |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $this->resolverInstance = new $this->resolver($this->recipients, $this->context); |
279 | 279 | } |
280 | 280 | |
281 | - return array_map(function ($variable) use ($email) { |
|
281 | + return array_map(function($variable) use ($email) { |
|
282 | 282 | return $this->resolverInstance->resolve($variable, $email); |
283 | 283 | }, $this->variables); |
284 | 284 | } |