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