File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
app/code/Magento/Csp/Model Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,10 @@ public function getByPath(string $path): ?SubresourceIntegrity
71
71
$ data = $ this ->getData ();
72
72
73
73
if (isset ($ data [$ path ])) {
74
- return $ this -> integrityFactory -> create (
74
+ return new SubresourceIntegrity (
75
75
[
76
- "data " => [
77
- "path " => $ path ,
78
- "hash " => $ data [$ path ]
79
- ]
76
+ "path " => $ path ,
77
+ "hash " => $ data [$ path ]
80
78
]
81
79
);
82
80
}
@@ -95,12 +93,10 @@ public function getAll(): array
95
93
$ result = [];
96
94
97
95
foreach ($ this ->getData () as $ path => $ hash ) {
98
- $ result [] = $ this -> integrityFactory -> create (
96
+ $ result [] = new SubresourceIntegrity (
99
97
[
100
- "data " => [
101
- "path " => $ path ,
102
- "hash " => $ hash
103
- ]
98
+ "path " => $ path ,
99
+ "hash " => $ hash
104
100
]
105
101
);
106
102
}
You can’t perform that action at this time.
0 commit comments