Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 11, 2017
1 parent 6c70d1e commit 29a3e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Http/Middleware/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Http/Middleware/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 29a3e96

Please sign in to comment.