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:
@@ -15,7 +15,9 @@
|
||||
* @author LibreNMS Contributors
|
||||
*/
|
||||
|
||||
if (starts_with($device['sysObjectID'], '.1.3.6.1.4.1.8741.6')) {
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
if (Str::startsWith($device['sysObjectID'], '.1.3.6.1.4.1.8741.6')) {
|
||||
$licenses = snmp_get($device, 'SNWL-SSLVPN-MIB::userLicense.0', '-Ovq');
|
||||
$licenses = str_replace(' Users', '', $licenses);
|
||||
$current = snmp_get($device, '.1.3.6.1.4.1.8741.6.2.1.9.0', '-Ovq');
|
||||
|
||||
Reference in New Issue
Block a user