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:
@@ -25,6 +25,7 @@
|
||||
|
||||
namespace LibreNMS\Tests;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Config;
|
||||
|
||||
class OSDiscoveryTest extends TestCase
|
||||
@@ -64,7 +65,7 @@ class OSDiscoveryTest extends TestCase
|
||||
return basename($file, '.snmprec');
|
||||
}, glob($glob));
|
||||
$files = array_filter($files, function ($file) use ($os_name) {
|
||||
return $file == $os_name || starts_with($file, $os_name . '_');
|
||||
return $file == $os_name || Str::startsWith($file, $os_name . '_');
|
||||
});
|
||||
|
||||
if (empty($files)) {
|
||||
|
Reference in New Issue
Block a user