Browse Source

Change the code layout of private/protected fields.

Daniele Alessandri 13 years ago
parent
commit
b35dcd515b

+ 4 - 2
lib/Predis/Network/ConnectionBase.php

@@ -12,8 +12,10 @@ use Predis\ConnectionException;
 use Predis\Commands\ICommand;
 
 abstract class ConnectionBase implements IConnectionSingle {
-    private $_cachedId, $_resource;
-    protected $_params, $_initCmds;
+    private $_resource;
+    private $_cachedId;
+    protected $_params;
+    protected $_initCmds;
 
     public function __construct(IConnectionParameters $parameters) {
         $this->_initCmds = array();

+ 2 - 1
lib/Predis/Network/PredisCluster.php

@@ -9,7 +9,8 @@ use Predis\Distribution\IDistributionStrategy;
 use Predis\Distribution\HashRing;
 
 class PredisCluster implements IConnectionCluster, \IteratorAggregate {
-    private $_pool, $_distributor;
+    private $_pool;
+    private $_distributor;
 
     public function __construct(IDistributionStrategy $distributor = null) {
         $this->_pool = array();

+ 2 - 1
lib/Predis/Network/StreamConnection.php

@@ -11,7 +11,8 @@ use Predis\Protocols\TextCommandSerializer;
 use Predis\Iterators\MultiBulkResponseSimple;
 
 class StreamConnection extends ConnectionBase {
-    private $_mbiterable, $_throwErrors;
+    private $_mbiterable;
+    private $_throwErrors;
 
     public function __destruct() {
         if (!$this->_params->connection_persistent) {