@@ -11,7 +11,6 @@ |
||
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 | /** |
@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 */ |
@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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); |