mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Misc cleanup (#12758)
* Fix Docblock * Misc * Parameter #2 $callback of function array_filter expects (callable(mixed, mixed): bool)|null, 'strlen' given * Parameter #2 $data of function hash_hmac expects string, int given * Unreachable statement - code above always terminates. * Update Device.php
This commit is contained in:
@ -154,7 +154,8 @@ class DeviceDependencyController extends MapController
|
||||
$devices_by_id = $this->highlightDevices($devices_by_id, $this->parentDeviceIds);
|
||||
}
|
||||
|
||||
array_multisort(array_column($device_list, 'label'), SORT_ASC, $device_list);
|
||||
$device_list_labels = array_column($device_list, 'label');
|
||||
array_multisort($device_list_labels, SORT_ASC, $device_list);
|
||||
|
||||
$group_name = DeviceGroup::where('id', '=', $group_id)->first('name');
|
||||
if (! empty($group_name)) {
|
||||
|
Reference in New Issue
Block a user