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:
@@ -58,7 +58,7 @@ class DeviceController extends Controller
|
||||
public function index(Request $request, $device, $current_tab = 'overview', $vars = '')
|
||||
{
|
||||
$device = str_replace('device=', '', $device);
|
||||
$device = is_numeric($device) ? DeviceCache::get($device) : DeviceCache::getByHostname($device);
|
||||
$device = is_numeric($device) ? DeviceCache::get((int) $device) : DeviceCache::getByHostname($device);
|
||||
$device_id = $device->device_id;
|
||||
|
||||
if (! $device->exists) {
|
||||
|
||||
Reference in New Issue
Block a user