From a5d1c7450370dc99c6c9258b689cf7c539aef8b3 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 14 May 2021 10:22:30 -0500 Subject: [PATCH] Apply fixes from StyleCI (#1023) --- src/Supervisor.php | 3 ++- tests/Feature/AuthTest.php | 6 ++++-- tests/worker.php | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Supervisor.php b/src/Supervisor.php index 4c8a041f..a1453d65 100644 --- a/src/Supervisor.php +++ b/src/Supervisor.php @@ -155,7 +155,8 @@ public function balance(array $balance) foreach ($balance as $queue => $scale) { $this->processPools->first(function ($pool) use ($queue) { return $pool->queue() === $queue; - }, new class { + }, new class + { public function __call($method, $arguments) { } diff --git a/tests/Feature/AuthTest.php b/tests/Feature/AuthTest.php index 10358459..ee8684a1 100644 --- a/tests/Feature/AuthTest.php +++ b/tests/Feature/AuthTest.php @@ -31,7 +31,8 @@ public function test_authentication_middleware_can_pass() $middleware = new Authenticate; $response = $middleware->handle( - new class { + new class + { }, function ($value) { return 'response'; @@ -52,7 +53,8 @@ public function test_authentication_middleware_responds_with_403_on_failure() $middleware = new Authenticate; $middleware->handle( - new class { + new class + { }, function ($value) { return 'response'; diff --git a/tests/worker.php b/tests/worker.php index 445d138a..9b396681 100644 --- a/tests/worker.php +++ b/tests/worker.php @@ -9,7 +9,8 @@ use Illuminate\Queue\WorkerOptions; use Orchestra\Testbench\Concerns\CreatesApplication; -$appLoader = new class { +$appLoader = new class +{ use CreatesApplication; /**