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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user