From 136e72d8074389a0088c3e28f88d91915efa7cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 21 Mar 2014 16:46:52 +0100 Subject: [PATCH] CS (trainling space) --- src/Ratchet/AbstractConnectionDecorator.php | 8 ++++---- src/Ratchet/Http/Guzzle/Http/Message/RequestFactory.php | 4 ++-- src/Ratchet/Session/Storage/VirtualSessionStorage.php | 2 +- src/Ratchet/WebSocket/Version/RFC6455/Frame.php | 2 +- tests/unit/WebSocket/Version/RFC6455/FrameTest.php | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Ratchet/AbstractConnectionDecorator.php b/src/Ratchet/AbstractConnectionDecorator.php index 4474307..9707951 100644 --- a/src/Ratchet/AbstractConnectionDecorator.php +++ b/src/Ratchet/AbstractConnectionDecorator.php @@ -2,7 +2,7 @@ namespace Ratchet; /** - * Wraps ConnectionInterface objects via the decorator pattern but allows + * Wraps ConnectionInterface objects via the decorator pattern but allows * parameters to bubble through with magic methods * @todo It sure would be nice if I could make most of this a trait... */ @@ -26,15 +26,15 @@ abstract class AbstractConnectionDecorator implements ConnectionInterface { public function __set($name, $value) { $this->wrappedConn->$name = $value; } - + public function __get($name) { return $this->wrappedConn->$name; } - + public function __isset($name) { return isset($this->wrappedConn->$name); } - + public function __unset($name) { unset($this->wrappedConn->$name); } diff --git a/src/Ratchet/Http/Guzzle/Http/Message/RequestFactory.php b/src/Ratchet/Http/Guzzle/Http/Message/RequestFactory.php index 5a6d75e..8f68e5e 100644 --- a/src/Ratchet/Http/Guzzle/Http/Message/RequestFactory.php +++ b/src/Ratchet/Http/Guzzle/Http/Message/RequestFactory.php @@ -6,7 +6,7 @@ use Guzzle\Http\EntityBody; class RequestFactory extends GuzzleRequestFactory { protected static $ratchetInstance; - + /** * {@inheritdoc} */ @@ -20,7 +20,7 @@ class RequestFactory extends GuzzleRequestFactory { return static::$ratchetInstance; } - + /** * {@inheritdoc} */ diff --git a/src/Ratchet/Session/Storage/VirtualSessionStorage.php b/src/Ratchet/Session/Storage/VirtualSessionStorage.php index c86dcab..9fb0eb7 100644 --- a/src/Ratchet/Session/Storage/VirtualSessionStorage.php +++ b/src/Ratchet/Session/Storage/VirtualSessionStorage.php @@ -56,7 +56,7 @@ class VirtualSessionStorage extends NativeSessionStorage { // get the data from the bags? // serialize the data // save the data using the saveHandler -// $this->saveHandler->write($this->saveHandler->getId(), +// $this->saveHandler->write($this->saveHandler->getId(), if (!$this->saveHandler->isWrapper() && !$this->getSaveHandler()->isSessionHandlerInterface()) { $this->saveHandler->setActive(false); diff --git a/src/Ratchet/WebSocket/Version/RFC6455/Frame.php b/src/Ratchet/WebSocket/Version/RFC6455/Frame.php index ea8a401..1a92c1f 100644 --- a/src/Ratchet/WebSocket/Version/RFC6455/Frame.php +++ b/src/Ratchet/WebSocket/Version/RFC6455/Frame.php @@ -347,7 +347,7 @@ class Frame implements FrameInterface { $bits += 16; } - // If the value of the initial payload length are is 127 an additional 48 bits are used to describe length + // If the value of the initial payload length are is 127 an additional 48 bits are used to describe length // Note: The documentation specifies the length is to be 63 bits, but I think that's a typo and is 64 (16+48) if ($check === 127) { $bits += 48; diff --git a/tests/unit/WebSocket/Version/RFC6455/FrameTest.php b/tests/unit/WebSocket/Version/RFC6455/FrameTest.php index 3683b1c..7f56a6e 100644 --- a/tests/unit/WebSocket/Version/RFC6455/FrameTest.php +++ b/tests/unit/WebSocket/Version/RFC6455/FrameTest.php @@ -29,7 +29,7 @@ class FrameTest extends \PHPUnit_Framework_TestCase { while (strlen($in) >= 8) { $out .= static::encode(substr($in, 0, 8)); - $in = substr($in, 8); + $in = substr($in, 8); } return $out;