Fixed typos

This commit is contained in:
Pascal Borreli 2012-10-11 18:33:29 +00:00
parent 491919f7dc
commit 26342eb92d
4 changed files with 7 additions and 7 deletions

View File

@ -104,7 +104,7 @@ class RFC6455 implements VersionInterface {
$from->WebSocket->message = $this->newMessage(); $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)) { if (!isset($from->WebSocket->frame)) {
$from->WebSocket->frame = $this->newFrame(); $from->WebSocket->frame = $this->newFrame();
} }

View File

@ -45,7 +45,7 @@ class Frame implements FrameInterface {
/** /**
* If the frame is coalesced this is true * 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 * @var boolean
*/ */
private $isCoalesced = false; 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 * This method will take the extra bytes off the end and return them
* @todo Consider returning new Frame * @todo Consider returning new Frame
* @return string * @return string

View File

@ -70,7 +70,7 @@ class HandshakeVerifier {
* @param string|null * @param string|null
* @return bool * @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 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) { public function verifyHost($val) {
return (null !== $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 * @param string|null
* @return bool * @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? * @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 * Origin is an optional field
* @param string|null * @param string|null
* @return bool * @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) { public function verifyOrigin($val) {
if (null === $val) { if (null === $val) {

View File

@ -51,7 +51,7 @@ class VersionManager {
/** /**
* Enable support for a specific version of the WebSocket protocol * Enable support for a specific version of the WebSocket protocol
* @param Ratchet\WebSocket\Vesion\VersionInterface * @param Ratchet\WebSocket\Version\VersionInterface
* @return HandshakeNegotiator * @return HandshakeNegotiator
*/ */
public function enableVersion(VersionInterface $version) { public function enableVersion(VersionInterface $version) {