src/Console/Commands/LoggerReport.php
private function getPerMonth($months)
    {
        $per_month = [];

        $log = $this->logger->perMonth($months);

        foreach($log as $date => $hits) {
            array_push($per_month, [$date, $hits]);
        }

        return $per_month;
    }
private function getPerMonth($months)
    {
        $per_month = [];

        $log = $this->logger->perMonth($months);

        foreach($log as $date => $hits) {
            array_push($per_month, [$date, $hits]);
        }

        return $per_month;
    }
Retrieves the hits per month for given months back
and saves them in array of arrays to be used in
console table.

@param $months
@return array