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;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Interfaces\ValidationGroup;
|
||||
use ReflectionClass;
|
||||
|
||||
@@ -174,7 +175,7 @@ class Validator
|
||||
$group = 'unknown';
|
||||
$bt = debug_backtrace();
|
||||
foreach ($bt as $entry) {
|
||||
if (starts_with($entry['class'], 'LibreNMS\Validations')) {
|
||||
if (Str::startsWith($entry['class'], 'LibreNMS\Validations')) {
|
||||
$group = str_replace('LibreNMS\Validations\\', '', $entry['class']);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user