Apply fixes from StyleCI (#12120)

This commit is contained in:
Jellyfrog
2020-09-21 15:40:17 +02:00
committed by GitHub
parent 77c531527c
commit 82f43cb98d
1733 changed files with 18337 additions and 18540 deletions

View File

@@ -30,7 +30,7 @@ use LibreNMS\Exceptions\LockException;
use LibreNMS\Util\FileLock;
use LibreNMS\Util\MemcacheLock;
if (!isset($init_modules) && php_sapi_name() == 'cli') {
if (! isset($init_modules) && php_sapi_name() == 'cli') {
// Not called from within discovery, let's load up the necessary stuff.
$init_modules = [];
require realpath(__DIR__ . '/../..') . '/includes/init.php';
@@ -39,7 +39,7 @@ if (!isset($init_modules) && php_sapi_name() == 'cli') {
$return = 0;
try {
if (isset($skip_schema_lock) && !$skip_schema_lock) {
if (isset($skip_schema_lock) && ! $skip_schema_lock) {
if (Config::get('distributed_poller')) {
$schemaLock = MemcacheLock::lock('schema', 30, 86000);
} else {
@@ -74,7 +74,7 @@ try {
d_echo("$line \n");
if ($line[0] != '#') {
if (!dbQuery($line)) {
if (! dbQuery($line)) {
$return = 2;
$err++;
}