Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function __invoke(Request $request, $appId) |
||
18 | { |
||
19 | $processQuery = function ($query) use ($appId) { |
||
20 | return $query->whereAppId($appId) |
||
21 | ->latest() |
||
22 | ->limit(120); |
||
23 | }; |
||
24 | |||
25 | $processCollection = function ($collection) { |
||
26 | return $collection->reverse(); |
||
27 | }; |
||
28 | |||
29 | return StatisticsStore::getForGraph( |
||
30 | $processQuery, $processCollection |
||
31 | ); |
||
32 | } |
||
33 | } |
||
34 |