Apply fixes from StyleCI (#12117)

* Apply fixes from StyleCI

* Disable style check
This commit is contained in:
Jellyfrog
2020-09-21 14:54:51 +02:00
committed by GitHub
parent 8ec9183df5
commit 77c531527c
752 changed files with 6238 additions and 5833 deletions

View File

@@ -25,10 +25,10 @@
namespace LibreNMS\Tests;
use const false;
use Illuminate\Support\Str;
use LibreNMS\Config;
use LibreNMS\Util\OS;
use const false;
use const true;
class OSDiscoveryTest extends TestCase
@@ -147,21 +147,21 @@ class OSDiscoveryTest extends TestCase
{
// make sure all OS are loaded
$config_os = array_keys(Config::get('os'));
if (count($config_os) < count(glob(Config::get('install_dir').'/includes/definitions/*.yaml'))) {
if (count($config_os) < count(glob(Config::get('install_dir') . '/includes/definitions/*.yaml'))) {
OS::loadAllDefinitions(false, true);
$config_os = array_keys(Config::get('os'));
}
$excluded_os = array(
$excluded_os = [
'default',
'generic',
'ping',
);
];
$filtered_os = array_diff($config_os, $excluded_os);
$all_os = array();
$all_os = [];
foreach ($filtered_os as $os) {
$all_os[$os] = array($os);
$all_os[$os] = [$os];
}
return $all_os;