@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | use Railt\Io\Readable; |
13 | 13 | use Railt\Parser\Ast\RuleInterface; |
14 | -use Railt\Parser\Exception\UnexpectedTokenException; |
|
15 | 14 | use Railt\Parser\Exception\UnrecognizedTokenException; |
16 | 15 | use Railt\Reflection\Contracts\Definition; |
17 | 16 | use Railt\Reflection\Contracts\Dictionary; |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | */ |
8 | 8 | declare(strict_types=1); |
9 | 9 | |
10 | -if (! \function_exists('\\sdl')) { |
|
10 | +if (!\function_exists('\\sdl')) { |
|
11 | 11 | /** |
12 | 12 | * @param string $fileOrSources |
13 | 13 | * @param bool $filename |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | |
28 | -if (! \function_exists('trait_uses_recursive')) { |
|
28 | +if (!\function_exists('trait_uses_recursive')) { |
|
29 | 29 | /** |
30 | 30 | * Returns all traits used by a trait and its traits. |
31 | 31 | * |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | |
48 | -if (! \function_exists('class_uses_recursive')) { |
|
48 | +if (!\function_exists('class_uses_recursive')) { |
|
49 | 49 | /** |
50 | 50 | * Returns all traits used by a class, its parent classes and trait of their traits. |
51 | 51 | * |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | |
72 | -if (! \function_exists('class_basename')) { |
|
72 | +if (!\function_exists('class_basename')) { |
|
73 | 73 | /** |
74 | 74 | * Get the class "basename" of the given object / class. |
75 | 75 | * |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var ScalarDefinition $scalar */ |
30 | 30 | $scalar = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $scalar): void { |
|
32 | + $this->immediately(function() use ($ast, $scalar): void { |
|
33 | 33 | $scalar->withOffset($ast->getOffset()); |
34 | 34 | $scalar->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var InputDefinition $input */ |
30 | 30 | $input = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $input): void { |
|
32 | + $this->immediately(function() use ($ast, $input): void { |
|
33 | 33 | $input->withOffset($ast->getOffset()); |
34 | 34 | $input->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var EnumDefinition $enum */ |
30 | 30 | $enum = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $enum): void { |
|
32 | + $this->immediately(function() use ($ast, $enum): void { |
|
33 | 33 | $enum->withOffset($ast->getOffset()); |
34 | 34 | $enum->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var InterfaceDefinition $interface */ |
30 | 30 | $interface = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $interface): void { |
|
32 | + $this->immediately(function() use ($ast, $interface): void { |
|
33 | 33 | $interface->withOffset($ast->getOffset()); |
34 | 34 | $interface->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var SchemaDefinition $schema */ |
30 | 30 | $schema = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $schema): void { |
|
32 | + $this->immediately(function() use ($ast, $schema): void { |
|
33 | 33 | $schema->withOffset($ast->getOffset()); |
34 | 34 | $schema->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var InputUnionDefinition $inputUnion */ |
30 | 30 | $inputUnion = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $inputUnion): void { |
|
32 | + $this->immediately(function() use ($ast, $inputUnion): void { |
|
33 | 33 | $inputUnion->withOffset($ast->getOffset()); |
34 | 34 | $inputUnion->withDescription($ast->getDescription()); |
35 | 35 | }); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var DirectiveDefinition $directive */ |
30 | 30 | $directive = $ast->getTypeDefinition(); |
31 | 31 | |
32 | - $this->immediately(function () use ($ast, $directive): void { |
|
32 | + $this->immediately(function() use ($ast, $directive): void { |
|
33 | 33 | $directive->withOffset($ast->getOffset()); |
34 | 34 | $directive->withDescription($ast->getDescription()); |
35 | 35 | }); |