mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#14899)
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -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 .= '/';
|
||||
}
|
||||
|
||||
|
@@ -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 .= '/';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user