Skip to content

Commit 4fc9473

Browse files
committed
refactor: apply code quality level 54 for Rector
1 parent 62a83bb commit 4fc9473

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,4 @@
202202
// keep '\\' prefix string on string '\Foo\Bar'
203203
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
204204
])
205-
->withCodeQualityLevel(53);
205+
->withCodeQualityLevel(54);

system/Filters/PageCache.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,7 @@ public function before(RequestInterface $request, $arguments = null)
4545
assert($request instanceof CLIRequest || $request instanceof IncomingRequest);
4646

4747
$response = service('response');
48-
49-
$cachedResponse = $this->pageCache->get($request, $response);
50-
51-
if ($cachedResponse instanceof ResponseInterface) {
52-
return $cachedResponse;
53-
}
54-
55-
return null;
48+
return $this->pageCache->get($request, $response);
5649
}
5750

5851
/**

0 commit comments

Comments
 (0)