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
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments