Skip to content

Commit 1498816

Browse files
committed
Merge branch 'develop'
2 parents cd1cf07 + 29a108c commit 1498816

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Middleware.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php namespace Stolz\HtmlTidy;
22

3+
use Illuminate\Support\Str;
34
use Symfony\Component\HttpFoundation\BinaryFileResponse;
45
use Symfony\Component\HttpFoundation\JsonResponse;
56
use Symfony\Component\HttpFoundation\RedirectResponse;
@@ -44,7 +45,7 @@ public function handle($request, \Closure $next)
4445

4546
// If response is HTML parse it
4647
$contentType = $response->headers->get('content-type');
47-
if(str_contains($contentType, 'text/html'))
48+
if(Str::contains($contentType, 'text/html'))
4849
$response->setContent(app('stolz.tidy')->parse($response->getContent()));
4950

5051
return $response;

0 commit comments

Comments
 (0)