Completed
Push — master ( fe9d21...06b28a )
by Kirill
04:29
created
src/Compiler/Definition/ScalarDelegate.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 use Railt\Reflection\Contracts\Definition;
13 13
 use Railt\Reflection\Contracts\Document;
14
-use Railt\Reflection\Definition\ObjectDefinition;
15 14
 use Railt\Reflection\Definition\ScalarDefinition;
16 15
 
17 16
 /**
Please login to merge, or discard this patch.
src/Compiler/Definition/EnumDelegate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     private function bootValues(EnumDefinition $enum): void
48 48
     {
49 49
         foreach ($this->getEnumValues($enum) as $value) {
50
-            $this->transaction($value, function (EnumValueDefinition $value) use ($enum): void {
50
+            $this->transaction($value, function(EnumValueDefinition $value) use ($enum): void {
51 51
                 $this->verifyDuplication($enum, $value);
52 52
 
53 53
                 $enum->withValue($value);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         foreach ($this->first('EnumValues', 1) as $ast) {
66 66
             $enumValue = $this->createEnumValue($enum, $ast->first('T_NAME', 1));
67 67
 
68
-            $this->transaction($enumValue, function (EnumValueDefinition $def) use ($ast): void {
68
+            $this->transaction($enumValue, function(EnumValueDefinition $def) use ($ast): void {
69 69
                 $this->withDescription($def, $ast);
70 70
 
71 71
                 /** @var RuleInterface $defValue */
Please login to merge, or discard this patch.
src/Compiler/Definition/DirectiveDelegate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     private function bootLocations(DirectiveDefinition $directive): void
46 46
     {
47 47
         foreach ($this->getLocations($directive) as $offset => $location) {
48
-            $this->transaction($location, function (DirectiveLocation $location) use ($directive): void {
48
+            $this->transaction($location, function(DirectiveLocation $location) use ($directive): void {
49 49
                 $this->verifyLocation($location);
50 50
                 $this->verifyDuplication($directive, $location);
51 51
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $isValid = $location->isExecutable() || $location->isPrivate();
91 91
 
92
-        if (! $isValid) {
92
+        if (!$isValid) {
93 93
             $error = \sprintf('Invalid directive location %s', $location);
94 94
 
95 95
             throw $this->error(new TypeConflictException($error))->in($location);
Please login to merge, or discard this patch.