Skip to content

Commit ada7172

Browse files
committed
AC-15667::Added fixes for static test failures
1 parent b103710 commit ada7172

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lib/internal/Magento/Framework/Test/Unit/EscaperTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
/**
1919
* \Magento\Framework\Escaper test case
20+
*
21+
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
22+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2023
*/
2124
class EscaperTest extends TestCase
2225
{
@@ -1084,11 +1087,19 @@ public function __construct($escaper)
10841087
$this->escaper = $escaper;
10851088
}
10861089

1090+
/**
1091+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1092+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1093+
*/
10871094
public function get($type)
10881095
{
10891096
return $this->escaper;
10901097
}
10911098

1099+
/**
1100+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1101+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1102+
*/
10921103
public function create($type, array $arguments = [])
10931104
{
10941105
return $this->get($type);
@@ -1151,11 +1162,19 @@ public function __construct($inline)
11511162
$this->inline = $inline;
11521163
}
11531164

1165+
/**
1166+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1167+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1168+
*/
11541169
public function get($type)
11551170
{
11561171
return $this->inline;
11571172
}
11581173

1174+
/**
1175+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1176+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1177+
*/
11591178
public function create($type, array $arguments = [])
11601179
{
11611180
return $this->get($type);
@@ -1204,11 +1223,19 @@ public function __construct($logger)
12041223
$this->logger = $logger;
12051224
}
12061225

1226+
/**
1227+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1228+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1229+
*/
12071230
public function get($type)
12081231
{
12091232
return $this->logger;
12101233
}
12111234

1235+
/**
1236+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1237+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
1238+
*/
12121239
public function create($type, array $arguments = [])
12131240
{
12141241
return $this->get($type);

0 commit comments

Comments
 (0)