mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Refactor fix php codesniffer 3.x issues (#7816)
We cannot use 3.x because it requires php 5.4, so update to 2.9.1 or newer 2.x release.
This commit is contained in:
committed by
Neil Lathwood
parent
ce913cd8d3
commit
d6db01abb5
@@ -302,7 +302,7 @@ class Component
|
||||
}
|
||||
|
||||
// Ignore type, we cant change that.
|
||||
unset($AVP['type'],$OLD[$device_id][$COMPONENT]['type']);
|
||||
unset($AVP['type'], $OLD[$device_id][$COMPONENT]['type']);
|
||||
|
||||
// If the Status has changed we need to add a log entry
|
||||
if ($AVP['status'] != $OLD[$device_id][$COMPONENT]['status']) {
|
||||
@@ -322,7 +322,7 @@ class Component
|
||||
}
|
||||
|
||||
// Unset the reserved field. We don't want to insert it below.
|
||||
unset($AVP[$k],$OLD[$device_id][$COMPONENT][$k]);
|
||||
unset($AVP[$k], $OLD[$device_id][$COMPONENT][$k]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user