@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | $defaults = []; |
9 | 9 | $startDate = strtotime('-6 days'); |
10 | 10 | foreach (range(-6, 0) as $day) { |
11 | - $defaults[date('D: Y-m-d', strtotime($day . 'days'))] = 0; |
|
11 | + $defaults[date('D: Y-m-d', strtotime($day.'days'))] = 0; |
|
12 | 12 | } |
13 | 13 | $results = AuditError::find() |
14 | 14 | ->select(["COUNT(DISTINCT id) as count", "created AS day"]) |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | date('Y-m-d 00:00:00', $startDate), |
17 | 17 | date('Y-m-d 23:59:59')]) |
18 | 18 | ->groupBy("day")->indexBy('day')->column(); |
19 | -array_walk($results, function ($count, &$key) { |
|
19 | +array_walk($results, function($count, &$key) { |
|
20 | 20 | $key = date('D: Y-m-d', date_create($key)); |
21 | 21 | }); |
22 | 22 | $results = array_merge($defaults, $results); |