File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
lib/internal/Magento/Framework/GraphQl/Type/Definition Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ public function parseValue($value): float
41
41
* @param array|null $variables
42
42
* @return float
43
43
* @throws Exception
44
+ * @SuppressWarnings(PHPMD.EmptyCatchBlock)
44
45
*/
45
46
public function parseLiteral (Node $ valueNode , ?array $ variables = null ): float
46
47
{
47
48
try {
48
49
if ($ valueNode instanceof ValueNode
49
50
&& !($ valueNode instanceof FloatValueNode)
50
51
&& !($ valueNode instanceof IntValueNode)
51
- && isset ($ valueNode ->value ))
52
- {
52
+ && isset ($ valueNode ->value )) {
53
53
$ valueNode = new FloatValueNode ([
54
54
'value ' => (string )$ this ->parseValue ($ valueNode ->value ),
55
55
'loc ' => $ valueNode ->loc
Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ public function parseValue($value): int
40
40
* @param array|null $variables
41
41
* @return int
42
42
* @throws Exception
43
+ * @SuppressWarnings(PHPMD.EmptyCatchBlock)
43
44
*/
44
45
public function parseLiteral (Node $ valueNode , ?array $ variables = null ): int
45
46
{
46
47
try {
47
48
if ($ valueNode instanceof ValueNode
48
49
&& !($ valueNode instanceof IntValueNode)
49
- && isset ($ valueNode ->value ))
50
- {
50
+ && isset ($ valueNode ->value )) {
51
51
$ valueNode = new IntValueNode ([
52
52
'value ' => (string )$ this ->parseValue ($ valueNode ->value ),
53
53
'loc ' => $ valueNode ->loc
Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ public function parseValue($value): string
40
40
* @param array|null $variables
41
41
* @return string
42
42
* @throws Exception
43
+ * @SuppressWarnings(PHPMD.EmptyCatchBlock)
43
44
*/
44
45
public function parseLiteral (Node $ valueNode , ?array $ variables = null ): string
45
46
{
46
47
try {
47
48
if ($ valueNode instanceof ValueNode
48
49
&& !($ valueNode instanceof StringValueNode)
49
- && isset ($ valueNode ->value ))
50
- {
50
+ && isset ($ valueNode ->value )) {
51
51
$ valueNode = new StringValueNode ([
52
52
'value ' => $ this ->parseValue ($ valueNode ->value ),
53
53
'loc ' => $ valueNode ->loc
You can’t perform that action at this time.
0 commit comments