Skip to content

Commit 471eff4

Browse files
author
Oleksandr Gorkun
committed
MC-19926: Implement CSP
1 parent 83d62dc commit 471eff4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/code/Magento/Csp/Model/Collector/SandboxPolicyMerger.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class SandboxPolicyMerger implements MergerInterface
1717
{
1818
/**
1919
* @inheritDoc
20+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
2021
*/
2122
public function merge(PolicyInterface $policy1, PolicyInterface $policy2): PolicyInterface
2223
{

app/code/Magento/Csp/Model/Policy/FetchPolicy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ public function isNoneAllowed(): bool
199199

200200
/**
201201
* @inheritDoc
202+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
203+
* @SuppressWarnings(PHPMD.NPathComplexity)
202204
*/
203205
public function getValue(): string
204206
{

0 commit comments

Comments
 (0)