@@ -28,10 +28,10 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Short ID scalar public description. |
| 30 | 30 | */ |
| 31 | - protected const TYPE_DESCRIPTION = 'The `ID` scalar type represents a unique identifier, often used to ' . |
|
| 32 | - 'refetch an object or as key for a cache. The ID type appears in a JSON ' . |
|
| 33 | - 'response as a String; however, it is not intended to be human-readable. ' . |
|
| 34 | - 'When expected as an input type, any string (such as `"4"`) or integer ' . |
|
| 31 | + protected const TYPE_DESCRIPTION = 'The `ID` scalar type represents a unique identifier, often used to '. |
|
| 32 | + 'refetch an object or as key for a cache. The ID type appears in a JSON '. |
|
| 33 | + 'response as a String; however, it is not intended to be human-readable. '. |
|
| 34 | + 'When expected as an input type, any string (such as `"4"`) or integer '. |
|
| 35 | 35 | '(such as `4`) input value will be accepted as an ID.'; |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Short String scalar public description. |
| 28 | 28 | */ |
| 29 | - protected const TYPE_DESCRIPTION = 'The `String` scalar type represents textual data, represented as UTF-8 ' . |
|
| 30 | - 'character sequences. The String type is most often used by GraphQL to ' . |
|
| 29 | + protected const TYPE_DESCRIPTION = 'The `String` scalar type represents textual data, represented as UTF-8 '. |
|
| 30 | + 'character sequences. The String type is most often used by GraphQL to '. |
|
| 31 | 31 | 'represent free-form human-readable text.'; |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Short Int scalar public description. |
| 28 | 28 | */ |
| 29 | - protected const TYPE_DESCRIPTION = 'The `Int` scalar type represents non-fractional signed whole numeric ' . |
|
| 29 | + protected const TYPE_DESCRIPTION = 'The `Int` scalar type represents non-fractional signed whole numeric '. |
|
| 30 | 30 | 'values. Int can represent values between -(2^31) and 2^31 - 1.'; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Short Float scalar public description. |
| 28 | 28 | */ |
| 29 | - protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional ' . |
|
| 29 | + protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional '. |
|
| 30 | 30 | 'values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).'; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | |
| 26 | 26 | private const ARGUMENT_DEFAULT_VALUE = 'No longer supported'; |
| 27 | 27 | |
| 28 | - private const ARGUMENT_DESCRIPTION = 'You can either supply a reason argument ' . |
|
| 29 | - 'with a string value or not supply one and receive a "No longer supported" ' . |
|
| 28 | + private const ARGUMENT_DESCRIPTION = 'You can either supply a reason argument '. |
|
| 29 | + 'with a string value or not supply one and receive a "No longer supported" '. |
|
| 30 | 30 | 'message when introspected'; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -35,6 +35,6 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function getDeprecationReason(): string |
| 37 | 37 | { |
| 38 | - return (string)$this->deprecationReason; |
|
| 38 | + return (string) $this->deprecationReason; |
|
| 39 | 39 | } |
| 40 | 40 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public function getDirectives(string $name = null): iterable |
| 41 | 41 | { |
| 42 | 42 | foreach ($this->directives as $definitions) { |
| 43 | - foreach ((array)$definitions as $found => $invocation) { |
|
| 43 | + foreach ((array) $definitions as $found => $invocation) { |
|
| 44 | 44 | if ($name === null || $name === $found) { |
| 45 | 45 | yield $found => $invocation; |
| 46 | 46 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function getNumberOfRequiredArguments(): int |
| 73 | 73 | { |
| 74 | - return (int)\array_reduce($this->arguments, [$this, 'requiredArgumentsCounter'], 0); |
|
| 74 | + return (int) \array_reduce($this->arguments, [$this, 'requiredArgumentsCounter'], 0); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function getNumberOfOptionalArguments(): int |
| 81 | 81 | { |
| 82 | - return (int)\array_reduce($this->arguments, [$this, 'optionalArgumentsCounter'], 0); |
|
| 82 | + return (int) \array_reduce($this->arguments, [$this, 'optionalArgumentsCounter'], 0); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | private function optionalArgumentsCounter(int $carry, ArgumentDefinition $argument): int |
| 91 | 91 | { |
| 92 | - return $carry + (int)$argument->hasDefaultValue(); |
|
| 92 | + return $carry + (int) $argument->hasDefaultValue(); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -99,6 +99,6 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | private function requiredArgumentsCounter(int $carry, ArgumentDefinition $argument): int |
| 101 | 101 | { |
| 102 | - return $carry + (int)! $argument->hasDefaultValue(); |
|
| 102 | + return $carry + (int) !$argument->hasDefaultValue(); |
|
| 103 | 103 | } |
| 104 | 104 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | \get_class($this), |
| 110 | 110 | ])); |
| 111 | 111 | |
| 112 | - return (string)$this->name; |
|
| 112 | + return (string) $this->name; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | public function getDescription(): string |
| 119 | 119 | { |
| 120 | - return (string)$this->description; |
|
| 120 | + return (string) $this->description; |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |