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:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Exceptions\InvalidModuleException;
|
||||
use LibreNMS\Util\ModuleTestHelper;
|
||||
use LibreNMS\Util\Snmpsim;
|
||||
@@ -98,7 +99,7 @@ if (isset($options['v'])) {
|
||||
$variant = $options['variant'];
|
||||
}
|
||||
|
||||
if (str_contains($variant, '_')) {
|
||||
if (Str::contains($variant, '_')) {
|
||||
exit("Variant name cannot contain an underscore (_).\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user