Completed
Push — master ( 8cadde...6bac61 )
by Kirill
11:19 queued 08:03
created
src/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/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/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.
src/Compiler/System/Provider/ArgumentSystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
     {
29 29
         if ($ast instanceof ProvidesArgumentNodes) {
30 30
             foreach ($ast->getArgumentNodes() as $child) {
31
-                $this->deferred(function () use ($definition, $child): void {
31
+                $this->deferred(function() use ($definition, $child): void {
32 32
                     /** @var Definition\Dependent\ArgumentDefinition $argument */
33 33
                     $argument = $this->process->build($child, $definition);
34 34
 
35
-                    $this->linker(function () use ($definition, $argument): void {
35
+                    $this->linker(function() use ($definition, $argument): void {
36 36
                         if ($definition->hasArgument($argument->getName())) {
37 37
                             throw $this->redeclareException($argument);
38 38
                         }
Please login to merge, or discard this patch.
src/Compiler/System/Provider/DirectivesSystem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
     {
33 33
         if ($definition instanceof ProvidesDirectives && $ast instanceof ProvidesDirectiveNodes) {
34 34
             foreach ($ast->getDirectiveNodes() as $child) {
35
-                $this->deferred(function () use ($definition, $child): void {
35
+                $this->deferred(function() use ($definition, $child): void {
36 36
                     /** @var DirectiveInvocation $directive */
37 37
                     $directive = $this->process->build($child, $definition);
38 38
 
39
-                    $this->linker(function () use ($definition, $directive): void {
39
+                    $this->linker(function() use ($definition, $directive): void {
40 40
                         $this->validateDefinition($directive);
41 41
 
42 42
                         $definition->withDirective($directive);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $definition = $directive->getDefinition();
56 56
 
57
-        if (! $definition instanceof DirectiveDefinition) {
57
+        if (!$definition instanceof DirectiveDefinition) {
58 58
             $error = \sprintf('Can not use %s as directive', $definition);
59 59
             throw (new TypeConflictException($error))->in($directive);
60 60
         }
Please login to merge, or discard this patch.
src/Compiler/System/Provider/DocumentSystem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
     {
30 30
         if ($document instanceof Document) {
31 31
             foreach ($ast as $child) {
32
-                $this->deferred(function () use ($document, $child): void {
32
+                $this->deferred(function() use ($document, $child): void {
33 33
                     $definition = $this->process->build($child, $document);
34 34
 
35 35
                     if ($definition instanceof TypeDefinition) {
36
-                        $this->deferred(function () use ($definition, $document): void {
36
+                        $this->deferred(function() use ($definition, $document): void {
37 37
                             if ($document->getDictionary()->has($definition->getName())) {
38 38
                                 throw $this->redeclareException($definition);
39 39
                             }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 
46 46
                     if ($definition instanceof DirectiveInvocation) {
47
-                        $this->complete(function () use ($definition, $document): void {
47
+                        $this->complete(function() use ($definition, $document): void {
48 48
                             $document->withDirective($definition);
49 49
                         });
50 50
                     }
Please login to merge, or discard this patch.
src/Compiler/System/Provider/FieldSystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
     {
29 29
         if ($ast instanceof ProvidesFieldNodes) {
30 30
             foreach ($ast->getFieldNodes() as $child) {
31
-                $this->deferred(function () use ($definition, $child): void {
31
+                $this->deferred(function() use ($definition, $child): void {
32 32
                     /** @var Definition\Dependent\FieldDefinition $field */
33 33
                     $field = $this->process->build($child, $definition);
34 34
 
35
-                    $this->linker(function () use ($definition, $field): void {
35
+                    $this->linker(function() use ($definition, $field): void {
36 36
                         if ($definition->hasField($field->getName())) {
37 37
                             throw $this->redeclareException($field);
38 38
                         }
Please login to merge, or discard this patch.
src/Compiler/System/TypeHintSystem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
             $definition->withModifiers($hint->getModifiers());
57 57
 
58
-            $this->linker(function () use ($hint, $definition): void {
58
+            $this->linker(function() use ($hint, $definition): void {
59 59
                 /** @var TypeDefinition $resolved */
60 60
                 $resolved = $this->get($hint->getFullName(), $definition);
61 61
 
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
                 $error = null;
77 77
 
78 78
                 switch ($behaviour) {
79
-                    case self::IS_RENDERABLE && ! $hint->isRenderable():
79
+                    case self::IS_RENDERABLE && !$hint->isRenderable():
80 80
                         $error = '%s "%s" can contain only renderable type (unions, objects, etc), but %s given';
81 81
                         break;
82
-                    case self::IS_INPUTABLE && ! $hint->isInputable():
82
+                    case self::IS_INPUTABLE && !$hint->isInputable():
83 83
                         $error = '%s "%s" can contain only inputable type (inputs, scalars, etc), but %s given';
84 84
                         break;
85 85
                 }
Please login to merge, or discard this patch.
src/Compiler/System/ImplementationSystem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
     public function resolve(Definition $parent, RuleInterface $ast): void
34 34
     {
35 35
         if ($parent instanceof ProvidesInterfaces && $ast instanceof ProvidesInterfaceNodes) {
36
-            $this->inference(function () use ($ast, $parent): void {
36
+            $this->inference(function() use ($ast, $parent): void {
37 37
                 foreach ($ast->getInterfaceNodes() as $node) {
38 38
                     $this->implement($parent, $node);
39 39
                 }
40 40
             });
41 41
 
42 42
             if ($parent instanceof ObjectDefinition) {
43
-                $this->inference(function () use ($parent): void {
43
+                $this->inference(function() use ($parent): void {
44 44
                     foreach ($parent->getInterfaces() as $interface) {
45 45
                         $this->verifyFieldsInheritance($parent, $interface);
46 46
                     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function verifyIsInterface(Definition $parent, TypeDefinition $definition): void
90 90
     {
91
-        if (! $definition instanceof InterfaceDefinition) {
91
+        if (!$definition instanceof InterfaceDefinition) {
92 92
             $error = '%s can implement only interfaces, but %s given';
93 93
             throw new TypeConflictException(\sprintf($error, $parent, $definition));
94 94
         }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     private function verifySelfReferenceImplementation(ProvidesInterfaces $parent, TypeDefinition $interface): void
117 117
     {
118 118
         if ($parent->isImplements($parent)) {
119
-            $error = 'Can not implement the interface %s by %s, ' .
119
+            $error = 'Can not implement the interface %s by %s, '.
120 120
                 'because it contains a reference to the already implemented type %s';
121 121
             $error = \sprintf($error, $interface, $parent, $parent);
122 122
 
Please login to merge, or discard this patch.