From 6886b039e57cfd19c5fa9b05f3a3bb1bd0b824d9 Mon Sep 17 00:00:00 2001 From: coderswat Date: Tue, 29 Aug 2023 18:43:04 +0530 Subject: [PATCH] phpcs fix php cs fixed , --- examples/reqwest/lib/Client.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/examples/reqwest/lib/Client.php b/examples/reqwest/lib/Client.php index 0366519..41f90c2 100644 --- a/examples/reqwest/lib/Client.php +++ b/examples/reqwest/lib/Client.php @@ -4,27 +4,32 @@ namespace Reqwest; use Revolt\EventLoop; -final class Client { +final class Client +{ private static ?string $id = null; - - public static function init(): void { + + public static function init(): void + { if (self::$id !== null) { return; } - $f = fopen("php://fd/".\Client::init(), 'r+'); + $f = fopen("php://fd/" . \Client::init(), "r+"); stream_set_blocking($f, false); - self::$id = EventLoop::onReadable($f, fn () => \Client::wakeup()); + self::$id = EventLoop::onReadable($f, fn() => \Client::wakeup()); } - public static function reference(): void{ + public static function reference(): void + { EventLoop::reference(self::$id); } - public static function unreference(): void { + public static function unreference(): void + { EventLoop::unreference(self::$id); } - public static function __callStatic(string $name, array $args): mixed { + public static function __callStatic(string $name, array $args): mixed + { return \Client::$name(...$args); } }