From 239a6b3642fc88283bbe125b96d3e2556f3961ac Mon Sep 17 00:00:00 2001 From: till Date: Sat, 9 Apr 2011 17:24:06 +0200 Subject: [PATCH] * fix naming isWrited >> isWritten --- library/Rediska/Command/Abstract.php | 10 +++++----- library/Rediska/Connection/Exec.php | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/library/Rediska/Command/Abstract.php b/library/Rediska/Command/Abstract.php index 7283af0..9ab3c05 100644 --- a/library/Rediska/Command/Abstract.php +++ b/library/Rediska/Command/Abstract.php @@ -75,7 +75,7 @@ abstract class Rediska_Command_Abstract implements Rediska_Command_Interface * * @var unknown_type */ - protected $_isWrited = false; + protected $_isWritten = false; /** * Is queued to transaction @@ -135,7 +135,7 @@ public function write() $exec->write(); } - $this->_isWrited = true; + $this->_isWritten = true; return true; } @@ -149,7 +149,7 @@ public function read() { $responses = array(); - if (!$this->_isWrited) { + if (!$this->_isWritten) { throw new Rediska_Command_Exception('You need write before'); } @@ -162,7 +162,7 @@ public function read() return true; } else { - $this->_isWrited = false; + $this->_isWritten = false; return $this->parseResponses($responses); } } @@ -411,4 +411,4 @@ protected function _throwExceptionIfNotSupported($version = null) throw new Rediska_Command_Exception("Command '{$this->_name}' requires {$version}+ version of Redis server. Current version is {$redisVersion}. To change it specify 'redisVersion' option."); } } -} \ No newline at end of file +} diff --git a/library/Rediska/Connection/Exec.php b/library/Rediska/Connection/Exec.php index 0c86bc8..27e20c2 100644 --- a/library/Rediska/Connection/Exec.php +++ b/library/Rediska/Connection/Exec.php @@ -42,9 +42,9 @@ class Rediska_Connection_Exec /** * Is writed * - * @var $_isWrited string + * @var $_isWritten boolean */ - protected $_isWrited = false; + protected $_isWritten = false; /** * Response callback @@ -84,7 +84,7 @@ public function __construct(Rediska_Connection $connection, $command) public function write() { $result = $this->getConnection()->write($this->getCommand()); - $this->_isWrited = true; + $this->_isWritten = true; return $result; } @@ -94,9 +94,9 @@ public function write() * * @return boolean */ - public function isWrited() + public function isWritten() { - return $this->_isWrited; + return $this->_isWritten; } /** @@ -106,11 +106,11 @@ public function isWrited() */ public function read() { - if (!$this->isWrited()) { + if (!$this->isWritten()) { throw new Rediska_Connection_Exec_Exception('You must write command before read'); } - $this->_isWrited = false; + $this->_isWritten = false; if ($this->getResponseIterator() !== null) { if ($this->getResponseIterator() === true) { @@ -304,4 +304,4 @@ public static function readResponseFromConnection(Rediska_Connection $connection throw new Rediska_Connection_Exec_Exception("Invalid reply type: '$type'"); } } -} \ No newline at end of file +}