Completed
Push — 2.0 ( ee0168...76e968 )
by Marco
11:26
created
src/Comodojo/Extender/Task/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 
138 138
         $result = [];
139 139
 
140
-        foreach($tasks as $task) {
140
+        foreach ( $tasks as $task ) {
141 141
 
142 142
             if ( empty($task['name']) || empty($task['class']) ) {
143 143
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Runner.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
             $thetask = $this->table->get($task)->getInstance($name, $parameters);
90 90
 
91
-            $this->events->emit( new TaskEvent('start', $thetask) );
91
+            $this->events->emit(new TaskEvent('start', $thetask));
92 92
 
93 93
             $pid = $thetask->getPid();
94 94
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 $this->stopwatch->getStartTime()
102 102
             );
103 103
 
104
-            $this->events->emit( new TaskStatusEvent('start', $thetask) );
104
+            $this->events->emit(new TaskStatusEvent('start', $thetask));
105 105
 
106 106
             try {
107 107
 
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
 
124 124
             }
125 125
 
126
-            $this->events->emit( new TaskStatusEvent($status ? 'success' : 'error', $thetask) );
126
+            $this->events->emit(new TaskStatusEvent($status ? 'success' : 'error', $thetask));
127 127
 
128
-            $this->events->emit( new TaskStatusEvent('stop', $thetask) );
128
+            $this->events->emit(new TaskStatusEvent('stop', $thetask));
129 129
 
130
-            $this->events->emit( new TaskEvent('stop', $thetask) );
130
+            $this->events->emit(new TaskEvent('stop', $thetask));
131 131
 
132 132
             $this->stopwatch->stop();
133 133
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         return new Result(
147
-            array (
147
+            array(
148 148
                 $pid,
149 149
                 $name,
150 150
                 $status,
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 
22
-class Result extends Model{
22
+class Result extends Model {
23 23
 
24 24
     protected $mode = self::READONLY;
25 25
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Utils/StopWatch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,9 +111,9 @@
 block discarded – undo
111 111
 
112 112
         $t = microtime(true);
113 113
 
114
-        $micro = sprintf("%06d",($t - floor($t)) * 1000000);
114
+        $micro = sprintf("%06d", ($t - floor($t)) * 1000000);
115 115
 
116
-        return new DateTime( date('Y-m-d H:i:s.'.$micro, $t) );
116
+        return new DateTime(date('Y-m-d H:i:s.'.$micro, $t));
117 117
 
118 118
     }
119 119
 
Please login to merge, or discard this patch.