Apply fixes from StyleCI (#14899)

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Jellyfrog
2023-03-13 22:32:22 +01:00
committed by GitHub
parent 0e322ae5d5
commit 68e0b3df28
220 changed files with 2050 additions and 2035 deletions

View File

@@ -35,7 +35,7 @@ class NetflowController implements DeviceTab
{
if (Config::get('nfsen_enable')) {
foreach ((array) Config::get('nfsen_rrds', []) as $nfsenrrds) {
if ($nfsenrrds[(strlen($nfsenrrds) - 1)] != '/') {
if ($nfsenrrds[strlen($nfsenrrds) - 1] != '/') {
$nfsenrrds .= '/';
}

View File

@@ -104,7 +104,7 @@ class ShowConfigController extends Controller implements DeviceTab
if (Config::has('rancid_configs.0')) {
$device = DeviceCache::getPrimary();
foreach (Config::get('rancid_configs') as $configs) {
if ($configs[(strlen($configs) - 1)] != '/') {
if ($configs[strlen($configs) - 1] != '/') {
$configs .= '/';
}