File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/classes/Tools/Hosts/SoftwareAssets Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ public function get(\DateTimeImmutable $date = null)
23
23
if ($ date == null ) {
24
24
$ date = new \DateTimeImmutable ();
25
25
}
26
- $ snapshot = $ this ->fetchSoftwareAssetSnapshots ->fetchForDate ($ date );
27
- $ snapshotHeaders = $ this ->fetchSoftwareAssetSnapshots ->fetchLastSevenHeaders ();
28
26
27
+ $ snapshot = $ this ->fetchSoftwareAssetSnapshots ->fetchForDate ($ date );
29
28
30
29
$ output = [
31
30
"date " => $ date ->format ("Y-m-d " ),
@@ -85,7 +84,7 @@ public function get(\DateTimeImmutable $date = null)
85
84
if (!isset ($ output ["packages " ][$ packageKey ])) {
86
85
$ output ["packages " ][$ packageKey ] = [
87
86
"name " => $ package ["name " ],
88
- "totalInstalls " => 0 ,
87
+ "totalInstalls " => 0 ,
89
88
"versions " => []
90
89
];
91
90
}
@@ -110,7 +109,7 @@ public function get(\DateTimeImmutable $date = null)
110
109
111
110
usort ($ output ["packages " ], [$ this , "sortInstalls " ]);
112
111
113
- $ output ["packages " ] = array_slice ($ output ["packages " ], 0 , 20 );
112
+ $ output ["packages " ] = array_slice ($ output ["packages " ], 0 , 20 );
114
113
115
114
return $ output ;
116
115
}
You can’t perform that action at this time.
0 commit comments