Skip to content

Commit 034dd1f

Browse files
committed
phpstan and phpcs fixes
1 parent 5ca5e00 commit 034dd1f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

inc/sourcetimer.class.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,12 @@ public static function getTaskLimits(string $itemtype, int $items_id): array
293293
$max_hour = 24;
294294
}
295295

296-
$actualtimes = self::getActualtimes($itemtype, $items_id);
296+
$actualtimes = [];
297+
foreach (self::getActualtimes($itemtype, $items_id) as $rows_id => $data) {
298+
$actualtimes[$rows_id] = $data;
299+
}
300+
301+
$previous_row = 0;
297302
foreach ($actualtimes as $rows_id => $data) {
298303
$max_seconds = $max_hour * 60 * 60 - $duration;
299304
$limit = strtotime($data['min_date'] . " + {$max_seconds} seconds");

0 commit comments

Comments
 (0)