Skip to content

Commit ca70693

Browse files
ACPT-1742
Fixing static test failures
1 parent 78e7942 commit ca70693

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/code/Magento/PageCache/Model/App/Response/HttpPlugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class HttpPlugin
2222
*/
2323
public function beforeSendResponse(HttpResponse $subject)
2424
{
25-
if (
26-
$subject instanceof NotCacheableInterface
25+
if ($subject instanceof NotCacheableInterface
2726
|| $subject->headersSent()
2827
|| $subject->setMetadata("NotCacheable")
2928
) {

pub/errors/processorFactory.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
// phpcs:disable PSR1.Files.SideEffects
67
namespace Magento\Framework\Error;
7-
8+
// phpcs:ignore Magento2.Functions.DiscouragedFunction,Magento2.Security.IncludeFile
89
require_once realpath(__DIR__) . '/../../app/bootstrap.php';
9-
require_once 'processor.php';
10+
require_once 'processor.php'; // phpcs:ignore Magento2.Security.IncludeFile
1011

1112
/**
1213
* Error processor factory
@@ -24,8 +25,9 @@ public function createProcessor()
2425
$objectManager = AppObjectManager::getInstance();
2526
return $objectManager->create(Processor::class);
2627
} catch (\RuntimeException $exception) {
28+
// phpcs:ignore Magento2.Security.Superglobal
2729
$objectManagerFactory = \Magento\Framework\App\Bootstrap::createObjectManagerFactory(BP, $_SERVER);
28-
$objectManager = $objectManagerFactory->create($_SERVER);
30+
$objectManager = $objectManagerFactory->create($_SERVER); // phpcs:ignore Magento2.Security.Superglobal
2931
$response = $objectManager->create(\Magento\Framework\App\Response\Http::class);
3032
return new Processor($response);
3133
}

0 commit comments

Comments
 (0)