diff --git a/src/ApplicationFactory.php b/src/ApplicationFactory.php index f055010b3..c2524706d 100644 --- a/src/ApplicationFactory.php +++ b/src/ApplicationFactory.php @@ -11,7 +11,9 @@ class ApplicationFactory { - public function __construct(protected string $basePath) {} + public function __construct(protected string $basePath) + { + } /** * Create a new application instance. diff --git a/src/ApplicationGateway.php b/src/ApplicationGateway.php index acd16d0b5..21dd42841 100644 --- a/src/ApplicationGateway.php +++ b/src/ApplicationGateway.php @@ -16,7 +16,9 @@ class ApplicationGateway { use DispatchesEvents; - public function __construct(protected Application $app, protected Application $sandbox) {} + public function __construct(protected Application $app, protected Application $sandbox) + { + } /** * Handle an incoming request. diff --git a/src/Cache/OctaneStore.php b/src/Cache/OctaneStore.php index ad0e924c6..d4dee5276 100644 --- a/src/Cache/OctaneStore.php +++ b/src/Cache/OctaneStore.php @@ -25,7 +25,9 @@ class OctaneStore implements Store * @param \Swoole\Table $table * @return void */ - public function __construct(protected $table) {} + public function __construct(protected $table) + { + } /** * Retrieve an item from the cache by key. diff --git a/src/Events/RequestHandled.php b/src/Events/RequestHandled.php index 8538bf8c6..e9fb8dafc 100644 --- a/src/Events/RequestHandled.php +++ b/src/Events/RequestHandled.php @@ -12,5 +12,6 @@ public function __construct( public Application $sandbox, public Request $request, public Response $response - ) {} + ) { + } } diff --git a/src/Events/RequestReceived.php b/src/Events/RequestReceived.php index 12c84eaa2..a9399a31c 100644 --- a/src/Events/RequestReceived.php +++ b/src/Events/RequestReceived.php @@ -11,5 +11,6 @@ public function __construct( public Application $app, public Application $sandbox, public Request $request - ) {} + ) { + } } diff --git a/src/Events/RequestTerminated.php b/src/Events/RequestTerminated.php index 4a89fcbf4..862d28b31 100644 --- a/src/Events/RequestTerminated.php +++ b/src/Events/RequestTerminated.php @@ -16,5 +16,6 @@ public function __construct( public Application $sandbox, public Request $request, public Response $response - ) {} + ) { + } } diff --git a/src/Events/TaskReceived.php b/src/Events/TaskReceived.php index 93f1797ca..e1c527401 100644 --- a/src/Events/TaskReceived.php +++ b/src/Events/TaskReceived.php @@ -10,5 +10,6 @@ public function __construct( public Application $app, public Application $sandbox, public $data - ) {} + ) { + } } diff --git a/src/Events/TaskTerminated.php b/src/Events/TaskTerminated.php index dc2f77c43..a89c484c1 100644 --- a/src/Events/TaskTerminated.php +++ b/src/Events/TaskTerminated.php @@ -14,5 +14,6 @@ public function __construct( public Application $sandbox, public $data, public $result, - ) {} + ) { + } } diff --git a/src/Events/TickReceived.php b/src/Events/TickReceived.php index 41f0ee70f..e2a83b21b 100644 --- a/src/Events/TickReceived.php +++ b/src/Events/TickReceived.php @@ -9,5 +9,6 @@ class TickReceived public function __construct( public Application $app, public Application $sandbox - ) {} + ) { + } } diff --git a/src/Events/TickTerminated.php b/src/Events/TickTerminated.php index 5d270fab3..085ee4f88 100644 --- a/src/Events/TickTerminated.php +++ b/src/Events/TickTerminated.php @@ -12,5 +12,6 @@ class TickTerminated implements OperationTerminated public function __construct( public Application $app, public Application $sandbox - ) {} + ) { + } } diff --git a/src/Events/WorkerErrorOccurred.php b/src/Events/WorkerErrorOccurred.php index d52602174..362016e15 100644 --- a/src/Events/WorkerErrorOccurred.php +++ b/src/Events/WorkerErrorOccurred.php @@ -7,5 +7,7 @@ class WorkerErrorOccurred { - public function __construct(public Throwable $exception, public Application $sandbox) {} + public function __construct(public Throwable $exception, public Application $sandbox) + { + } } diff --git a/src/Events/WorkerStarting.php b/src/Events/WorkerStarting.php index a4c237b41..bcc22e8e0 100644 --- a/src/Events/WorkerStarting.php +++ b/src/Events/WorkerStarting.php @@ -6,5 +6,7 @@ class WorkerStarting { - public function __construct(public Application $app) {} + public function __construct(public Application $app) + { + } } diff --git a/src/Events/WorkerStopping.php b/src/Events/WorkerStopping.php index f9487cf21..f36e2f115 100644 --- a/src/Events/WorkerStopping.php +++ b/src/Events/WorkerStopping.php @@ -6,5 +6,7 @@ class WorkerStopping { - public function __construct(public Application $app) {} + public function __construct(public Application $app) + { + } } diff --git a/src/Exceptions/ServerShutdownException.php b/src/Exceptions/ServerShutdownException.php index 49b14f1d4..c573741e8 100644 --- a/src/Exceptions/ServerShutdownException.php +++ b/src/Exceptions/ServerShutdownException.php @@ -4,4 +4,6 @@ use Exception; -class ServerShutdownException extends Exception {} +class ServerShutdownException extends Exception +{ +} diff --git a/src/Exceptions/TaskExceptionResult.php b/src/Exceptions/TaskExceptionResult.php index 73d2b97cb..7c9acbd31 100644 --- a/src/Exceptions/TaskExceptionResult.php +++ b/src/Exceptions/TaskExceptionResult.php @@ -12,7 +12,8 @@ public function __construct( protected int $code, protected string $file, protected int $line, - ) {} + ) { + } /** * Creates a new task exception result from the given throwable. diff --git a/src/FrankenPhp/ServerProcessInspector.php b/src/FrankenPhp/ServerProcessInspector.php index c0817d9cd..8b2273c3d 100644 --- a/src/FrankenPhp/ServerProcessInspector.php +++ b/src/FrankenPhp/ServerProcessInspector.php @@ -14,7 +14,8 @@ class ServerProcessInspector implements ServerProcessInspectorContract */ public function __construct( protected ServerStateFile $serverStateFile, - ) {} + ) { + } /** * Determine if the FrankenPHP server process is running. diff --git a/src/FrankenPhp/ServerStateFile.php b/src/FrankenPhp/ServerStateFile.php index 1c2bd2b20..9f822a467 100644 --- a/src/FrankenPhp/ServerStateFile.php +++ b/src/FrankenPhp/ServerStateFile.php @@ -6,7 +6,9 @@ class ServerStateFile { - public function __construct(protected string $path) {} + public function __construct(protected string $path) + { + } /** * Read the server state from the server state file. diff --git a/src/OctaneResponse.php b/src/OctaneResponse.php index 4695e96bc..1daf76dbe 100644 --- a/src/OctaneResponse.php +++ b/src/OctaneResponse.php @@ -6,5 +6,7 @@ class OctaneResponse { - public function __construct(public Response $response, public ?string $outputBuffer = null) {} + public function __construct(public Response $response, public ?string $outputBuffer = null) + { + } } diff --git a/src/RequestContext.php b/src/RequestContext.php index 9edd2393d..f81258f7a 100644 --- a/src/RequestContext.php +++ b/src/RequestContext.php @@ -6,7 +6,9 @@ class RequestContext implements ArrayAccess { - public function __construct(public array $data = []) {} + public function __construct(public array $data = []) + { + } #[\ReturnTypeWillChange] public function offsetExists($offset) diff --git a/src/RoadRunner/RoadRunnerClient.php b/src/RoadRunner/RoadRunnerClient.php index 7b08f402d..dd76523e8 100644 --- a/src/RoadRunner/RoadRunnerClient.php +++ b/src/RoadRunner/RoadRunnerClient.php @@ -19,7 +19,9 @@ class RoadRunnerClient implements Client, StoppableClient { use MarshalsPsr7RequestsAndResponses; - public function __construct(protected PSR7Worker $client) {} + public function __construct(protected PSR7Worker $client) + { + } /** * Marshal the given request context into an Illuminate request. diff --git a/src/RoadRunner/ServerProcessInspector.php b/src/RoadRunner/ServerProcessInspector.php index 005db747a..0e3133545 100644 --- a/src/RoadRunner/ServerProcessInspector.php +++ b/src/RoadRunner/ServerProcessInspector.php @@ -17,7 +17,8 @@ public function __construct( protected ServerStateFile $serverStateFile, protected SymfonyProcessFactory $processFactory, protected PosixExtension $posix - ) {} + ) { + } /** * Determine if the RoadRunner server process is running. diff --git a/src/RoadRunner/ServerStateFile.php b/src/RoadRunner/ServerStateFile.php index 1c7c36292..d95af3721 100644 --- a/src/RoadRunner/ServerStateFile.php +++ b/src/RoadRunner/ServerStateFile.php @@ -6,7 +6,9 @@ class ServerStateFile { - public function __construct(protected string $path) {} + public function __construct(protected string $path) + { + } /** * Read the server state from the server state file. diff --git a/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php b/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php index 819d07bdb..787ea9fa2 100644 --- a/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php +++ b/src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php @@ -13,7 +13,8 @@ public function __construct( protected $timerTable, protected $maxExecutionTime, protected ?Server $server = null - ) {} + ) { + } /** * Invoke the action. diff --git a/src/Swoole/Handlers/OnManagerStart.php b/src/Swoole/Handlers/OnManagerStart.php index 41c858fcf..ca092bf3c 100644 --- a/src/Swoole/Handlers/OnManagerStart.php +++ b/src/Swoole/Handlers/OnManagerStart.php @@ -10,7 +10,8 @@ public function __construct( protected SwooleExtension $extension, protected string $appName, protected bool $shouldSetProcessName = true - ) {} + ) { + } /** * Handle the "managerstart" Swoole event. diff --git a/src/Swoole/Handlers/OnServerStart.php b/src/Swoole/Handlers/OnServerStart.php index 8286bb771..64943571d 100644 --- a/src/Swoole/Handlers/OnServerStart.php +++ b/src/Swoole/Handlers/OnServerStart.php @@ -17,7 +17,8 @@ public function __construct( protected $timerTable, protected bool $shouldTick = true, protected bool $shouldSetProcessName = true - ) {} + ) { + } /** * Handle the "start" Swoole event. diff --git a/src/Swoole/Handlers/OnWorkerStart.php b/src/Swoole/Handlers/OnWorkerStart.php index 03d8d890d..0d928d79b 100644 --- a/src/Swoole/Handlers/OnWorkerStart.php +++ b/src/Swoole/Handlers/OnWorkerStart.php @@ -19,7 +19,8 @@ public function __construct( protected array $serverState, protected WorkerState $workerState, protected bool $shouldSetProcessName = true - ) {} + ) { + } /** * Handle the "workerstart" Swoole event. diff --git a/src/Swoole/InvokeTickCallable.php b/src/Swoole/InvokeTickCallable.php index 727e28f32..944e39aa4 100644 --- a/src/Swoole/InvokeTickCallable.php +++ b/src/Swoole/InvokeTickCallable.php @@ -15,7 +15,8 @@ public function __construct( protected bool $immediate, protected $cache, protected ExceptionHandler $exceptionHandler - ) {} + ) { + } /** * Invoke the tick listener. diff --git a/src/Swoole/ServerProcessInspector.php b/src/Swoole/ServerProcessInspector.php index 8a97b947d..74de664a9 100644 --- a/src/Swoole/ServerProcessInspector.php +++ b/src/Swoole/ServerProcessInspector.php @@ -11,7 +11,8 @@ public function __construct( protected SignalDispatcher $dispatcher, protected ServerStateFile $serverStateFile, protected Exec $exec, - ) {} + ) { + } /** * Determine if the Swoole server process is running. diff --git a/src/Swoole/ServerStateFile.php b/src/Swoole/ServerStateFile.php index 4b712cacc..f6ae32c8c 100644 --- a/src/Swoole/ServerStateFile.php +++ b/src/Swoole/ServerStateFile.php @@ -6,7 +6,9 @@ class ServerStateFile { - public function __construct(protected string $path) {} + public function __construct(protected string $path) + { + } /** * Read the server state from the server state file. diff --git a/src/Swoole/SignalDispatcher.php b/src/Swoole/SignalDispatcher.php index 1d90e866b..af9a2a724 100644 --- a/src/Swoole/SignalDispatcher.php +++ b/src/Swoole/SignalDispatcher.php @@ -4,7 +4,9 @@ class SignalDispatcher { - public function __construct(protected SwooleExtension $extension) {} + public function __construct(protected SwooleExtension $extension) + { + } /** * Determine if the given process ID can be communicated with. diff --git a/src/Swoole/SwooleClient.php b/src/Swoole/SwooleClient.php index 99a3e4c53..486d129af 100644 --- a/src/Swoole/SwooleClient.php +++ b/src/Swoole/SwooleClient.php @@ -27,7 +27,9 @@ class SwooleClient implements Client, ServesStaticFiles 451 => 'Unavailable For Legal Reasons', // RFC7725 ]; - public function __construct(protected int $chunkSize = 1048576) {} + public function __construct(protected int $chunkSize = 1048576) + { + } /** * Marshal the given request context into an Illuminate request. diff --git a/src/Swoole/SwooleCoroutineDispatcher.php b/src/Swoole/SwooleCoroutineDispatcher.php index 6208e2f77..e32b094da 100644 --- a/src/Swoole/SwooleCoroutineDispatcher.php +++ b/src/Swoole/SwooleCoroutineDispatcher.php @@ -8,7 +8,9 @@ class SwooleCoroutineDispatcher implements DispatchesCoroutines { - public function __construct(protected bool $withinCoroutineContext) {} + public function __construct(protected bool $withinCoroutineContext) + { + } /** * Concurrently resolve the given callbacks via coroutines, returning the results. diff --git a/src/Swoole/SwooleHttpTaskDispatcher.php b/src/Swoole/SwooleHttpTaskDispatcher.php index 2b40f600b..cf6428750 100644 --- a/src/Swoole/SwooleHttpTaskDispatcher.php +++ b/src/Swoole/SwooleHttpTaskDispatcher.php @@ -18,7 +18,8 @@ public function __construct( protected string $host, protected string $port, protected DispatchesTasks $fallbackDispatcher - ) {} + ) { + } /** * Concurrently resolve the given callbacks via background tasks, returning the results. diff --git a/src/Swoole/TaskResult.php b/src/Swoole/TaskResult.php index 764c8566c..93a9113e6 100644 --- a/src/Swoole/TaskResult.php +++ b/src/Swoole/TaskResult.php @@ -4,5 +4,7 @@ class TaskResult { - public function __construct(public mixed $result) {} + public function __construct(public mixed $result) + { + } } diff --git a/src/Testing/Fakes/FakeClient.php b/src/Testing/Fakes/FakeClient.php index 67ec8944e..8d0193823 100644 --- a/src/Testing/Fakes/FakeClient.php +++ b/src/Testing/Fakes/FakeClient.php @@ -17,7 +17,9 @@ class FakeClient implements Client public $errors = []; - public function __construct(public array $requests) {} + public function __construct(public array $requests) + { + } public function marshalRequest(RequestContext $context): array { diff --git a/src/Worker.php b/src/Worker.php index 290a4b851..d3b1e33d1 100644 --- a/src/Worker.php +++ b/src/Worker.php @@ -36,7 +36,8 @@ class Worker implements WorkerContract public function __construct( protected ApplicationFactory $appFactory, protected Client $client - ) {} + ) { + } /** * Boot / initialize the Octane worker. diff --git a/tests/QueuedCookieFlushingTest.php b/tests/QueuedCookieFlushingTest.php index 5eb580655..801830d4b 100644 --- a/tests/QueuedCookieFlushingTest.php +++ b/tests/QueuedCookieFlushingTest.php @@ -18,7 +18,8 @@ public function test_queued_cookies_from_previous_requests_are_flushed() $app['cookie']->queue('color', 'blue'); }); - $app['router']->middleware('web')->get('/second', function (Application $app) {}); + $app['router']->middleware('web')->get('/second', function (Application $app) { + }); $worker->run(); diff --git a/tests/SequentialCoroutineDispatcherTest.php b/tests/SequentialCoroutineDispatcherTest.php index dd02432ba..0e058ecd3 100644 --- a/tests/SequentialCoroutineDispatcherTest.php +++ b/tests/SequentialCoroutineDispatcherTest.php @@ -17,7 +17,8 @@ public function test_coroutines_can_be_resolved() ], $dispatcher->resolve([ 'first' => fn () => 1, 'second' => fn () => 2, - 'third' => function () {}, + 'third' => function () { + }, ])); } } diff --git a/tests/SequentialTaskDispatcherTest.php b/tests/SequentialTaskDispatcherTest.php index 9c0dd4ba8..c018b72c9 100644 --- a/tests/SequentialTaskDispatcherTest.php +++ b/tests/SequentialTaskDispatcherTest.php @@ -20,7 +20,8 @@ public function test_tasks_can_be_resolved() ], $dispatcher->resolve([ 'first' => fn () => 1, 'second' => fn () => 2, - 'third' => function () {}, + 'third' => function () { + }, ])); } diff --git a/tests/SwooleHttpTaskDispatcherTest.php b/tests/SwooleHttpTaskDispatcherTest.php index 061f3e481..26396496b 100644 --- a/tests/SwooleHttpTaskDispatcherTest.php +++ b/tests/SwooleHttpTaskDispatcherTest.php @@ -32,7 +32,8 @@ public function test_tasks_can_be_resolved_via_http() ], $dispatcher->resolve([ 'first' => fn () => 1, 'second' => fn () => 2, - 'third' => function () {}, + 'third' => function () { + }, ])); } diff --git a/tests/WorkerTest.php b/tests/WorkerTest.php index ac5746801..9637a706d 100644 --- a/tests/WorkerTest.php +++ b/tests/WorkerTest.php @@ -28,7 +28,8 @@ public function test_worker_can_dispatch_task_to_application_and_returns_respons [$app, $worker, $client] = $this->createOctaneContext([ fn () => 'foo', fn () => 'bar', - function () {}, + function () { + }, ]); $responses = $worker->runTasks();