CS (trainling space)

This commit is contained in:
Grégoire Pineau 2014-03-21 16:46:52 +01:00
parent 3a8578bd17
commit 136e72d807
5 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
namespace Ratchet; 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 * parameters to bubble through with magic methods
* @todo It sure would be nice if I could make most of this a trait... * @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) { public function __set($name, $value) {
$this->wrappedConn->$name = $value; $this->wrappedConn->$name = $value;
} }
public function __get($name) { public function __get($name) {
return $this->wrappedConn->$name; return $this->wrappedConn->$name;
} }
public function __isset($name) { public function __isset($name) {
return isset($this->wrappedConn->$name); return isset($this->wrappedConn->$name);
} }
public function __unset($name) { public function __unset($name) {
unset($this->wrappedConn->$name); unset($this->wrappedConn->$name);
} }

View File

@ -6,7 +6,7 @@ use Guzzle\Http\EntityBody;
class RequestFactory extends GuzzleRequestFactory { class RequestFactory extends GuzzleRequestFactory {
protected static $ratchetInstance; protected static $ratchetInstance;
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
@ -20,7 +20,7 @@ class RequestFactory extends GuzzleRequestFactory {
return static::$ratchetInstance; return static::$ratchetInstance;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

View File

@ -56,7 +56,7 @@ class VirtualSessionStorage extends NativeSessionStorage {
// get the data from the bags? // get the data from the bags?
// serialize the data // serialize the data
// save the data using the saveHandler // 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()) { if (!$this->saveHandler->isWrapper() && !$this->getSaveHandler()->isSessionHandlerInterface()) {
$this->saveHandler->setActive(false); $this->saveHandler->setActive(false);

View File

@ -347,7 +347,7 @@ class Frame implements FrameInterface {
$bits += 16; $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) // 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) { if ($check === 127) {
$bits += 48; $bits += 48;

View File

@ -29,7 +29,7 @@ class FrameTest extends \PHPUnit_Framework_TestCase {
while (strlen($in) >= 8) { while (strlen($in) >= 8) {
$out .= static::encode(substr($in, 0, 8)); $out .= static::encode(substr($in, 0, 8));
$in = substr($in, 8); $in = substr($in, 8);
} }
return $out; return $out;