@@ -38,9 +38,7 @@ |
||
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, |
@@ -34,14 +34,14 @@ |
||
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, |
@@ -58,7 +58,7 @@ discard block |
||
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 |
||
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 |
@@ -144,7 +144,7 @@ |
||
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 |
@@ -139,7 +139,7 @@ |
||
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 |
@@ -86,7 +86,7 @@ discard block |
||
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 |
||
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 |