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,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
use LibreNMS\Exceptions\JsonAppException;
|
||||
@@ -572,7 +573,7 @@ function update_application($app, $response, $metrics = array(), $status = '')
|
||||
);
|
||||
|
||||
if ($response != '' && $response !== false) {
|
||||
if (str_contains($response, array(
|
||||
if (Str::contains($response, array(
|
||||
'Traceback (most recent call last):',
|
||||
))) {
|
||||
$data['app_state'] = 'ERROR';
|
||||
|
Reference in New Issue
Block a user