Arcanedev\LogViewer\Tables\StatsTable::prepareRows PHP Method

prepareRows() protected method

Prepare table rows.
protected prepareRows ( array $data ) : array
$data array
return array
    protected function prepareRows(array $data)
    {
        $rows = [];
        foreach ($data as $date => $levels) {
            $rows[$date] = array_merge(compact('date'), $levels);
        }
        return $rows;
    }