Completed
Push — 2.0 ( a11c65...7cb9cd )
by Marco
11:37
created
src/Comodojo/Extender/Schedule/Updater.php 3 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,7 @@
 block discarded – undo
38 38
     *
39 39
     * @param Configuration $configuration
40 40
     * @param LoggerInterface $logger
41
-    * @param TasksTable $tasks
42 41
     * @param EventsManager $events
43
-    * @param EntityManager $em
44 42
     */
45 43
     public function __construct(
46 44
         Configuration $configuration,
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@
 block discarded – undo
34 34
     use EventsTrait;
35 35
 
36 36
     /**
37
-    * Class constructor
38
-    *
39
-    * @param Configuration $configuration
40
-    * @param LoggerInterface $logger
41
-    * @param TasksTable $tasks
42
-    * @param EventsManager $events
43
-    * @param EntityManager $em
44
-    */
37
+     * Class constructor
38
+     *
39
+     * @param Configuration $configuration
40
+     * @param LoggerInterface $logger
41
+     * @param TasksTable $tasks
42
+     * @param EventsManager $events
43
+     * @param EntityManager $em
44
+     */
45 45
     public function __construct(
46 46
         Configuration $configuration,
47 47
         LoggerInterface $logger,
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $em = Database::init($this->getConfiguration())->getEntityManager();
60 60
 
61
-        foreach ($results as $result) {
61
+        foreach ( $results as $result ) {
62 62
 
63 63
             $id = $result->jid;
64 64
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $date = new DateTime();
94 94
         $timestamps = [];
95 95
 
96
-        foreach ($items as $schedule) {
96
+        foreach ( $items as $schedule ) {
97 97
 
98 98
             $timestamps[] = $schedule->getNextPlannedRun($date)->getTimestamp();
99 99
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Schedule/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
         $records = [];
145 145
         $em = $this->getEntityManager();
146 146
 
147
-        foreach ($schedules as $key => $schedule) {
147
+        foreach ( $schedules as $key => $schedule ) {
148 148
 
149 149
             try {
150 150
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
 
140 140
         $result = [];
141 141
 
142
-        foreach($tasks as $name => $task) {
142
+        foreach ( $tasks as $name => $task ) {
143 143
 
144 144
             if ( empty($task['class']) ) {
145 145
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Runner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
             $thetask = $this->table->get($task)->getInstance($name, $parameters);
88 88
 
89
-            $this->events->emit( new TaskEvent('start', $thetask) );
89
+            $this->events->emit(new TaskEvent('start', $thetask));
90 90
 
91 91
             $pid = $thetask->getPid();
92 92
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
             }
123 123
 
124
-            $this->events->emit( new TaskEvent('stop', $thetask) );
124
+            $this->events->emit(new TaskEvent('stop', $thetask));
125 125
 
126 126
             $this->stopwatch->stop();
127 127
 
Please login to merge, or discard this patch.