@@ -97,7 +97,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -356,7 +356,7 @@ |
||
| 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 | |
@@ -6,7 +6,7 @@ |
||
| 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 | |