Completed
Push — 2.0 ( 76e968...4129d9 )
by Marco
13:01
created
src/Comodojo/Extender/Task/Runner.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
             $thetask = $this->table->get($task)->getInstance($name, $parameters);
99 99
 
100
-            $this->events->emit( new TaskEvent('start', $thetask) );
100
+            $this->events->emit(new TaskEvent('start', $thetask));
101 101
 
102 102
             $pid = $thetask->getPid();
103 103
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 $this->stopwatch->getStartTime()
113 113
             );
114 114
 
115
-            $this->events->emit( new TaskStatusEvent('start', $thetask) );
115
+            $this->events->emit(new TaskStatusEvent('start', $thetask));
116 116
 
117 117
             try {
118 118
 
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
 
135 135
             }
136 136
 
137
-            $this->events->emit( new TaskStatusEvent($status ? 'success' : 'error', $thetask) );
137
+            $this->events->emit(new TaskStatusEvent($status ? 'success' : 'error', $thetask));
138 138
 
139
-            $this->events->emit( new TaskStatusEvent('stop', $thetask) );
139
+            $this->events->emit(new TaskStatusEvent('stop', $thetask));
140 140
 
141
-            $this->events->emit( new TaskEvent('stop', $thetask) );
141
+            $this->events->emit(new TaskEvent('stop', $thetask));
142 142
 
143 143
             $this->stopwatch->stop();
144 144
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@
 block discarded – undo
356 356
 
357 357
     public function isChain() {
358 358
 
359
-        return ( $this->done !== null || $this->fail !== null || $this->pipe !== null );
359
+        return ($this->done !== null || $this->fail !== null || $this->pipe !== null);
360 360
 
361 361
     }
362 362
 
Please login to merge, or discard this patch.
test_socket_2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
     $client = \Comodojo\Daemon\Socket\Client::create('unix://extender.sock');
8 8
 
9
-    $data = $client->send('scheduler:refresh',[]);
9
+    $data = $client->send('scheduler:refresh', []);
10 10
 
11 11
 } catch (Exception $e) {
12 12
 
Please login to merge, or discard this patch.