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 13
13
use Magento \Framework \App \DeploymentConfig \Writer \PhpFormatter ;
14
14
use Magento \Framework \App \Filesystem \DirectoryList ;
15
15
use Magento \Framework \Exception \FileSystemException ;
16
- use Magento \Framework \FileSystem ;
16
+ use Magento \Framework \Filesystem ;
17
17
use Magento \Framework \View \Asset \Minification ;
18
18
use Magento \Framework \View \Asset \RepositoryMap ;
19
19
use Magento \Csp \Model \SubresourceIntegrityFactory ;
23
23
24
24
/**
25
25
* Class Adds Integrity attribute to requirejs-map.js asset
26
+ *
27
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26
28
*/
27
29
class Map extends \Magento \Deploy \Package \Processor \PostProcessor \Map
28
30
{
@@ -92,9 +94,10 @@ public function __construct(
92
94
93
95
/**
94
96
* @inheritdoc
97
+ *
95
98
* @throws FileSystemException
96
99
*/
97
- public function process (Package $ package , array $ options )
100
+ public function process (Package $ package , array $ options ): bool
98
101
{
99
102
parent ::process ($ package , $ options );
100
103
$ fileName = $ this ->minification ->addMinifiedSign (RepositoryMap::REQUIRE_JS_MAP_NAME );
@@ -118,6 +121,7 @@ public function process(Package $package, array $options)
118
121
$ this ->integrityCollector ->collect ($ integrity );
119
122
}
120
123
}
124
+ return true ;
121
125
}
122
126
123
127
/**
You can’t perform that action at this time.
0 commit comments