Completed
Push — master ( b2a65d...63a169 )
by Kirill
02:18
created
src/Process/Interceptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function match($value): bool
43 43
     {
44
-        return (bool)($this->matcher)($value);
44
+        return (bool) ($this->matcher)($value);
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Frontend/Context/Context.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      * @param TypeInterface|null $type
129 129
      * @return VarSymbolInterface
130 130
      */
131
-    public function declare(string $var, TypeInterface $type = null): VarSymbolInterface
131
+    public function declare(string$var,TypeInterface$type=null): VarSymbolInterface
132 132
     {
133 133
         if ($this->has($var)) {
134 134
             $error = 'Can not define var $%s, because %s already has been defined';
@@ -176,6 +176,6 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function __toString(): string
178 178
     {
179
-        return $this->getName()->getFullyQualifiedName() . ' (' . $this->getFile()->getPathname() .')';
179
+        return $this->getName()->getFullyQualifiedName().' ('.$this->getFile()->getPathname().')';
180 180
     }
181 181
 }
Please login to merge, or discard this patch.
src/Frontend/Definition/Storage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $this->naming = $naming;
55 55
 
56
-        $this->definitions = new Map(function (TypeNameInterface $name): string {
56
+        $this->definitions = new Map(function(TypeNameInterface $name): string {
57 57
             return $name->getFullyQualifiedName();
58 58
         });
59 59
 
60
-        $this->resolvers = new Map(function (DefinitionInterface $definition): string {
60
+        $this->resolvers = new Map(function(DefinitionInterface $definition): string {
61 61
             return $definition->getName()->getFullyQualifiedName();
62 62
         });
63 63
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     private function toInvocationDeferredCallback(DefinitionInterface $original, DeferredInterface $then): \Closure
178 178
     {
179
-        return function (DefinitionInterface $definition = null, InvocationInterface $invocation = null) use (
179
+        return function(DefinitionInterface $definition = null, InvocationInterface $invocation = null) use (
180 180
             $original,
181 181
             $then
182 182
         ) {
Please login to merge, or discard this patch.
src/Frontend/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     private function bootInterceptors(DeferredStorage $deferred, TypesStorage $types): Factory
142 142
     {
143
-        $wantsBuild = function (ContextInterface $ctx, RuleInterface $ast) {
143
+        $wantsBuild = function(ContextInterface $ctx, RuleInterface $ast) {
144 144
             return $this->buildNode($ctx, $ast);
145 145
         };
146 146
 
@@ -278,10 +278,10 @@  discard block
 block discarded – undo
278 278
      */
279 279
     private function deferred(ContextInterface $context): ContextInterface
280 280
     {
281
-        $this->deferred->attach($this->types->export(function (DefinitionInterface $definition): bool {
281
+        $this->deferred->attach($this->types->export(function(DefinitionInterface $definition): bool {
282 282
             $invocation = new Invocation($definition->getName(), $definition->getContext());
283 283
 
284
-            return ! $definition->isGeneric() && ! $this->types->resolved($invocation);
284
+            return !$definition->isGeneric() && !$this->types->resolved($invocation);
285 285
         }));
286 286
 
287 287
         [$context] = $this->process->run($context, $this->deferred->getIterator());
Please login to merge, or discard this patch.
src/Frontend/Builder/Instruction/VariableBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             $isConstant ? $record->lock() : $record->unlock();
54 54
         }
55 55
 
56
-        yield function () use ($rule, $variables) {
56
+        yield function() use ($rule, $variables) {
57 57
             /** @var ValueInterface $value */
58 58
             $value = yield $this->getValueNode($rule);
59 59
 
Please login to merge, or discard this patch.
src/Frontend/Builder/Value/TypeInvocationBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         switch (true) {
83 83
             case $isConst:
84
-                return new Invocation(Name::fromString((string)$name->getValue()), $ctx);
84
+                return new Invocation(Name::fromString((string) $name->getValue()), $ctx);
85 85
 
86 86
             case $isType:
87 87
                 /** @var Invocation $value */
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         $isConst = $name->getType()->typeOf(Type::const());
111 111
 
112
-        if (! $isConst) {
112
+        if (!$isConst) {
113 113
             $error = 'Generic argument name must be a const but %s given';
114 114
             $exception = new TypeConflictException(\sprintf($error, $name));
115 115
             $exception->throwsIn($ctx->getFile(), $rule->getOffset());
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             throw $exception;
118 118
         }
119 119
 
120
-        return Name::fromString((string)$name->getValue());
120
+        return Name::fromString((string) $name->getValue());
121 121
     }
122 122
 
123 123
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         $isType = $value->getType()->typeOf(Type::type());
134 134
 
135
-        if (! $isType) {
135
+        if (!$isType) {
136 136
             $error = 'Generic argument value must be a valid type, but %s given';
137 137
             $exception = new TypeConflictException(\sprintf($error, $value));
138 138
             $exception->throwsIn($ctx->getFile(), $rule->getOffset());
Please login to merge, or discard this patch.
src/Frontend/Builder/Definition/ObjectDefinitionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         /** @var DeferredInterface $definition */
45 45
         $definition = yield $rule->first('> #TypeDefinition');
46 46
 
47
-        $definition->then(function (DefinitionInterface $definition, InvocationInterface $from) {
47
+        $definition->then(function(DefinitionInterface $definition, InvocationInterface $from) {
48 48
             /** @var ContextInterface $local */
49 49
             $local = yield $definition->getLocalContext(); // Open local context
50 50
 
Please login to merge, or discard this patch.
src/Naming/SimpleNamingStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __construct()
23 23
     {
24
-        parent::__construct(function (TypeNameInterface $name, iterable $arguments) {
24
+        parent::__construct(function(TypeNameInterface $name, iterable $arguments) {
25 25
             return $this->format($name, $arguments);
26 26
         });
27 27
     }
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     private function format(TypeNameInterface $name, iterable $arguments): string
35 35
     {
36
-        echo \str_repeat('-', 100) . "\n";
37
-        echo $name . " ";
36
+        echo \str_repeat('-', 100)."\n";
37
+        echo $name." ";
38 38
         \dump($arguments);
39 39
 
40 40
         return $this->formatName($name);
Please login to merge, or discard this patch.