Test Setup Failed
Push — master ( b48cec...128107 )
by Kirill
02:20
created
src/Compiler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     public function build(iterable $ast, Document $dictionary = null): DocumentInterface
149 149
     {
150 150
         $registry = new Registry();
151
-        $dictionary ??= $this->document;
151
+        $dictionary ?? = $this->document;
152 152
 
153 153
         /**
154 154
          * First tree walk:
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $source = File::new($source);
202 202
 
203
-        return $this->cache[$this->hash($source)] ??= $this->parser->parse($source);
203
+        return $this->cache[$this->hash($source)] ?? = $this->parser->parse($source);
204 204
     }
205 205
 
206 206
     /**
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public function withType(NamedTypeInterface $type, bool $overwrite = false): self
234 234
     {
235
-        if ($overwrite || ! isset($this->document->typeMap[$type->getName()])) {
235
+        if ($overwrite || !isset($this->document->typeMap[$type->getName()])) {
236 236
             $this->document->typeMap[$type->getName()] = $type;
237 237
         }
238 238
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     public function withDirective(DirectiveInterface $directive, bool $overwrite = false): self
246 246
     {
247
-        if ($overwrite || ! isset($this->document->directives[$directive->getName()])) {
247
+        if ($overwrite || !isset($this->document->directives[$directive->getName()])) {
248 248
             $this->document->directives[$directive->getName()] = $directive;
249 249
         }
250 250
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     public function withSchema(SchemaInterface $schema, bool $overwrite = false): self
258 258
     {
259
-        if ($overwrite || ! $this->document->schema) {
259
+        if ($overwrite || !$this->document->schema) {
260 260
             $this->document->schema = $schema;
261 261
         }
262 262
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      */
296 296
     public function cancelAutoload(callable $loader): self
297 297
     {
298
-        $this->loaders = \array_filter($this->loaders, static function (callable $haystack) use ($loader): bool {
298
+        $this->loaders = \array_filter($this->loaders, static function(callable $haystack) use ($loader): bool {
299 299
             return $haystack !== $loader;
300 300
         });
301 301
 
Please login to merge, or discard this patch.