@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | |
| 224 | 224 | $segments = preg_split($pattern, $this->value, $limit, $flags); |
| 225 | 225 | |
| 226 | - return ! empty($segments) ? collect($segments) : collect(); |
|
| 226 | + return !empty($segments) ? collect($segments) : collect(); |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | */ |
| 286 | 286 | public function isNotEmpty() |
| 287 | 287 | { |
| 288 | - return ! $this->isEmpty(); |
|
| 288 | + return !$this->isEmpty(); |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | throw new InvalidArgumentException("Instance [{$name}] is not defined."); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - if (! array_key_exists('driver', $config)) { |
|
| 106 | + if (!array_key_exists('driver', $config)) { |
|
| 107 | 107 | throw new RuntimeException("Instance [{$name}] does not specify a driver."); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function isNotEmpty() |
| 53 | 53 | { |
| 54 | - return ! $this->isEmpty(); |
|
| 54 | + return !$this->isEmpty(); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | [$job, $callback] = [$this->firstClosureParameterType($job), $job]; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - $this->assertPushed($job, function ($job, $pushedQueue) use ($callback, $queue) { |
|
| 77 | + $this->assertPushed($job, function($job, $pushedQueue) use ($callback, $queue) { |
|
| 78 | 78 | if ($pushedQueue !== $queue) { |
| 79 | 79 | return false; |
| 80 | 80 | } |
@@ -135,12 +135,12 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | protected function assertPushedWithChainOfObjects($job, $expectedChain, $callback) |
| 137 | 137 | { |
| 138 | - $chain = collect($expectedChain)->map(function ($job) { |
|
| 138 | + $chain = collect($expectedChain)->map(function($job) { |
|
| 139 | 139 | return serialize($job); |
| 140 | 140 | })->all(); |
| 141 | 141 | |
| 142 | 142 | PHPUnit::assertTrue( |
| 143 | - $this->pushed($job, $callback)->filter(function ($job) use ($chain) { |
|
| 143 | + $this->pushed($job, $callback)->filter(function($job) use ($chain) { |
|
| 144 | 144 | return $job->chained == $chain; |
| 145 | 145 | })->isNotEmpty(), |
| 146 | 146 | 'The expected chain was not pushed.' |
@@ -157,11 +157,11 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | protected function assertPushedWithChainOfClasses($job, $expectedChain, $callback) |
| 159 | 159 | { |
| 160 | - $matching = $this->pushed($job, $callback)->map->chained->map(function ($chain) { |
|
| 161 | - return collect($chain)->map(function ($job) { |
|
| 160 | + $matching = $this->pushed($job, $callback)->map->chained->map(function($chain) { |
|
| 161 | + return collect($chain)->map(function($job) { |
|
| 162 | 162 | return get_class(unserialize($job)); |
| 163 | 163 | }); |
| 164 | - })->filter(function ($chain) use ($expectedChain) { |
|
| 164 | + })->filter(function($chain) use ($expectedChain) { |
|
| 165 | 165 | return $chain->all() === $expectedChain; |
| 166 | 166 | }); |
| 167 | 167 | |
@@ -178,8 +178,8 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | protected function isChainOfObjects($chain) |
| 180 | 180 | { |
| 181 | - return ! collect($chain)->contains(function ($job) { |
|
| 182 | - return ! is_object($job); |
|
| 181 | + return !collect($chain)->contains(function($job) { |
|
| 182 | + return !is_object($job); |
|
| 183 | 183 | }); |
| 184 | 184 | } |
| 185 | 185 | |
@@ -221,15 +221,15 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function pushed($job, $callback = null) |
| 223 | 223 | { |
| 224 | - if (! $this->hasPushed($job)) { |
|
| 224 | + if (!$this->hasPushed($job)) { |
|
| 225 | 225 | return collect(); |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - $callback = $callback ?: function () { |
|
| 228 | + $callback = $callback ?: function() { |
|
| 229 | 229 | return true; |
| 230 | 230 | }; |
| 231 | 231 | |
| 232 | - return collect($this->jobs[$job])->filter(function ($data) use ($callback) { |
|
| 232 | + return collect($this->jobs[$job])->filter(function($data) use ($callback) { |
|
| 233 | 233 | return $callback($data['job'], $data['queue']); |
| 234 | 234 | })->pluck('job'); |
| 235 | 235 | } |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | public function hasPushed($job) |
| 244 | 244 | { |
| 245 | - return isset($this->jobs[$job]) && ! empty($this->jobs[$job]); |
|
| 245 | + return isset($this->jobs[$job]) && !empty($this->jobs[$job]); |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | /** |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function size($queue = null) |
| 266 | 266 | { |
| 267 | - return collect($this->jobs)->flatten(1)->filter(function ($job) use ($queue) { |
|
| 267 | + return collect($this->jobs)->flatten(1)->filter(function($job) use ($queue) { |
|
| 268 | 268 | return $job['queue'] === $queue; |
| 269 | 269 | })->count(); |
| 270 | 270 | } |
@@ -279,12 +279,12 @@ discard block |
||
| 279 | 279 | |
| 280 | 280 | if ($command instanceof Closure) { |
| 281 | 281 | [$command, $callback] = [$this->firstClosureParameterType($command), $command]; |
| 282 | - } elseif (! is_string($command)) { |
|
| 282 | + } elseif (!is_string($command)) { |
|
| 283 | 283 | $instance = $command; |
| 284 | 284 | |
| 285 | 285 | $command = get_class($instance); |
| 286 | 286 | |
| 287 | - $callback = function ($job) use ($instance) { |
|
| 287 | + $callback = function($job) use ($instance) { |
|
| 288 | 288 | return serialize($this->resetChainPropertiesToDefaults($job)) === serialize($instance); |
| 289 | 289 | }; |
| 290 | 290 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | */ |
| 313 | 313 | protected function resetChainPropertiesToDefaults($job) |
| 314 | 314 | { |
| 315 | - return tap(clone $job, function ($job) { |
|
| 315 | + return tap(clone $job, function($job) { |
|
| 316 | 316 | $job->chainConnection = null; |
| 317 | 317 | $job->chainQueue = null; |
| 318 | 318 | $job->chainCatchCallbacks = null; |
@@ -351,12 +351,12 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | protected function assertDispatchedWithChainOfObjects($command, $expectedChain, $callback) |
| 353 | 353 | { |
| 354 | - $chain = collect($expectedChain)->map(function ($job) { |
|
| 354 | + $chain = collect($expectedChain)->map(function($job) { |
|
| 355 | 355 | return serialize($job); |
| 356 | 356 | })->all(); |
| 357 | 357 | |
| 358 | 358 | PHPUnit::assertTrue( |
| 359 | - $this->dispatched($command, $callback)->filter(function ($job) use ($chain) { |
|
| 359 | + $this->dispatched($command, $callback)->filter(function($job) use ($chain) { |
|
| 360 | 360 | return $job->chained == $chain; |
| 361 | 361 | })->isNotEmpty(), |
| 362 | 362 | 'The expected chain was not dispatched.' |
@@ -373,11 +373,11 @@ discard block |
||
| 373 | 373 | */ |
| 374 | 374 | protected function assertDispatchedWithChainOfClasses($command, $expectedChain, $callback) |
| 375 | 375 | { |
| 376 | - $matching = $this->dispatched($command, $callback)->map->chained->map(function ($chain) { |
|
| 377 | - return collect($chain)->map(function ($job) { |
|
| 376 | + $matching = $this->dispatched($command, $callback)->map->chained->map(function($chain) { |
|
| 377 | + return collect($chain)->map(function($job) { |
|
| 378 | 378 | return get_class(unserialize($job)); |
| 379 | 379 | }); |
| 380 | - })->filter(function ($chain) use ($expectedChain) { |
|
| 380 | + })->filter(function($chain) use ($expectedChain) { |
|
| 381 | 381 | return $chain->all() === $expectedChain; |
| 382 | 382 | }); |
| 383 | 383 | |
@@ -394,8 +394,8 @@ discard block |
||
| 394 | 394 | */ |
| 395 | 395 | protected function isChainOfObjects($chain) |
| 396 | 396 | { |
| 397 | - return ! collect($chain)->contains(function ($job) { |
|
| 398 | - return ! is_object($job); |
|
| 397 | + return !collect($chain)->contains(function($job) { |
|
| 398 | + return !is_object($job); |
|
| 399 | 399 | }); |
| 400 | 400 | } |
| 401 | 401 | |
@@ -435,15 +435,15 @@ discard block |
||
| 435 | 435 | */ |
| 436 | 436 | public function dispatched($command, $callback = null) |
| 437 | 437 | { |
| 438 | - if (! $this->hasDispatched($command)) { |
|
| 438 | + if (!$this->hasDispatched($command)) { |
|
| 439 | 439 | return collect(); |
| 440 | 440 | } |
| 441 | 441 | |
| 442 | - $callback = $callback ?: function () { |
|
| 442 | + $callback = $callback ?: function() { |
|
| 443 | 443 | return true; |
| 444 | 444 | }; |
| 445 | 445 | |
| 446 | - return collect($this->commands[$command])->filter(function ($command) use ($callback) { |
|
| 446 | + return collect($this->commands[$command])->filter(function($command) use ($callback) { |
|
| 447 | 447 | return $callback($command); |
| 448 | 448 | }); |
| 449 | 449 | } |
@@ -457,15 +457,15 @@ discard block |
||
| 457 | 457 | */ |
| 458 | 458 | public function dispatchedSync(string $command, $callback = null) |
| 459 | 459 | { |
| 460 | - if (! $this->hasDispatchedSync($command)) { |
|
| 460 | + if (!$this->hasDispatchedSync($command)) { |
|
| 461 | 461 | return collect(); |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | - $callback = $callback ?: function () { |
|
| 464 | + $callback = $callback ?: function() { |
|
| 465 | 465 | return true; |
| 466 | 466 | }; |
| 467 | 467 | |
| 468 | - return collect($this->commandsSync[$command])->filter(function ($command) use ($callback) { |
|
| 468 | + return collect($this->commandsSync[$command])->filter(function($command) use ($callback) { |
|
| 469 | 469 | return $callback($command); |
| 470 | 470 | }); |
| 471 | 471 | } |
@@ -479,15 +479,15 @@ discard block |
||
| 479 | 479 | */ |
| 480 | 480 | public function dispatchedAfterResponse(string $command, $callback = null) |
| 481 | 481 | { |
| 482 | - if (! $this->hasDispatchedAfterResponse($command)) { |
|
| 482 | + if (!$this->hasDispatchedAfterResponse($command)) { |
|
| 483 | 483 | return collect(); |
| 484 | 484 | } |
| 485 | 485 | |
| 486 | - $callback = $callback ?: function () { |
|
| 486 | + $callback = $callback ?: function() { |
|
| 487 | 487 | return true; |
| 488 | 488 | }; |
| 489 | 489 | |
| 490 | - return collect($this->commandsAfterResponse[$command])->filter(function ($command) use ($callback) { |
|
| 490 | + return collect($this->commandsAfterResponse[$command])->filter(function($command) use ($callback) { |
|
| 491 | 491 | return $callback($command); |
| 492 | 492 | }); |
| 493 | 493 | } |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | return collect(); |
| 505 | 505 | } |
| 506 | 506 | |
| 507 | - return collect($this->batches)->filter(function ($batch) use ($callback) { |
|
| 507 | + return collect($this->batches)->filter(function($batch) use ($callback) { |
|
| 508 | 508 | return $callback($batch); |
| 509 | 509 | }); |
| 510 | 510 | } |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | */ |
| 518 | 518 | public function hasDispatched($command) |
| 519 | 519 | { |
| 520 | - return isset($this->commands[$command]) && ! empty($this->commands[$command]); |
|
| 520 | + return isset($this->commands[$command]) && !empty($this->commands[$command]); |
|
| 521 | 521 | } |
| 522 | 522 | |
| 523 | 523 | /** |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | */ |
| 529 | 529 | public function hasDispatchedSync($command) |
| 530 | 530 | { |
| 531 | - return isset($this->commandsSync[$command]) && ! empty($this->commandsSync[$command]); |
|
| 531 | + return isset($this->commandsSync[$command]) && !empty($this->commandsSync[$command]); |
|
| 532 | 532 | } |
| 533 | 533 | |
| 534 | 534 | /** |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | */ |
| 540 | 540 | public function hasDispatchedAfterResponse($command) |
| 541 | 541 | { |
| 542 | - return isset($this->commandsAfterResponse[$command]) && ! empty($this->commandsAfterResponse[$command]); |
|
| 542 | + return isset($this->commandsAfterResponse[$command]) && !empty($this->commandsAfterResponse[$command]); |
|
| 543 | 543 | } |
| 544 | 544 | |
| 545 | 545 | /** |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | } |
| 683 | 683 | |
| 684 | 684 | return collect($this->jobsToFake) |
| 685 | - ->filter(function ($job) use ($command) { |
|
| 685 | + ->filter(function($job) use ($command) { |
|
| 686 | 686 | return $job instanceof Closure |
| 687 | 687 | ? $job($command) |
| 688 | 688 | : $job === get_class($command); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | { |
| 170 | 170 | $actualCount = collect($this->notifications) |
| 171 | 171 | ->flatten(1) |
| 172 | - ->reduce(function ($count, $sent) use ($notification) { |
|
| 172 | + ->reduce(function($count, $sent) use ($notification) { |
|
| 173 | 173 | return $count + count($sent[$notification] ?? []); |
| 174 | 174 | }, 0); |
| 175 | 175 | |
@@ -203,17 +203,17 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | public function sent($notifiable, $notification, $callback = null) |
| 205 | 205 | { |
| 206 | - if (! $this->hasSent($notifiable, $notification)) { |
|
| 206 | + if (!$this->hasSent($notifiable, $notification)) { |
|
| 207 | 207 | return collect(); |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - $callback = $callback ?: function () { |
|
| 210 | + $callback = $callback ?: function() { |
|
| 211 | 211 | return true; |
| 212 | 212 | }; |
| 213 | 213 | |
| 214 | 214 | $notifications = collect($this->notificationsFor($notifiable, $notification)); |
| 215 | 215 | |
| 216 | - return $notifications->filter(function ($arguments) use ($callback) { |
|
| 216 | + return $notifications->filter(function($arguments) use ($callback) { |
|
| 217 | 217 | return $callback(...array_values($arguments)); |
| 218 | 218 | })->pluck('notification'); |
| 219 | 219 | } |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | public function hasSent($notifiable, $notification) |
| 229 | 229 | { |
| 230 | - return ! empty($this->notificationsFor($notifiable, $notification)); |
|
| 230 | + return !empty($this->notificationsFor($notifiable, $notification)); |
|
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
@@ -264,12 +264,12 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function sendNow($notifiables, $notification, array $channels = null) |
| 266 | 266 | { |
| 267 | - if (! $notifiables instanceof Collection && ! is_array($notifiables)) { |
|
| 267 | + if (!$notifiables instanceof Collection && !is_array($notifiables)) { |
|
| 268 | 268 | $notifiables = [$notifiables]; |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | foreach ($notifiables as $notifiable) { |
| 272 | - if (! $notification->id) { |
|
| 272 | + if (!$notification->id) { |
|
| 273 | 273 | $notification->id = Str::uuid()->toString(); |
| 274 | 274 | } |
| 275 | 275 | |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | if (method_exists($notification, 'shouldSend')) { |
| 279 | 279 | $notifiableChannels = array_filter( |
| 280 | 280 | $notifiableChannels, |
| 281 | - function ($channel) use ($notification, $notifiable) { |
|
| 281 | + function($channel) use ($notification, $notifiable) { |
|
| 282 | 282 | return $notification->shouldSend($notifiable, $channel) !== false; |
| 283 | 283 | } |
| 284 | 284 | ); |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | 'notification' => $notification, |
| 293 | 293 | 'channels' => $notifiableChannels, |
| 294 | 294 | 'notifiable' => $notifiable, |
| 295 | - 'locale' => $notification->locale ?? $this->locale ?? value(function () use ($notifiable) { |
|
| 295 | + 'locale' => $notification->locale ?? $this->locale ?? value(function() use ($notifiable) { |
|
| 296 | 296 | if ($notifiable instanceof HasLocalePreference) { |
| 297 | 297 | return $notifiable->preferredLocale(); |
| 298 | 298 | } |
@@ -168,15 +168,15 @@ discard block |
||
| 168 | 168 | */ |
| 169 | 169 | public function dispatched($event, $callback = null) |
| 170 | 170 | { |
| 171 | - if (! $this->hasDispatched($event)) { |
|
| 171 | + if (!$this->hasDispatched($event)) { |
|
| 172 | 172 | return collect(); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - $callback = $callback ?: function () { |
|
| 175 | + $callback = $callback ?: function() { |
|
| 176 | 176 | return true; |
| 177 | 177 | }; |
| 178 | 178 | |
| 179 | - return collect($this->events[$event])->filter(function ($arguments) use ($callback) { |
|
| 179 | + return collect($this->events[$event])->filter(function($arguments) use ($callback) { |
|
| 180 | 180 | return $callback(...$arguments); |
| 181 | 181 | }); |
| 182 | 182 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function hasDispatched($event) |
| 191 | 191 | { |
| 192 | - return isset($this->events[$event]) && ! empty($this->events[$event]); |
|
| 192 | + return isset($this->events[$event]) && !empty($this->events[$event]); |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | return collect($this->eventsToFake) |
| 285 | - ->filter(function ($event) use ($eventName, $payload) { |
|
| 285 | + ->filter(function($event) use ($eventName, $payload) { |
|
| 286 | 286 | return $event instanceof Closure |
| 287 | 287 | ? $event($eventName, $payload) |
| 288 | 288 | : $event === $eventName; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function assertNothingSent() |
| 130 | 130 | { |
| 131 | - $mailableNames = collect($this->mailables)->map(function ($mailable) { |
|
| 131 | + $mailableNames = collect($this->mailables)->map(function($mailable) { |
|
| 132 | 132 | return get_class($mailable); |
| 133 | 133 | })->join(', '); |
| 134 | 134 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function assertNothingQueued() |
| 199 | 199 | { |
| 200 | - $mailableNames = collect($this->queuedMailables)->map(function ($mailable) { |
|
| 200 | + $mailableNames = collect($this->queuedMailables)->map(function($mailable) { |
|
| 201 | 201 | return get_class($mailable); |
| 202 | 202 | })->join(', '); |
| 203 | 203 | |
@@ -215,15 +215,15 @@ discard block |
||
| 215 | 215 | { |
| 216 | 216 | [$mailable, $callback] = $this->prepareMailableAndCallback($mailable, $callback); |
| 217 | 217 | |
| 218 | - if (! $this->hasSent($mailable)) { |
|
| 218 | + if (!$this->hasSent($mailable)) { |
|
| 219 | 219 | return collect(); |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - $callback = $callback ?: function () { |
|
| 222 | + $callback = $callback ?: function() { |
|
| 223 | 223 | return true; |
| 224 | 224 | }; |
| 225 | 225 | |
| 226 | - return $this->mailablesOf($mailable)->filter(function ($mailable) use ($callback) { |
|
| 226 | + return $this->mailablesOf($mailable)->filter(function($mailable) use ($callback) { |
|
| 227 | 227 | return $callback($mailable); |
| 228 | 228 | }); |
| 229 | 229 | } |
@@ -250,15 +250,15 @@ discard block |
||
| 250 | 250 | { |
| 251 | 251 | [$mailable, $callback] = $this->prepareMailableAndCallback($mailable, $callback); |
| 252 | 252 | |
| 253 | - if (! $this->hasQueued($mailable)) { |
|
| 253 | + if (!$this->hasQueued($mailable)) { |
|
| 254 | 254 | return collect(); |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - $callback = $callback ?: function () { |
|
| 257 | + $callback = $callback ?: function() { |
|
| 258 | 258 | return true; |
| 259 | 259 | }; |
| 260 | 260 | |
| 261 | - return $this->queuedMailablesOf($mailable)->filter(function ($mailable) use ($callback) { |
|
| 261 | + return $this->queuedMailablesOf($mailable)->filter(function($mailable) use ($callback) { |
|
| 262 | 262 | return $callback($mailable); |
| 263 | 263 | }); |
| 264 | 264 | } |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | */ |
| 283 | 283 | protected function mailablesOf($type) |
| 284 | 284 | { |
| 285 | - return collect($this->mailables)->filter(function ($mailable) use ($type) { |
|
| 285 | + return collect($this->mailables)->filter(function($mailable) use ($type) { |
|
| 286 | 286 | return $mailable instanceof $type; |
| 287 | 287 | }); |
| 288 | 288 | } |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | */ |
| 296 | 296 | protected function queuedMailablesOf($type) |
| 297 | 297 | { |
| 298 | - return collect($this->queuedMailables)->filter(function ($mailable) use ($type) { |
|
| 298 | + return collect($this->queuedMailables)->filter(function($mailable) use ($type) { |
|
| 299 | 299 | return $mailable instanceof $type; |
| 300 | 300 | }); |
| 301 | 301 | } |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function send($view, array $data = [], $callback = null) |
| 359 | 359 | { |
| 360 | - if (! $view instanceof Mailable) { |
|
| 360 | + if (!$view instanceof Mailable) { |
|
| 361 | 361 | return; |
| 362 | 362 | } |
| 363 | 363 | |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | */ |
| 382 | 382 | public function queue($view, $queue = null) |
| 383 | 383 | { |
| 384 | - if (! $view instanceof Mailable) { |
|
| 384 | + if (!$view instanceof Mailable) { |
|
| 385 | 385 | return; |
| 386 | 386 | } |
| 387 | 387 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | $messages = (array) $this->messages; |
| 91 | 91 | |
| 92 | - return ! isset($messages[$key]) || ! in_array($message, $messages[$key]); |
|
| 92 | + return !isset($messages[$key]) || !in_array($message, $messages[$key]); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -210,10 +210,10 @@ discard block |
||
| 210 | 210 | protected function getMessagesForWildcardKey($key, $format) |
| 211 | 211 | { |
| 212 | 212 | return collect($this->messages) |
| 213 | - ->filter(function ($messages, $messageKey) use ($key) { |
|
| 213 | + ->filter(function($messages, $messageKey) use ($key) { |
|
| 214 | 214 | return Str::is($key, $messageKey); |
| 215 | 215 | }) |
| 216 | - ->map(function ($messages, $messageKey) use ($format) { |
|
| 216 | + ->map(function($messages, $messageKey) use ($format) { |
|
| 217 | 217 | return $this->transform( |
| 218 | 218 | $messages, $this->checkFormat($format), $messageKey |
| 219 | 219 | ); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | protected function transform($messages, $format, $messageKey) |
| 262 | 262 | { |
| 263 | 263 | return collect((array) $messages) |
| 264 | - ->map(function ($message) use ($format, $messageKey) { |
|
| 264 | + ->map(function($message) use ($format, $messageKey) { |
|
| 265 | 265 | // We will simply spin through the given messages and transform each one |
| 266 | 266 | // replacing the :message place holder with the real message allowing |
| 267 | 267 | // the messages to be easily formatted to each developer's desires. |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | */ |
| 341 | 341 | public function isEmpty() |
| 342 | 342 | { |
| 343 | - return ! $this->any(); |
|
| 343 | + return !$this->any(); |
|
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | /** |