Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Mar 28, 2023
1 parent 57acb56 commit b66ad45
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,5 @@
return $podcast->getAudioFile($episode);
},
],

[
'pattern' => 'test',
'action' => function () {
$podcasterStats = new PodcasterStatsMysql();
$results = $podcasterStats->getDownloadsGraphData('phpunit', 2023, 2);

if ($results === false) {
return ['days' => []];
}

$trackedDays = $results->toArray();
$days = array_fill(0,32,0);

foreach ($trackedDays as $day) {
$days[$day->day] = $day->downloads;
}

return ['days' => $days];
},
],
],
]);

0 comments on commit b66ad45

Please sign in to comment.