Test Setup Failed
Push — master ( 128107...e8c39a )
by Kirill
02:35
created
src/Compiler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     public function build(iterable $ast, Document $dictionary = null): DocumentInterface
150 150
     {
151 151
         $registry = new Registry();
152
-        $dictionary ??= $this->document;
152
+        $dictionary ?? = $this->document;
153 153
 
154 154
         /**
155 155
          * First tree walk:
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         $source = File::new($source);
210 210
 
211
-        return $this->cache[$this->hash($source)] ??= $this->parser->parse($source);
211
+        return $this->cache[$this->hash($source)] ?? = $this->parser->parse($source);
212 212
     }
213 213
 
214 214
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function withType(NamedTypeInterface $type, bool $overwrite = false): self
242 242
     {
243
-        if ($overwrite || ! $this->document->hasType($type->getName())) {
243
+        if ($overwrite || !$this->document->hasType($type->getName())) {
244 244
             $this->document->addType($type);
245 245
         }
246 246
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function withDirective(DirectiveInterface $directive, bool $overwrite = false): self
254 254
     {
255
-        if ($overwrite || ! $this->document->hasDirective($directive->getName())) {
255
+        if ($overwrite || !$this->document->hasDirective($directive->getName())) {
256 256
             $this->document->addDirective($directive);
257 257
         }
258 258
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function withSchema(SchemaInterface $schema, bool $overwrite = false): self
266 266
     {
267
-        if ($overwrite || ! $this->document->getSchema()) {
267
+        if ($overwrite || !$this->document->getSchema()) {
268 268
             $this->document->setSchema($schema);
269 269
         }
270 270
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     public function cancelAutoload(callable $loader): self
305 305
     {
306
-        $this->loaders = \array_filter($this->loaders, static function (callable $haystack) use ($loader): bool {
306
+        $this->loaders = \array_filter($this->loaders, static function(callable $haystack) use ($loader): bool {
307 307
             return $haystack !== $loader;
308 308
         });
309 309
 
Please login to merge, or discard this patch.