Completed
Push — master ( e9a852...6de009 )
by Mike
03:07
created
src/Tactician/ChainedInflector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * @var MethodNameInflector[]
12 12
      */
13
-    private $inflectors = [];
13
+    private $inflectors = [ ];
14 14
 
15 15
     /**
16 16
      * @param MethodNameInflector[] $inflectors
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function __construct(array $inflectors)
19 19
     {
20 20
         array_walk($inflectors, function (MethodNameInflector $inflector) {
21
-            $this->inflectors[] = $inflector;
21
+            $this->inflectors[ ] = $inflector;
22 22
         });
23 23
     }
24 24
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         foreach ($this->inflectors as $inflector) {
28 28
             $methodName = $inflector->inflect($command, $handler);
29
-            if (is_callable([$handler, $methodName])) {
29
+            if (is_callable([ $handler, $methodName ])) {
30 30
                 return $methodName;
31 31
             }
32 32
         }
Please login to merge, or discard this patch.
src/QueueResolver/ClassMapQueueResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
     {
20 20
         if (is_object($command)) {
21 21
             $class = get_class($command);
22
-            if (isset($this->map[$class])) {
23
-                return $this->map[$class];
22
+            if (isset($this->map[ $class ])) {
23
+                return $this->map[ $class ];
24 24
             }
25 25
         }
26 26
         throw new QueueResolverException;
Please login to merge, or discard this patch.
src/Serializer/PHPCommandSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function unserialize(string $serialized)
17 17
     {
18
-        set_error_handler([$this, 'handleError']);
18
+        set_error_handler([ $this, 'handleError' ]);
19 19
         $unserialized = unserialize($serialized);
20 20
         restore_error_handler();
21 21
         return $unserialized;
Please login to merge, or discard this patch.
src/Redis/Predis/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function getIterator()
17 17
     {
18 18
         if (!$this->getConnection() instanceof \Traversable) {
19
-            return new \ArrayIterator([$this]);
19
+            return new \ArrayIterator([ $this ]);
20 20
         }
21 21
         return parent::getIterator();
22 22
     }
Please login to merge, or discard this patch.
src/Redis/RedisDriver.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 final class RedisDriver implements QueueDriverInterface, SchedulerDriverInterface
15 15
 {
16 16
 
17
-    const LUA_PATH = __DIR__ . '/../../lua';
17
+    const LUA_PATH = __DIR__.'/../../lua';
18 18
 
19 19
     private $adapter;
20 20
     private $namespace;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function queueCommand(string $queueName, string $commandId, string $serialized)
32 32
     {
33
-        $this->evalScript('queue_message', [$this->namespace, $queueName, $commandId, $serialized]);
33
+        $this->evalScript('queue_message', [ $this->namespace, $queueName, $commandId, $serialized ]);
34 34
     }
35 35
 
36 36
     public function awaitCommand(string $queueName, int $timeout = null): ReceivedCommand
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $id = null;
48 48
         }
49 49
         if (!empty($id)) {
50
-            $serialized = $this->evalScript('receive_message', [$this->namespace, $queueName, $id]);
50
+            $serialized = $this->evalScript('receive_message', [ $this->namespace, $queueName, $id ]);
51 51
             if (!empty($serialized)) {
52 52
                 return new ReceivedCommand($queueName, $id, $serialized);
53 53
             }
@@ -112,19 +112,19 @@  discard block
 block discarded – undo
112 112
 
113 113
     public function deleteQueue(string $queueName)
114 114
     {
115
-        $this->evalScript('empty_queue', [$this->namespace, $queueName]);
115
+        $this->evalScript('empty_queue', [ $this->namespace, $queueName ]);
116 116
     }
117 117
 
118 118
     public function purgeCommand(string $queueName, string $id)
119 119
     {
120
-        $this->evalScript('purge_message', [$this->namespace, $queueName, $id]);
120
+        $this->evalScript('purge_message', [ $this->namespace, $queueName, $id ]);
121 121
     }
122 122
 
123 123
     public function scheduleCommand(string $queueName, string $id, string $serialized, \DateTime $dateTime)
124 124
     {
125 125
         $this->evalScript(
126 126
             'schedule_message',
127
-            [$this->namespace, $queueName, $id, $serialized, $dateTime->getTimestamp()]
127
+            [ $this->namespace, $queueName, $id, $serialized, $dateTime->getTimestamp() ]
128 128
         );
129 129
     }
130 130
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
     public function purgeNamespace()
194 194
     {
195
-        $this->evalScript('purge_namespace', [$this->namespace]);
195
+        $this->evalScript('purge_namespace', [ $this->namespace ]);
196 196
     }
197 197
 
198 198
     private function evalScript(string $script, array $args)
@@ -202,6 +202,6 @@  discard block
 block discarded – undo
202 202
 
203 203
     private function getScriptPath(string $script): string
204 204
     {
205
-        return self::LUA_PATH . '/' . $script . '.lua';
205
+        return self::LUA_PATH.'/'.$script.'.lua';
206 206
     }
207 207
 }
Please login to merge, or discard this patch.