From 470ab94b92ea312044c3bbfc0d93fc1d4f7e7aac Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 3 May 2021 15:39:45 +0200 Subject: [PATCH] cs-fix --- lib/IpcServer.php | 4 ++-- test/IpcTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/IpcServer.php b/lib/IpcServer.php index 78b6589..cbc528d 100644 --- a/lib/IpcServer.php +++ b/lib/IpcServer.php @@ -51,14 +51,14 @@ class IpcServer } } elseif ($type === self::TYPE_AUTO) { $types = []; - if (strlen($uri) <= 104) { + if (\strlen($uri) <= 104) { $types []= self::TYPE_UNIX; } $types []= self::TYPE_FIFO; $types []= self::TYPE_TCP; } else { $types = []; - if ($type & self::TYPE_UNIX && strlen($uri) <= 104) { + if ($type & self::TYPE_UNIX && \strlen($uri) <= 104) { $types []= self::TYPE_UNIX; } if ($type & self::TYPE_TCP) { diff --git a/test/IpcTest.php b/test/IpcTest.php index dd5fb62..2709441 100644 --- a/test/IpcTest.php +++ b/test/IpcTest.php @@ -60,7 +60,7 @@ class IpcTest extends AsyncTestCase public function provideUriType(): \Generator { - foreach (['', \sys_get_temp_dir().'/pony', \sys_get_temp_dir().'/'.str_repeat('a', 200)] as $uri) { + foreach (['', \sys_get_temp_dir().'/pony', \sys_get_temp_dir().'/'.\str_repeat('a', 200)] as $uri) { if (\strncasecmp(\PHP_OS, "WIN", 3) === 0) { yield [$uri, IpcServer::TYPE_AUTO]; yield [$uri, IpcServer::TYPE_TCP];