File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/PageCache/Model/App/Response Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ // phpcs:disable PSR1.Files.SideEffects
67namespace Magento \Framework \Error ;
7-
8+ // phpcs:ignore Magento2.Functions.DiscouragedFunction,Magento2.Security.IncludeFile
89require_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 }
You can’t perform that action at this time.
0 commit comments