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

@@ -23,7 +23,6 @@
* @license GPL
* @package LibreNMS
* @subpackage ?
*
*/
use App\Models\Port;
@@ -31,7 +30,7 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
chdir(dirname($argv[0]));
$init_modules = array();
$init_modules = [];
require realpath(__DIR__ . '/..') . '/includes/init.php';
$opt = getopt('p:f:');
@@ -45,11 +44,11 @@ if ($opt['p']) {
// File with port-ids given on cmdline?
$port_id_file = null;
if ($opt['f']) {
$port_id_file = $opt['f'];
$port_id_file = $opt['f'];
}
if (! $port_id && ! $port_id_file || ($port_id && $port_id_file)) {
print $console_color->convert(\LibreNMS\Config::get('project_name').' Port purge tool
echo $console_color->convert(\LibreNMS\Config::get('project_name') . ' Port purge tool
-p <port_id> Purge single port by it\'s port-id
-f <file> Purge a list of ports, read port-ids from <file>, one on each line.
A filename of - means reading from STDIN.