Completed
Push — master ( 1dcd4f...332a4c )
by Kirill
06:47 queued 03:36
created
src/Compiler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Railt\Io\Readable;
13 13
 use Railt\Parser\Ast\RuleInterface;
14 14
 use Railt\Parser\Environment;
15
-use Railt\Parser\Exception\UnexpectedTokenException;
16 15
 use Railt\Parser\Exception\UnrecognizedTokenException;
17 16
 use Railt\Reflection\Contracts\Definition;
18 17
 use Railt\Reflection\Contracts\Dictionary;
Please login to merge, or discard this patch.
src/Compiler/Definition/DefinitionDelegate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
      */
76 76
     protected function future(int $priority, callable $then): void
77 77
     {
78
-        $this->pipeline->push($priority, function () use ($then): void {
79
-            $this->transaction($this->definition, function () use ($then): void {
78
+        $this->pipeline->push($priority, function() use ($then): void {
79
+            $this->transaction($this->definition, function() use ($then): void {
80 80
                 $then();
81 81
             });
82 82
         });
Please login to merge, or discard this patch.
src/Compiler/Definition/EnumDelegate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         parent::boot($env);
45 45
 
46
-        $this->future(Pipeline::PRIORITY_DEFINITION, function (): void {
46
+        $this->future(Pipeline::PRIORITY_DEFINITION, function(): void {
47 47
             $this->bootValues($this->definition);
48 48
         });
49 49
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     private function bootValues(EnumDefinition $enum): void
55 55
     {
56 56
         foreach ($this->getEnumValues($enum) as $value) {
57
-            $this->transaction($value, function (EnumValueDefinition $value) use ($enum): void {
57
+            $this->transaction($value, function(EnumValueDefinition $value) use ($enum): void {
58 58
                 $this->verifyDuplication($enum, $value);
59 59
 
60 60
                 $enum->withValue($value);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         foreach ($this->first('EnumValues', 1) as $ast) {
73 73
             $enumValue = $this->createEnumValue($enum, $ast->first('T_NAME', 1));
74 74
 
75
-            $this->transaction($enumValue, function (EnumValueDefinition $def) use ($ast): void {
75
+            $this->transaction($enumValue, function(EnumValueDefinition $def) use ($ast): void {
76 76
                 //$this->withDescription($def, $ast);
77 77
 
78 78
                 /** @var RuleInterface $defValue */
Please login to merge, or discard this patch.
src/Compiler/Definition/TypeDefinitionDelegate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
     {
32 32
         parent::boot($env);
33 33
 
34
-        $this->transaction($this->definition, function (): void {
34
+        $this->transaction($this->definition, function(): void {
35 35
             $this->register();
36 36
         });
37 37
 
38
-        $this->future(Pipeline::PRIORITY_DEFINITION, function (): void {
38
+        $this->future(Pipeline::PRIORITY_DEFINITION, function(): void {
39 39
             $this->addDescription($this->definition, $this);
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
src/Compiler/Definition/DirectiveDelegate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function register(): void
40 40
     {
41
-        $this->future(Pipeline::PRIORITY_DEFINITION, function (): void {
41
+        $this->future(Pipeline::PRIORITY_DEFINITION, function(): void {
42 42
             $this->bootLocations($this->definition);
43 43
         });
44 44
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     private function bootLocations(DirectiveDefinition $directive): void
50 50
     {
51 51
         foreach ($this->getLocations($directive) as $offset => $location) {
52
-            $this->transaction($location, function (DirectiveLocation $location) use ($directive): void {
52
+            $this->transaction($location, function(DirectiveLocation $location) use ($directive): void {
53 53
                 $this->verifyLocation($location);
54 54
                 $this->verifyDuplication($directive, $location);
55 55
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $isValid = $location->isExecutable() || $location->isPrivate();
95 95
 
96
-        if (! $isValid) {
96
+        if (!$isValid) {
97 97
             $error = \sprintf('Invalid directive location %s', $location);
98 98
 
99 99
             throw $this->error(new TypeConflictException($error))->in($location);
Please login to merge, or discard this patch.