mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12120)
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user