Remove Laravel helpers (#11428)

* Remove Laravel helpers

* Replace qualifier with import
This commit is contained in:
Tony Murray
2020-04-17 17:37:56 -05:00
committed by GitHub
parent 729eeccaa4
commit 1c08c11a77
95 changed files with 426 additions and 359 deletions

View File

@@ -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';