diff --git a/Version/RFC6455.php b/Version/RFC6455.php index 8243ed3..d87f19e 100644 --- a/Version/RFC6455.php +++ b/Version/RFC6455.php @@ -104,7 +104,7 @@ class RFC6455 implements VersionInterface { $from->WebSocket->message = $this->newMessage(); } - // There is a frame fragment attatched to the connection, add to it + // There is a frame fragment attached to the connection, add to it if (!isset($from->WebSocket->frame)) { $from->WebSocket->frame = $this->newFrame(); } diff --git a/Version/RFC6455/Frame.php b/Version/RFC6455/Frame.php index ed11bb4..9d6c8f5 100644 --- a/Version/RFC6455/Frame.php +++ b/Version/RFC6455/Frame.php @@ -45,7 +45,7 @@ class Frame implements FrameInterface { /** * If the frame is coalesced this is true - * This is to prevent doing math every time ::isCoaleced is called + * This is to prevent doing math every time ::isCoalesced is called * @var boolean */ private $isCoalesced = false; @@ -420,7 +420,7 @@ class Frame implements FrameInterface { } /** - * Sometimes clients will concatinate more than one frame over the wire + * Sometimes clients will concatenate more than one frame over the wire * This method will take the extra bytes off the end and return them * @todo Consider returning new Frame * @return string diff --git a/Version/RFC6455/HandshakeVerifier.php b/Version/RFC6455/HandshakeVerifier.php index 19b9a94..c86dbef 100644 --- a/Version/RFC6455/HandshakeVerifier.php +++ b/Version/RFC6455/HandshakeVerifier.php @@ -70,7 +70,7 @@ class HandshakeVerifier { * @param string|null * @return bool * @todo Find out if I can find the master socket, ensure the port is attached to header if not 80 or 443 - not sure if this is possible, as I tried to hide it - * @todo Once I fix HTTP::getHeaders just verify this isn't NULL or empty...or manybe need to verify it's a valid domin??? Or should it equal $_SERVER['HOST'] ? + * @todo Once I fix HTTP::getHeaders just verify this isn't NULL or empty...or maybe need to verify it's a valid domain??? Or should it equal $_SERVER['HOST'] ? */ public function verifyHost($val) { return (null !== $val); @@ -103,7 +103,7 @@ class HandshakeVerifier { } /** - * This function verifyies the nonce is valid (64 big encoded, 16 bytes random string) + * This function verifies the nonce is valid (64 big encoded, 16 bytes random string) * @param string|null * @return bool * @todo The spec says we don't need to base64_decode - can I just check if the length is 24 and not decode? @@ -118,7 +118,7 @@ class HandshakeVerifier { * Origin is an optional field * @param string|null * @return bool - * @todo Implement verification functality - see section 4.2.1.7 + * @todo Implement verification functionality - see section 4.2.1.7 */ public function verifyOrigin($val) { if (null === $val) { diff --git a/VersionManager.php b/VersionManager.php index e7db28f..e3b93c9 100644 --- a/VersionManager.php +++ b/VersionManager.php @@ -51,7 +51,7 @@ class VersionManager { /** * Enable support for a specific version of the WebSocket protocol - * @param Ratchet\WebSocket\Vesion\VersionInterface + * @param Ratchet\WebSocket\Version\VersionInterface * @return HandshakeNegotiator */ public function enableVersion(VersionInterface $version) {