tq: more cleanup

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-03-22 17:45:45 -07:00
parent ac1529bb87
commit e38d208067
1 changed files with 3 additions and 3 deletions

View File

@ -177,7 +177,7 @@ trait TimelineQueryDays
$rows = $cursor->fetchAll(); $rows = $cursor->fetchAll();
$cursor->closeCursor(); $cursor->closeCursor();
return $this->processDay($rows, $uid, $root); return $this->processDay($rows);
} }
/** /**
@ -185,7 +185,7 @@ trait TimelineQueryDays
* *
* @param array $days * @param array $days
*/ */
private function processDays(&$days) private function processDays($days)
{ {
foreach ($days as &$row) { foreach ($days as &$row) {
$row['dayid'] = (int) $row['dayid']; $row['dayid'] = (int) $row['dayid'];
@ -198,7 +198,7 @@ trait TimelineQueryDays
/** /**
* Process the single day response. * Process the single day response.
*/ */
private function processDay(array &$day, string $uid, TimelineRoot &$root) private function processDay(array $day)
{ {
foreach ($day as &$row) { foreach ($day as &$row) {
// Convert field types // Convert field types