case the below foreach() is unneccessary as the if() block in it will never
match.
Signed-off-by: Roland Haeder <roland@mxchange.org>
$cls);
}
- function isCurrent($actionName, array $args)
+ function isCurrent($actionName, $args)
{
if ($actionName != $this->actionName) {
return false;
+ } elseif (!is_array($args)) {
+ /*
+ * No array, then the below loop doesn't need to run and
+ * 'return false' will never be reached.
+ */
+ return true;
}
foreach ($this->actionArgs as $k => $v) {