Skip to content

Commit 015e3df

Browse files
authored
Merge pull request #9750 from samsonasik/refactor-apply-code-quality-54
refactor: apply code quality level 54 for Rector
2 parents 62a83bb + 76c32a8 commit 015e3df

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@ public function before(RequestInterface $request, $arguments = null)
4646

4747
$response = service('response');
4848

49-
$cachedResponse = $this->pageCache->get($request, $response);
50-
51-
if ($cachedResponse instanceof ResponseInterface) {
52-
return $cachedResponse;
53-
}
54-
55-
return null;
49+
return $this->pageCache->get($request, $response);
5650
}
5751

5852
/**

0 commit comments

Comments
 (0)