Skip to content

Commit 8a39970

Browse files
Fixing static test failures
1 parent 2c2f450 commit 8a39970

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/internal/Magento/Framework/GraphQl/Type/Definition/FloatType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ public function parseValue($value): float
4141
* @param array|null $variables
4242
* @return float
4343
* @throws Exception
44+
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
4445
*/
4546
public function parseLiteral(Node $valueNode, ?array $variables = null): float
4647
{
4748
try {
4849
if ($valueNode instanceof ValueNode
4950
&& !($valueNode instanceof FloatValueNode)
5051
&& !($valueNode instanceof IntValueNode)
51-
&& isset($valueNode->value))
52-
{
52+
&& isset($valueNode->value)) {
5353
$valueNode = new FloatValueNode([
5454
'value' => (string)$this->parseValue($valueNode->value),
5555
'loc' => $valueNode->loc

lib/internal/Magento/Framework/GraphQl/Type/Definition/IntType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public function parseValue($value): int
4040
* @param array|null $variables
4141
* @return int
4242
* @throws Exception
43+
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
4344
*/
4445
public function parseLiteral(Node $valueNode, ?array $variables = null): int
4546
{
4647
try {
4748
if ($valueNode instanceof ValueNode
4849
&& !($valueNode instanceof IntValueNode)
49-
&& isset($valueNode->value))
50-
{
50+
&& isset($valueNode->value)) {
5151
$valueNode = new IntValueNode([
5252
'value' => (string)$this->parseValue($valueNode->value),
5353
'loc' => $valueNode->loc

lib/internal/Magento/Framework/GraphQl/Type/Definition/StringType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public function parseValue($value): string
4040
* @param array|null $variables
4141
* @return string
4242
* @throws Exception
43+
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
4344
*/
4445
public function parseLiteral(Node $valueNode, ?array $variables = null): string
4546
{
4647
try {
4748
if ($valueNode instanceof ValueNode
4849
&& !($valueNode instanceof StringValueNode)
49-
&& isset($valueNode->value))
50-
{
50+
&& isset($valueNode->value)) {
5151
$valueNode = new StringValueNode([
5252
'value' => $this->parseValue($valueNode->value),
5353
'loc' => $valueNode->loc

0 commit comments

Comments
 (0)