File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/Csp/Model/Deploy/Package/Processor/PostProcessor Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1313use Magento \Framework \App \DeploymentConfig \Writer \PhpFormatter ;
1414use Magento \Framework \App \Filesystem \DirectoryList ;
1515use Magento \Framework \Exception \FileSystemException ;
16- use Magento \Framework \FileSystem ;
16+ use Magento \Framework \Filesystem ;
1717use Magento \Framework \View \Asset \Minification ;
1818use Magento \Framework \View \Asset \RepositoryMap ;
1919use Magento \Csp \Model \SubresourceIntegrityFactory ;
2323
2424/**
2525 * Class Adds Integrity attribute to requirejs-map.js asset
26+ *
27+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2628 */
2729class 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 /**
You can’t perform that action at this time.
0 commit comments