aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-15 13:39:03 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-17 17:04:44 +0200
commit8bde3c60ac930ac5ec1ffc6389afb8ec6a009d26 (patch)
treea7e8cca6f21b88002340f8374856f9b4ac410435
parente6302603cbad55e033ac7549087b219eb0ed8688 (diff)
downloadWebsocket-8bde3c60ac930ac5ec1ffc6389afb8ec6a009d26.zip
Websocket-8bde3c60ac930ac5ec1ffc6389afb8ec6a009d26.tar.gz
Websocket-8bde3c60ac930ac5ec1ffc6389afb8ec6a009d26.tar.bz2
Quality: Fix CS.
-rw-r--r--Connection.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Connection.php b/Connection.php
index 14fb68b..d35c189 100644
--- a/Connection.php
+++ b/Connection.php
@@ -390,18 +390,18 @@ abstract class Connection
break;
case self::OPCODE_PONG:
- if (0 === $frame['fin']) {
+ if (0x0 === $frame['fin']) {
$this->close(self::CLOSE_PROTOCOL_ERROR);
break;
}
- break;
+ break;
case self::OPCODE_CONNECTION_CLOSE:
$length = &$frame['length'];
- if (1 === $length ||
+ if (0x1 === $length ||
0x7d < $length) {
$this->close(self::CLOSE_PROTOCOL_ERROR);