mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12285)
This commit is contained in:
@@ -75,7 +75,7 @@ if (Config::get('enable_libvirt') && $device['os'] == 'linux') {
|
||||
exec(Config::get('virsh') . ' -rc ' . $uri . ' domstate ' . $dom_id, $vm_state);
|
||||
$vmwVmState = ucfirst($vm_state[0]);
|
||||
unset($vm_state);
|
||||
|
||||
|
||||
$vmwVmCpus = $xml->vcpu['current'];
|
||||
if (! isset($vmwVmCpus)) {
|
||||
$vmwVmCpus = $xml->vcpu;
|
||||
|
@@ -227,7 +227,7 @@ function get_graph_generic_by_hostname(Illuminate\Http\Request $request)
|
||||
$device = device_by_id_cache($device_id);
|
||||
$vars['device'] = $device['device_id'];
|
||||
|
||||
return check_device_permission($device_id, function () use ($request , $vars) {
|
||||
return check_device_permission($device_id, function () use ($request, $vars) {
|
||||
if ($request->has('from')) {
|
||||
$vars['from'] = $request->get('from');
|
||||
}
|
||||
|
Reference in New Issue
Block a user