1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 00:27:27 +02:00

refactor: drop usage of Debug::log (#4202)

* refactor: drop usage of Debug::log

* lint
This commit is contained in:
Dag
2024-08-08 04:31:47 +02:00
committed by GitHub
parent 6afd13eb06
commit 2acd415475
20 changed files with 37 additions and 105 deletions

View File

@@ -14,14 +14,12 @@ class UnraidCommunityApplicationsBridge extends BridgeAbstract
private function fetchApps()
{
Debug::log('Fetching all applications/plugins');
$this->apps = getContents(self::APPSURI);
$this->apps = json_decode($this->apps, true)['applist'];
}
private function sortApps()
{
Debug::log('Sorting applications/plugins');
usort($this->apps, function ($app1, $app2) {
return $app1['FirstSeen'] < $app2['FirstSeen'] ? 1 : -1;
});