From a8092a3a9dab87dfa3b5d008219768e8dcd3db7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Tue, 26 Sep 2023 14:23:05 +0800 Subject: [PATCH] Format code --- src/Functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Functions.php b/src/Functions.php index 0c6294d..3671bba 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -21,19 +21,19 @@ function swoole_get_flags_from_frame(FrameInterface $frame): int { $flags = 0; if ($frame->getFin()) { - $flags = $flags | SWOOLE_WEBSOCKET_FLAG_FIN; + $flags |= SWOOLE_WEBSOCKET_FLAG_FIN; } if ($frame->getRSV1()) { - $flags = $flags | SWOOLE_WEBSOCKET_FLAG_RSV1; + $flags |= SWOOLE_WEBSOCKET_FLAG_RSV1; } if ($frame->getRSV2()) { - $flags = $flags | SWOOLE_WEBSOCKET_FLAG_RSV2; + $flags |= SWOOLE_WEBSOCKET_FLAG_RSV2; } if ($frame->getRSV3()) { - $flags = $flags | SWOOLE_WEBSOCKET_FLAG_RSV3; + $flags |= SWOOLE_WEBSOCKET_FLAG_RSV3; } if ($frame->getMask()) { - $flags = $flags | SWOOLE_WEBSOCKET_FLAG_MASK; + $flags |= SWOOLE_WEBSOCKET_FLAG_MASK; } return $flags;