Passed
Pull Request — 12.3.x (#174)
by Tom
11:58
created
src/Type/Json.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function parseLiteral(ASTNode $valueNode, array|null $variables = null): array|null
25 25
     {
26 26
         // @codeCoverageIgnoreStart
27
-        if (! $valueNode instanceof StringValueNode) {
27
+        if (!$valueNode instanceof StringValueNode) {
28 28
             throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, $valueNode);
29 29
         }
30 30
 
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function parseValue(mixed $value): array|null
41 41
     {
42
-        if (! is_string($value)) {
42
+        if (!is_string($value)) {
43 43
             throw new Error('JSON is not a string: ' . $value);
44 44
         }
45 45
 
46 46
         $data = json_decode($value, true);
47 47
 
48
-        if (! $data) {
48
+        if (!$data) {
49 49
             throw new Error('Could not parse JSON data');
50 50
         }
51 51
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $return = json_encode($value);
58 58
 
59
-        if (! $return) {
59
+        if (!$return) {
60 60
             return null;
61 61
         }
62 62
 
Please login to merge, or discard this patch.