diff --git a/src/Illuminate/Http/Middleware/Cache.php b/src/Illuminate/Http/Middleware/Cache.php index 42e65342286c..e9beaf798329 100644 --- a/src/Illuminate/Http/Middleware/Cache.php +++ b/src/Illuminate/Http/Middleware/Cache.php @@ -20,15 +20,15 @@ class Cache public function handle($request, Closure $next, int $maxAge = null, int $sharedMaxAge = null, bool $public = null, bool $etag = false) { /** - * @var $response \Symfony\Component\HttpFoundation\Response + * @var \Symfony\Component\HttpFoundation\Response */ $response = $next($request); - if (!$request->isMethodCacheable() || !$response->getContent()) { + if (! $request->isMethodCacheable() || ! $response->getContent()) { return $response; } - if (!$response->getContent()) { + if (! $response->getContent()) { return; } if ($etag) { diff --git a/tests/Http/Middleware/CacheTest.php b/tests/Http/Middleware/CacheTest.php index 9c39645f747f..eb5268d75aac 100644 --- a/tests/Http/Middleware/CacheTest.php +++ b/tests/Http/Middleware/CacheTest.php @@ -2,10 +2,10 @@ namespace Illuminate\Tests\Http\Middleware; -use Illuminate\Http\Middleware\Cache; use Illuminate\Http\Request; use Illuminate\Http\Response; use PHPUnit\Framework\TestCase; +use Illuminate\Http\Middleware\Cache; class CacheTest extends TestCase {