Completed
Push — master ( 8afd90...4bf010 )
by Kirill
03:48
created
src/Compiler/Builder/Common/ValueTypeResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     private function getFilter(): \Closure
124 124
     {
125
-        return function (TypeDefinition $resolved): bool {
125
+        return function(TypeDefinition $resolved): bool {
126 126
             return $this->shouldBreak($resolved);
127 127
         };
128 128
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     private function shouldBreak(TypeDefinition $resolved): bool
135 135
     {
136
-        return ! isset($this->breakpoints[$resolved->getName()]);
136
+        return !isset($this->breakpoints[$resolved->getName()]);
137 137
     }
138 138
 
139 139
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         yield $type;
147 147
 
148 148
         foreach ($type->getChildrenInheritance() as $child) {
149
-            if (! $filter($child)) {
149
+            if (!$filter($child)) {
150 150
                 continue;
151 151
             }
152 152
 
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/InputFieldBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $field->withDescription($rule->getDescription());
35 35
         $field->withModifiers($hint->getModifiers());
36 36
 
37
-        $this->when->runtime(function () use ($rule, $field) {
37
+        $this->when->runtime(function() use ($rule, $field) {
38 38
             if ($default = $rule->getDefaultValue()) {
39 39
                 $field->withDefaultValue($this->valueOf($field, $default));
40 40
             }
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/ArgumentBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $argument->withDescription($rule->getDescription());
35 35
         $argument->withModifiers($hint->getModifiers());
36 36
 
37
-        $this->when->runtime(function () use ($rule, $argument) {
37
+        $this->when->runtime(function() use ($rule, $argument) {
38 38
             if ($default = $rule->getDefaultValue()) {
39 39
                 $argument->withDefaultValue($this->valueOf($argument, $default));
40 40
             }
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/FieldBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             $field->withArgument($this->dependent($ast, $field));
40 40
         }
41 41
 
42
-        $this->when->runtime(function () use ($rule, $field) {
42
+        $this->when->runtime(function() use ($rule, $field) {
43 43
             foreach ($rule->getDirectives() as $ast) {
44 44
                 $field->withDirective($this->dependent($ast, $field));
45 45
             }
Please login to merge, or discard this patch.
src/Compiler/Builder/Dependent/EnumValueBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $value->withOffset($rule->getOffset());
37 37
         $value->withDescription($rule->getDescription());
38 38
 
39
-        $this->when->runtime(function () use ($rule, $value) {
39
+        $this->when->runtime(function() use ($rule, $value) {
40 40
             if ($hint = $rule->getTypeHint()) {
41 41
                 $value->withValue($this->valueOf($this->virtualTypeHint($value, $hint), $rule->getValue()));
42 42
             }
Please login to merge, or discard this patch.
src/Compiler/Ast/Value/NumberValueNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function toString(): string
25 25
     {
26
-        return (string)$this->toPrimitive();
26
+        return (string) $this->toPrimitive();
27 27
     }
28 28
 
29 29
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 return $this->parseInt($value->getValue());
60 60
         }
61 61
 
62
-        return (float)$value->getValue();
62
+        return (float) $value->getValue();
63 63
     }
64 64
 
65 65
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     private function parseExponential(string $value): float
115 115
     {
116
-        return (float)$value;
116
+        return (float) $value;
117 117
     }
118 118
 
119 119
     /**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     private function parseFloat(string $value): float
133 133
     {
134
-        return (float)$value;
134
+        return (float) $value;
135 135
     }
136 136
 
137 137
     /**
Please login to merge, or discard this patch.
src/Compiler/Ast/Value/ConstantValueNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function toPrimitive(): string
23 23
     {
24
-        return (string)$this->getChild(0)->getValue();
24
+        return (string) $this->getChild(0)->getValue();
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
src/Compiler/Ast/Value/ListValueNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function toString(): string
23 23
     {
24
-        $values = \array_map(function (ValueInterface $value) {
24
+        $values = \array_map(function(ValueInterface $value) {
25 25
             return $value->toString();
26 26
         }, \iterator_to_array($this->getValues()));
27 27
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function toPrimitive(): iterable
35 35
     {
36
-        return \array_map(function (ValueInterface $value) {
36
+        return \array_map(function(ValueInterface $value) {
37 37
             return $value->toPrimitive();
38 38
         }, \iterator_to_array($this->getValues()));
39 39
     }
Please login to merge, or discard this patch.
src/Compiler/Ast/Value/InputValueNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $result = [];
28 28
 
29 29
         foreach ($this->getValues() as $key => $value) {
30
-            $result[] = $key->getValue() . ': ' . $value->toString();
30
+            $result[] = $key->getValue().': '.$value->toString();
31 31
         }
32 32
 
33 33
         return \sprintf('{%s}', \implode(', ', $result));
Please login to merge, or discard this patch.