@@ -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 |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | */ |
218 | 218 | protected function buildRecipients(Collection $recipients): array |
219 | 219 | { |
220 | - return $recipients->map(function (string $email) { |
|
220 | + return $recipients->map(function(string $email) { |
|
221 | 221 | return [ |
222 | 222 | 'email' => $email, |
223 | 223 | 'type' => 'to' |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | protected function buildVariables(Collection $recipients): array |
236 | 236 | { |
237 | - return $recipients->map(function (string $email) { |
|
237 | + return $recipients->map(function(string $email) { |
|
238 | 238 | return [ |
239 | 239 | 'rcpt' => $email, |
240 | 240 | 'vars' => $this->userVariables($email) |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $this->resolverInstance = new $this->resolver($this->recipients); |
258 | 258 | } |
259 | 259 | |
260 | - return array_map(function ($variable) use ($email) { |
|
260 | + return array_map(function($variable) use ($email) { |
|
261 | 261 | return $this->resolverInstance->resolve($variable, $email); |
262 | 262 | }, $this->variables); |
263 | 263 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $builder = $this->mailer->template($template) |
88 | 88 | ->recipients($recipients); |
89 | 89 | |
90 | - if ($params = $this->option('params')){ |
|
90 | + if ($params = $this->option('params')) { |
|
91 | 91 | $builder->variables(explode(',', $params)); |
92 | 92 | } |
93 | 93 |