@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function parse($value): string |
| 48 | 48 | { |
| 49 | - if (! \is_scalar($value)) { |
|
| 49 | + if (!\is_scalar($value)) { |
|
| 50 | 50 | throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value))); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - return (string)$value; |
|
| 53 | + return (string) $value; |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function serialize($value): string |
| 62 | 62 | { |
| 63 | - if (! \is_scalar($value)) { |
|
| 63 | + if (!\is_scalar($value)) { |
|
| 64 | 64 | throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value))); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - return (string)$value; |
|
| 67 | + return (string) $value; |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -65,14 +65,14 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function __toString(): string |
| 67 | 67 | { |
| 68 | - $parent = $this->getDictionary()->find($this->definition) ?: $this->definition . '<?>'; |
|
| 68 | + $parent = $this->getDictionary()->find($this->definition) ?: $this->definition.'<?>'; |
|
| 69 | 69 | |
| 70 | 70 | if ($this->isNonNull()) { |
| 71 | 71 | $parent .= '!'; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | if ($this->isList()) { |
| 75 | - $parent = '[' . $parent . ']'; |
|
| 75 | + $parent = '['.$parent.']'; |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | if ($this->isListOfNonNulls()) { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function isNonNull(): bool |
| 89 | 89 | { |
| 90 | - return (bool)($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL); |
|
| 90 | + return (bool) ($this->modifiers & ProvidesTypeIndication::IS_NOT_NULL); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function isList(): bool |
| 97 | 97 | { |
| 98 | - return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST); |
|
| 98 | + return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | public function isListOfNonNulls(): bool |
| 105 | 105 | { |
| 106 | - return (bool)($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL); |
|
| 106 | + return (bool) ($this->modifiers & ProvidesTypeIndication::IS_LIST_OF_NOT_NULL); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |