Passed
Branch master (d28503)
by Kirill
32:55
created
src/Reflection/Builder/Invocations/ValueBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Invocations;
11 11
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private function toFloat(LeafInterface $ast): float
125 125
     {
126
-        return (float)$ast->getValue();
126
+        return (float) $ast->getValue();
127 127
     }
128 128
 
129 129
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     private function toInt(LeafInterface $ast): int
134 134
     {
135
-        return (int)$ast->getValue();
135
+        return (int) $ast->getValue();
136 136
     }
137 137
 
138 138
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                 return \substr($ast->getValue(), 3, -3);
169 169
         }
170 170
 
171
-        return (string)$ast->getValue();
171
+        return (string) $ast->getValue();
172 172
     }
173 173
 
174 174
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         // TODO Probably may be escaped by backslash like "\\u0000"
202 202
         $pattern = '/\\\\u([0-9a-fA-F]{4})/';
203 203
 
204
-        $callee = function (array $matches): string {
204
+        $callee = function(array $matches): string {
205 205
             [$char, $code] = [$matches[0], $matches[1]];
206 206
 
207 207
             try {
Please login to merge, or discard this patch.
src/Reflection/Builder/Invocations/DirectiveInvocationBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Invocations;
11 11
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             /** @var ArgumentDefinition|null $argument */
57 57
             $argument   = $definition->getArgument($name);
58 58
 
59
-            if (! $argument) {
59
+            if (!$argument) {
60 60
                 $this->getCompiler()->getCallStack()->push($definition);
61 61
 
62 62
                 $error = \sprintf('Argument %s not defined in %s', $name, $definition);
Please login to merge, or discard this patch.
src/Reflection/Builder/Invocations/InputInvocationBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Invocations;
11 11
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function onCompile(NodeInterface $ast): bool
67 67
     {
68
-        $key   = (string)$ast->getChild(0)->getChild(0)->getValue();
68
+        $key   = (string) $ast->getChild(0)->getChild(0)->getValue();
69 69
         $value = $ast->getChild(1)->getChild(0);
70 70
 
71 71
         $this->arguments[$key] = $this->parseValue($value, $this->parentType, \array_merge($this->path, [$key]));
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function getTypeDefinition(): ?TypeDefinition
99 99
     {
100
-        $reduce = function (?InputDefinition $carry, $item): ?TypeDefinition {
100
+        $reduce = function(?InputDefinition $carry, $item): ?TypeDefinition {
101 101
             /** @var ArgumentDefinition|null $argument */
102 102
             $argument = $carry->getArgument($item);
103 103
             // TODO $argument can be null. Add validation?
Please login to merge, or discard this patch.
src/Reflection/Builder/Invocations/Directive/DirectivesBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Invocations\Directive;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Builder/Dependent/Argument/ArgumentsBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Dependent\Argument;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Builder/Dependent/FieldBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Dependent;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Builder/Dependent/Field/FieldsBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Dependent\Field;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Builder/Dependent/ArgumentBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Dependent;
11 11
 
Please login to merge, or discard this patch.
src/Reflection/Builder/Processable/ExtendBuilder.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace Railt\SDL\Reflection\Builder\Processable;
11 11
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $type = DocumentBuilder::AST_TYPE_MAPPING[$ast->getName()] ?? null;
61 61
 
62
-        if ($type !== null && ! ($type instanceof ExtendDefinition)) {
62
+        if ($type !== null && !($type instanceof ExtendDefinition)) {
63 63
             /** @var Compilable $virtualType */
64 64
             $virtualType = new $type($ast, $this->getDocument());
65 65
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 continue;
135 135
             }
136 136
 
137
-            $callee = function () use ($extendField): void {
137
+            $callee = function() use ($extendField): void {
138 138
                 /** @var BaseFieldsContainer $this */
139 139
                 $this->fields[$extendField->getName()] = $extendField;
140 140
             };
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     private function dataFieldExtender(): \Closure
150 150
     {
151 151
         /** @var FieldDefinition|BaseField $field */
152
-        return function (FieldDefinition $field): void {
152
+        return function(FieldDefinition $field): void {
153 153
             /** @var BaseField $this */
154 154
 
155 155
             // Extend type
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                 continue;
192 192
             }
193 193
 
194
-            $callee = function () use ($extendArgument): void {
194
+            $callee = function() use ($extendArgument): void {
195 195
                 /** @var BaseArgumentsContainer $this */
196 196
                 $this->arguments[$extendArgument->getName()] = $extendArgument;
197 197
             };
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     private function dataArgumentExtender(): \Closure
207 207
     {
208 208
         /** @var ArgumentDefinition|BaseArgument $argument */
209
-        return function (ArgumentDefinition $argument): void {
209
+        return function(ArgumentDefinition $argument): void {
210 210
             /** @var BaseArgument $this */
211 211
 
212 212
             // Extend type
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                 continue;
242 242
             }
243 243
 
244
-            $callee = function () use ($extendDirective): void {
244
+            $callee = function() use ($extendDirective): void {
245 245
                 /** @var BaseArgumentsContainer $this */
246 246
                 $this->arguments[$extendDirective->getName()] = $extendDirective;
247 247
             };
Please login to merge, or discard this patch.