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:
Tony Murray
2017-11-29 02:23:19 -06:00
committed by Neil Lathwood
parent ce913cd8d3
commit d6db01abb5
23 changed files with 231 additions and 171 deletions

View File

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