@@ -12,7 +12,6 @@ |
||
| 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; |
@@ -75,8 +75,8 @@ |
||
| 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 | }); |
@@ -43,7 +43,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 */ |
@@ -31,11 +31,11 @@ |
||
| 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 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |