Apply fixes from StyleCI (#12285)

This commit is contained in:
Jellyfrog
2020-11-01 01:48:24 +01:00
committed by GitHub
parent 1374c56ade
commit 5e5128a558
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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');
}