Ver código fonte

Restore alignment for a few equals symbols.

Daniele Alessandri 9 anos atrás
pai
commit
4ac1a81aa4

+ 5 - 5
bin/create-single-file

@@ -19,7 +19,7 @@
 // files, but namespaces and classes definitions must follow a precise order
 // when dealing with subclassing and inheritance.
 //
-// The current implementation is pretty naïve, but it should do for now.
+// The current implementation is pretty naïve, but it should do for now.
 // -------------------------------------------------------------------------- //
 
 class CommandLine
@@ -27,10 +27,10 @@ class CommandLine
     public static function getOptions()
     {
         $parameters = array(
-            's:'  => 'source:',
-            'o:'  => 'output:',
-            'e:'  => 'exclude:',
-            'E:'  => 'exclude-classes:',
+            's:' => 'source:',
+            'o:' => 'output:',
+            'e:' => 'exclude:',
+            'E:' => 'exclude-classes:',
         );
 
         $getops = getopt(implode(array_keys($parameters)), $parameters);

+ 1 - 1
src/Profile/Factory.php

@@ -27,8 +27,8 @@ final class Factory
         '2.6' => 'Predis\Profile\RedisVersion260',
         '2.8' => 'Predis\Profile\RedisVersion280',
         '3.0' => 'Predis\Profile\RedisVersion300',
-        'default' => 'Predis\Profile\RedisVersion300',
         'dev' => 'Predis\Profile\RedisUnstable',
+        'default' => 'Predis\Profile\RedisVersion300',
     );
 
     /**

+ 8 - 8
src/PubSub/AbstractConsumer.php

@@ -18,16 +18,16 @@ namespace Predis\PubSub;
  */
 abstract class AbstractConsumer implements \Iterator
 {
-    const SUBSCRIBE = 'subscribe';
-    const UNSUBSCRIBE = 'unsubscribe';
-    const PSUBSCRIBE = 'psubscribe';
+    const SUBSCRIBE    = 'subscribe';
+    const UNSUBSCRIBE  = 'unsubscribe';
+    const PSUBSCRIBE   = 'psubscribe';
     const PUNSUBSCRIBE = 'punsubscribe';
-    const MESSAGE = 'message';
-    const PMESSAGE = 'pmessage';
-    const PONG = 'pong';
+    const MESSAGE      = 'message';
+    const PMESSAGE     = 'pmessage';
+    const PONG         = 'pong';
 
-    const STATUS_VALID = 1;    // 0b0001
-    const STATUS_SUBSCRIBED = 2;    // 0b0010
+    const STATUS_VALID       = 1;    // 0b0001
+    const STATUS_SUBSCRIBED  = 2;    // 0b0010
     const STATUS_PSUBSCRIBED = 4;    // 0b0100
 
     private $position = null;

+ 3 - 3
src/Transaction/MultiExecState.php

@@ -20,9 +20,9 @@ class MultiExecState
 {
     const INITIALIZED = 1;    // 0b00001
     const INSIDEBLOCK = 2;    // 0b00010
-    const DISCARDED = 4;    // 0b00100
-    const CAS = 8;    // 0b01000
-    const WATCH = 16;   // 0b10000
+    const DISCARDED   = 4;    // 0b00100
+    const CAS         = 8;    // 0b01000
+    const WATCH       = 16;   // 0b10000
 
     private $flags;