mirror of
https://github.com/danog/ipc.git
synced 2024-11-26 12:04:51 +01:00
cs-fix
This commit is contained in:
parent
faa13a43aa
commit
470ab94b92
@ -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) {
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user