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

@@ -60,7 +60,7 @@ class FileCategorizerTest extends TestCase
'includes/polling/sensors.inc.php',
'misc/test.php',
'app/Http/Kernel.php',
'LibreNMS/Modules/Mpls.php'
'LibreNMS/Modules/Mpls.php',
],
]);
}
@@ -72,7 +72,7 @@ class FileCategorizerTest extends TestCase
'doc/CNAME',
'doc/Developing/Creating-Release.md',
'mkdocs.yml',
]
],
]);
}
@@ -82,7 +82,7 @@ class FileCategorizerTest extends TestCase
'python' => [
'python.py',
'LibreNMS/__init__.py',
]
],
]);
}
@@ -92,7 +92,7 @@ class FileCategorizerTest extends TestCase
'bash' => [
'daily.sh',
'scripts/deploy-docs.sh',
]
],
]);
}
@@ -102,8 +102,8 @@ class FileCategorizerTest extends TestCase
'svg' => [
'html/images/os/zte.svg',
'html/images/logos/zyxel.svg',
'html/svg/403.svg'
]
'html/svg/403.svg',
],
]);
}
@@ -113,11 +113,11 @@ class FileCategorizerTest extends TestCase
'resources' => [
'resources/js/app.js',
'resources/js/components/LibrenmsSetting.vue',
'resources/views/layouts/librenmsv1.blade.php'
'resources/views/layouts/librenmsv1.blade.php',
],
'php' => [
'resources/views/layouts/librenmsv1.blade.php'
]
'resources/views/layouts/librenmsv1.blade.php',
],
]);
}
@@ -129,8 +129,8 @@ class FileCategorizerTest extends TestCase
'tests/data/ftd.json',
'tests/data/3com_4200.json',
'tests/data/adva_fsp150_ge114pro.json',
'tests/data/saf-integra-b.json'
]
'tests/data/saf-integra-b.json',
],
]);
$this->assertCategorized([
@@ -139,20 +139,20 @@ class FileCategorizerTest extends TestCase
'tests/snmpsim/ciscowap.snmprec',
'tests/snmpsim/xos_x480.snmprec',
'tests/snmpsim/ciscosb_esw540_8p.snmprec',
'tests/snmpsim/linux_fbsd-nfs-client-v1.snmprec'
]
'tests/snmpsim/linux_fbsd-nfs-client-v1.snmprec',
],
]);
$this->assertCategorized([
'os' => ['arris-c4', 'ios'],
'os-files' => [
'includes/discovery/sensors/temperature/arris-c4.inc.php',
'includes/polling/entity-physical/ios.inc.php'
'includes/polling/entity-physical/ios.inc.php',
],
'php' => [
'includes/discovery/sensors/temperature/arris-c4.inc.php',
'includes/polling/entity-physical/ios.inc.php'
]
'includes/polling/entity-physical/ios.inc.php',
],
]);
$this->assertCategorized([
@@ -168,7 +168,7 @@ class FileCategorizerTest extends TestCase
'LibreNMS/OS/ArrisDsr4410md.php',
'LibreNMS/OS/AdvaFsp3kr7.php',
'LibreNMS/OS/XirrusAos.php',
]
],
]);
$this->assertCategorized([
@@ -176,7 +176,7 @@ class FileCategorizerTest extends TestCase
'os-files' => [
'includes/definitions/dlink.yaml',
'includes/definitions/discovery/eltex-olt.yaml',
]
],
]);
}
@@ -195,9 +195,9 @@ class FileCategorizerTest extends TestCase
'includes/definitions/discovery/arista_eos.yaml',
],
'php' => [
'LibreNMS/OS/Ptp650.php'
'LibreNMS/OS/Ptp650.php',
],
'full-checks' => [true]
'full-checks' => [true],
], [
'tests/data/3com.json',
'tests/snmpsim/calix.snmprec',