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:
@ -48,7 +48,7 @@ class GraphAggregateController extends Controller
|
||||
'core',
|
||||
];
|
||||
|
||||
foreach ((array)Config::get('custom_descr', []) as $custom) {
|
||||
foreach ((array) Config::get('custom_descr', []) as $custom) {
|
||||
if ($custom) {
|
||||
$types[] = $custom;
|
||||
}
|
||||
@ -57,7 +57,7 @@ class GraphAggregateController extends Controller
|
||||
// handle search
|
||||
if ($search = strtolower($request->get('term'))) {
|
||||
$types = array_filter($types, function ($type) use ($search) {
|
||||
return !Str::contains(strtolower($type), $search);
|
||||
return ! Str::contains(strtolower($type), $search);
|
||||
});
|
||||
}
|
||||
|
||||
@ -69,7 +69,7 @@ class GraphAggregateController extends Controller
|
||||
'text' => ucwords($type),
|
||||
];
|
||||
}, $types),
|
||||
'pagination' => ['more' => false]
|
||||
'pagination' => ['more' => false],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user