@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function __construct(Definition $definition) |
| 30 | 30 | { |
| 31 | - $this->definition = $definition; |
|
| 31 | + $this->definition = $definition; |
|
| 32 | 32 | |
| 33 | 33 | $this->file = $definition->getFileName(); |
| 34 | 34 | $this->line = $definition->getDeclarationLine(); |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $this->trace = $trace; |
| 29 | 29 | |
| 30 | - $this->file = (string)($trace['file'] ?? 'php://input'); |
|
| 31 | - $this->line = (int)($trace['line'] ?? 0); |
|
| 30 | + $this->file = (string) ($trace['file'] ?? 'php://input'); |
|
| 31 | + $this->line = (int) ($trace['line'] ?? 0); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -54,16 +54,16 @@ discard block |
||
| 54 | 54 | $result = $trace['function']; |
| 55 | 55 | |
| 56 | 56 | if (\array_key_exists('class', $trace)) { |
| 57 | - $result = $trace['class'] . $trace['type'] . $result; |
|
| 57 | + $result = $trace['class'].$trace['type'].$result; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | $arguments = []; |
| 61 | 61 | |
| 62 | - foreach ((array)($trace['args'] ?? []) as $argument) { |
|
| 62 | + foreach ((array) ($trace['args'] ?? []) as $argument) { |
|
| 63 | 63 | $arguments[] = $this->valueToString($argument); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - return $result . '(' . \implode(', ', $arguments) . ')'; |
|
| 66 | + return $result.'('.\implode(', ', $arguments).')'; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -104,10 +104,10 @@ discard block |
||
| 104 | 104 | $body = \implode(', ', $parts); |
| 105 | 105 | |
| 106 | 106 | if (\is_object($iterator)) { |
| 107 | - return $this->objectToString($iterator) . '<' . $body . '>'; |
|
| 107 | + return $this->objectToString($iterator).'<'.$body.'>'; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - return '[' . $body . ']'; |
|
| 110 | + return '['.$body.']'; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | class Factory |
| 23 | 23 | { |
| 24 | - public const GRAMMAR_FILE = __DIR__ . '/../../resources/grammar/sdl.pp'; |
|
| 24 | + public const GRAMMAR_FILE = __DIR__.'/../../resources/grammar/sdl.pp'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @var ParserInterface|null |
@@ -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 | } |