mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use Collection instead of collect() (#14527)
* Use Collection instead of collect() * wip
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
use LibreNMS\Util\ObjectCache;
|
||||
|
||||
if (ObjectCache::serviceCounts(['total'], $device['device_id'])['total'] > 0) {
|
||||
$colors = collect(['green', 'yellow', 'red']);
|
||||
$colors = new \Illuminate\Support\Collection(['green', 'yellow', 'red']);
|
||||
$output = \App\Models\Service::query()
|
||||
->where('device_id', $device['device_id'])
|
||||
->orderBy('service_type')
|
||||
|
Reference in New Issue
Block a user