@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @param Readable $file |
| 26 | 26 | * @param RuleInterface|InterfaceDefinitionNode $ast |
| 27 | - * @return \Generator|mixed |
|
| 27 | + * @return \Generator |
|
| 28 | 28 | */ |
| 29 | 29 | public function build(Readable $file, RuleInterface $ast) |
| 30 | 30 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $interface = new TypeDefinition($ast->getFullName()); |
| 32 | 32 | $interface->in($file, $ast->getOffset()); |
| 33 | 33 | |
| 34 | - $interface->type = Type::INTERFACE; |
|
| 34 | + $interface->type = Type::interface; |
|
| 35 | 35 | $interface->description = $ast->getDescription(); |
| 36 | 36 | |
| 37 | 37 | $this->loadInterfaces($ast, $interface); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @param Readable $file |
| 26 | 26 | * @param RuleInterface|ObjectDefinitionNode $ast |
| 27 | - * @return \Generator|mixed |
|
| 27 | + * @return \Generator |
|
| 28 | 28 | */ |
| 29 | 29 | public function build(Readable $file, RuleInterface $ast) |
| 30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @param Readable $file |
| 26 | 26 | * @param RuleInterface|ScalarDefinitionNode $ast |
| 27 | - * @return \Generator|mixed |
|
| 27 | + * @return TypeDefinition |
|
| 28 | 28 | */ |
| 29 | 29 | public function build(Readable $file, RuleInterface $ast) |
| 30 | 30 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @param Readable $file |
| 28 | 28 | * @param RuleInterface|SchemaDefinitionNode $ast |
| 29 | - * @return \Generator|mixed |
|
| 29 | + * @return \Generator |
|
| 30 | 30 | */ |
| 31 | 31 | public function build(Readable $file, RuleInterface $ast) |
| 32 | 32 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * @param Readable $file |
| 27 | 27 | * @param RuleInterface|SchemaFieldDefinitionNode $ast |
| 28 | - * @return \Generator|mixed |
|
| 28 | + * @return TypeDefinition |
|
| 29 | 29 | */ |
| 30 | 30 | public function build(Readable $file, RuleInterface $ast) |
| 31 | 31 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * @param Readable $file |
| 27 | 27 | * @param RuleInterface|UnionDefinitionNode $ast |
| 28 | - * @return \Generator|mixed |
|
| 28 | + * @return TypeDefinition |
|
| 29 | 29 | */ |
| 30 | 30 | public function build(Readable $file, RuleInterface $ast) |
| 31 | 31 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * @param Readable $file |
| 23 | 23 | * @param RuleInterface $ast |
| 24 | - * @return \Generator|mixed|Definition|\Railt\SDL\IR\TypeDefinition|\Railt\SDL\IR\TypeInvocation |
|
| 24 | + * @return \Generator |
|
| 25 | 25 | */ |
| 26 | 26 | public function build(Readable $file, RuleInterface $ast) |
| 27 | 27 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * Create a new ValueObject container instance. |
| 26 | 26 | * |
| 27 | 27 | * @param iterable $attributes |
| 28 | - * @return void |
|
| 28 | + * @return \Railt\Io\Readable |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct(iterable $attributes = []) |
| 31 | 31 | { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | /** |
| 156 | 156 | * Set the value at the given offset. |
| 157 | 157 | * |
| 158 | - * @param string|int $offset |
|
| 158 | + * @param string $offset |
|
| 159 | 159 | * @param mixed $value |
| 160 | 160 | * @return void |
| 161 | 161 | */ |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function jsonSerialize(): array |
| 110 | 110 | { |
| 111 | - $applicator = function ($value) { |
|
| 111 | + $applicator = function($value) { |
|
| 112 | 112 | if (\is_object($value) && \method_exists($value, '__toString')) { |
| 113 | - return (string)$value; |
|
| 113 | + return (string) $value; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $value; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function toJson(int $options = 0): string |
| 129 | 129 | { |
| 130 | - return (string)\json_encode($this->jsonSerialize(), $options); |
|
| 130 | + return (string) \json_encode($this->jsonSerialize(), $options); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function isNonNull(): bool |
| 39 | 39 | { |
| 40 | - return (bool)($this->modifiers & static::IS_NOT_NULL); |
|
| 40 | + return (bool) ($this->modifiers & static::IS_NOT_NULL); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function isList(): bool |
| 47 | 47 | { |
| 48 | - return (bool)($this->modifiers & static::IS_LIST); |
|
| 48 | + return (bool) ($this->modifiers & static::IS_LIST); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function isListOfNonNulls(): bool |
| 55 | 55 | { |
| 56 | - return (bool)($this->modifiers & static::IS_LIST_OF_NOT_NULL); |
|
| 56 | + return (bool) ($this->modifiers & static::IS_LIST_OF_NOT_NULL); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |