Apply fixes from StyleCI (#15698)

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Jellyfrog 2024-01-05 05:39:12 +01:00 committed by GitHub
parent 58becd9ea2
commit 071ca9bc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
615 changed files with 4562 additions and 4554 deletions

View File

@ -138,6 +138,7 @@ class SSOAuthorizer extends MysqlAuthorizer
}
}
}
// No match, proxy is untrusted
return false;
} catch (InvalidIpException $e) {
@ -145,6 +146,7 @@ class SSOAuthorizer extends MysqlAuthorizer
return false;
}
}
// Not enabled, trust everything
return true;
}

View File

@ -173,6 +173,7 @@ class Isis implements Module
if (count($data) !== $adjacencies->where('isisISAdjState', 'up')->count()) {
echo 'New Adjacencies, running discovery';
// don't enable, might be a bad heuristic
return $this->fillNew($adjacencies, $this->discoverIsIsMib($os));
}

View File

@ -44,6 +44,7 @@ class RRDRecursiveFilterIterator extends \RecursiveFilterIterator
// We want to search into directories
return true;
}
// Matches files with .rrd in the filename.
// We are only searching rrd folder, but there could be other files and we don't want to cause a stink.
return strpos($filename, '.rrd') !== false;

View File

@ -466,6 +466,7 @@ class Device extends BaseModel
if (empty($ip)) {
return null;
}
// @ suppresses warning, inet_ntop() returns false if it fails
return @inet_ntop($ip) ?: null;
}

View File

@ -35,6 +35,7 @@ class PortGroup extends BaseModel
if ($user->hasGlobalRead()) {
return $query;
}
// maybe filtered in future
return $query;
}

View File

@ -648,6 +648,7 @@ function ResolveGlues($tables, $target, $x = 0, $hist = [], $last = [])
}
}
}
//You should never get here.
return false;
}

View File

@ -816,6 +816,7 @@ function removeComments(&$output)
}
}
}
/* transfer the new array back to the original array */
return $new_array;
}