mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove Laravel helpers (#11428)
* Remove Laravel helpers * Replace qualifier with import
This commit is contained in:
@ -27,6 +27,7 @@ namespace App\Http\Controllers\Select;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Config;
|
||||
|
||||
class GraphAggregateController extends Controller
|
||||
@ -56,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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user