Skip to content

Commit eeb10fd

Browse files
committed
AC-10686: [PCI] SRI enabled on payment pages.
Fix static errors.
1 parent 21b9cce commit eeb10fd

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Csp/Model/Deploy/Package/Processor/PostProcessor

1 file changed

+6
-2
lines changed

app/code/Magento/Csp/Model/Deploy/Package/Processor/PostProcessor/Map.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Framework\App\DeploymentConfig\Writer\PhpFormatter;
1414
use Magento\Framework\App\Filesystem\DirectoryList;
1515
use Magento\Framework\Exception\FileSystemException;
16-
use Magento\Framework\FileSystem;
16+
use Magento\Framework\Filesystem;
1717
use Magento\Framework\View\Asset\Minification;
1818
use Magento\Framework\View\Asset\RepositoryMap;
1919
use Magento\Csp\Model\SubresourceIntegrityFactory;
@@ -23,6 +23,8 @@
2323

2424
/**
2525
* Class Adds Integrity attribute to requirejs-map.js asset
26+
*
27+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2628
*/
2729
class Map extends \Magento\Deploy\Package\Processor\PostProcessor\Map
2830
{
@@ -92,9 +94,10 @@ public function __construct(
9294

9395
/**
9496
* @inheritdoc
97+
*
9598
* @throws FileSystemException
9699
*/
97-
public function process(Package $package, array $options)
100+
public function process(Package $package, array $options): bool
98101
{
99102
parent::process($package, $options);
100103
$fileName = $this->minification->addMinifiedSign(RepositoryMap::REQUIRE_JS_MAP_NAME);
@@ -118,6 +121,7 @@ public function process(Package $package, array $options)
118121
$this->integrityCollector->collect($integrity);
119122
}
120123
}
124+
return true;
121125
}
122126

123127
/**

0 commit comments

Comments
 (0)