Completed
Push — master ( cdd6df...71d8db )
by Kirill
45:29
created
src/Compiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $this->load($document);
148 148
 
149
-        $build = function (Definition $definition): void {
149
+        $build = function(Definition $definition): void {
150 150
             $this->stack->push($definition);
151 151
 
152 152
             if ($definition instanceof Compilable) {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $this->typeCoercion->apply($definition);
158 158
             }
159 159
 
160
-            if (! ($definition instanceof StandardType)) {
160
+            if (!($definition instanceof StandardType)) {
161 161
                 $this->typeValidator->group(Definitions::class)->validate($definition);
162 162
             }
163 163
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     private function onCompile(): \Closure
230 230
     {
231
-        return function (Readable $readable): Document {
231
+        return function(Readable $readable): Document {
232 232
             $ast = $this->parser->parse($readable);
233 233
 
234 234
             return $this->complete(new DocumentBuilder($ast, $readable, $this));
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     public function getPersister(): Storage
269 269
     {
270 270
         \trigger_error(
271
-            __METHOD__ . ' was renamed to getStorage and will be deleted on next release',
271
+            __METHOD__.' was renamed to getStorage and will be deleted on next release',
272 272
             \E_USER_DEPRECATED
273 273
         );
274 274
 
Please login to merge, or discard this patch.
src/Console/ParserCompileCommand.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
     /**
28 28
      * @var string Default parser output path
29 29
      */
30
-    private const DEFAULT_PATH = __DIR__ . '/../Parser';
30
+    private const DEFAULT_PATH = __DIR__.'/../Parser';
31 31
 
32 32
     /**
33 33
      * @var string Default generated parser FQN
Please login to merge, or discard this patch.
src/Runtime/CallStackRenderer/DefinitionTraceRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function __construct(Definition $definition)
30 30
     {
31
-        $this->definition   = $definition;
31
+        $this->definition = $definition;
32 32
 
33 33
         $this->file   = $definition->getFileName();
34 34
         $this->line   = $definition->getDeclarationLine();
Please login to merge, or discard this patch.
src/Runtime/CallStackRenderer/PhpTraceRenderer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $this->trace = $trace;
29 29
 
30
-        $this->file = (string)($trace['file'] ?? 'php://input');
31
-        $this->line = (int)($trace['line'] ?? 0);
30
+        $this->file = (string) ($trace['file'] ?? 'php://input');
31
+        $this->line = (int) ($trace['line'] ?? 0);
32 32
     }
33 33
 
34 34
     /**
@@ -54,16 +54,16 @@  discard block
 block discarded – undo
54 54
         $result = $trace['function'];
55 55
 
56 56
         if (\array_key_exists('class', $trace)) {
57
-            $result = $trace['class'] . $trace['type'] . $result;
57
+            $result = $trace['class'].$trace['type'].$result;
58 58
         }
59 59
 
60 60
         $arguments = [];
61 61
 
62
-        foreach ((array)($trace['args'] ?? []) as $argument) {
62
+        foreach ((array) ($trace['args'] ?? []) as $argument) {
63 63
             $arguments[] = $this->valueToString($argument);
64 64
         }
65 65
 
66
-        return $result . '(' . \implode(', ', $arguments) . ')';
66
+        return $result.'('.\implode(', ', $arguments).')';
67 67
     }
68 68
 
69 69
     /**
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
         $body = \implode(', ', $parts);
105 105
 
106 106
         if (\is_object($iterator)) {
107
-            return $this->objectToString($iterator) . '<' . $body . '>';
107
+            return $this->objectToString($iterator).'<'.$body.'>';
108 108
         }
109 109
 
110
-        return '[' . $body . ']';
110
+        return '['.$body.']';
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
src/Parser/Factory.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
 class Factory
23 23
 {
24
-    public const GRAMMAR_FILE = __DIR__ . '/../../resources/grammar/sdl.pp';
24
+    public const GRAMMAR_FILE = __DIR__.'/../../resources/grammar/sdl.pp';
25 25
 
26 26
     /**
27 27
      * @var ParserInterface|null
Please login to merge, or discard this patch.
src/Standard/Scalars/IDType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     /**
29 29
      * Short ID scalar public description.
30 30
      */
31
-    protected const TYPE_DESCRIPTION = 'The `ID` scalar type represents a unique identifier, often used to ' .
32
-        'refetch an object or as key for a cache. The ID type appears in a JSON ' .
33
-        'response as a String; however, it is not intended to be human-readable. ' .
34
-        'When expected as an input type, any string (such as `"4"`) or integer ' .
31
+    protected const TYPE_DESCRIPTION = 'The `ID` scalar type represents a unique identifier, often used to '.
32
+        'refetch an object or as key for a cache. The ID type appears in a JSON '.
33
+        'response as a String; however, it is not intended to be human-readable. '.
34
+        'When expected as an input type, any string (such as `"4"`) or integer '.
35 35
         '(such as `4`) input value will be accepted as an ID.';
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
src/Standard/Scalars/StringType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     /**
27 27
      * Short String scalar public description.
28 28
      */
29
-    protected const TYPE_DESCRIPTION = 'The `String` scalar type represents textual data, represented as UTF-8 ' .
30
-        'character sequences. The String type is most often used by GraphQL to ' .
29
+    protected const TYPE_DESCRIPTION = 'The `String` scalar type represents textual data, represented as UTF-8 '.
30
+        'character sequences. The String type is most often used by GraphQL to '.
31 31
         'represent free-form human-readable text.';
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/Standard/Scalars/IntType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * Short Int scalar public description.
28 28
      */
29
-    protected const TYPE_DESCRIPTION = 'The `Int` scalar type represents non-fractional signed whole numeric ' .
29
+    protected const TYPE_DESCRIPTION = 'The `Int` scalar type represents non-fractional signed whole numeric '.
30 30
         'values. Int can represent values between -(2^31) and 2^31 - 1.';
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Standard/Scalars/FloatType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /**
27 27
      * Short Float scalar public description.
28 28
      */
29
-    protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional ' .
29
+    protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional '.
30 30
         'values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).';
31 31
 
32 32
     /**
Please login to merge, or discard this patch.