Skip to content

Commit 0ddc741

Browse files
anzinxmav
authored andcommitted
Fixed Static Tests
1 parent 2fa35b4 commit 0ddc741

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

app/code/Magento/Config/Model/Config/Source/Date/Short.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
class Short implements \Magento\Framework\Option\ArrayInterface
1313
{
1414
/**
15+
* Method return array of date options.
16+
*
1517
* @return array
1618
*/
1719
public function toOptionArray()

app/code/Magento/Sales/Model/Order/Address/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Magento\Sales\Model\Order\Address;
1515

1616
/**
17-
* Class Validator
17+
* Class for validating customer address.
1818
*/
1919
class Validator
2020
{

dev/tests/utils/phpunitGroupConfig.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@
121121
);
122122

123123
if (!$generateConfig) {
124+
//phpcs:ignore Magento2.Security.LanguageConstruct
124125
print $totalGroups;
126+
//phpcs:ignore Magento2.Security.LanguageConstruct
125127
exit(0);
126128
}
127129

@@ -150,10 +152,13 @@
150152
createGroupConfig($configFile, $groupConfigFile, $groupTests, $index);
151153
$successMsg .= "{$groupConfigFile}, group: {$index}, test suite: group_{$index}\n";
152154
}
155+
//phpcs:ignore Magento2.Security.LanguageConstruct
153156
print $successMsg;
154157

155158
} catch (Exception $e) {
159+
//phpcs:ignore Magento2.Security.LanguageConstruct
156160
print $e->getMessage();
161+
//phpcs:ignore Magento2.Security.LanguageConstruct
157162
exit(1);
158163
}
159164

@@ -164,8 +169,10 @@
164169
* @param string $out
165170
* @param array $group
166171
* @param integer $index
172+
*
167173
* @return void
168174
* @throws Exception
175+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
169176
*/
170177
function createGroupConfig($in, $out, $group, $index)
171178
{
@@ -230,7 +237,12 @@ function getFormattedGroup($group, $index)
230237
*
231238
* @param string $configFile
232239
* @param string $suiteName
240+
*
233241
* @return array
242+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
243+
* @SuppressWarnings(PHPMD.NPathComplexity)
244+
* @phpcs:disable Generic.Metrics.NestingLevel
245+
* @phpcs:disable Generic.Metrics.CyclomaticComplexity
234246
*/
235247
function getTestList($configFile, $suiteName)
236248
{

lib/internal/Magento/Framework/Escaper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function escapeJs($string)
309309
$string = (string) $string;
310310
}
311311

312-
if ($string === '' || (is_string($string) && ctype_digit($string))) {
312+
if ($string === '' || ctype_digit($string)) {
313313
return $string;
314314
}
315315

0 commit comments

Comments
 (0)