Skip to content

Commit

Permalink
Replaced str_is with Str::is
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDavido committed Mar 7, 2019
1 parent dd3abe2 commit 40690ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controllers/LogReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace DevDavido\Reporto\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;

Expand Down Expand Up @@ -35,7 +36,7 @@ public function handle(Request $request)

$report = $payload->reject(function($value) {
if (!isset($value['body']['sourceFile'])) return false;
return str_is(config('reporto.exclude_source_files'), $value['body']['sourceFile']);
return Str::is(config('reporto.exclude_source_files'), $value['body']['sourceFile']);
});

if ($report->isNotEmpty()) {
Expand Down

0 comments on commit 40690ec

Please # to comment.