@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | private function assert($value) |
| 73 | 73 | { |
| 74 | - if (! ($this->generic)($value)) { |
|
| 74 | + if (!($this->generic)($value)) { |
|
| 75 | 75 | $type = \is_object($value) ? \get_class($value) : \gettype($value); |
| 76 | 76 | |
| 77 | 77 | throw new \TypeError(\sprintf('A type %s can not be a part of %s', $type, static::class)); |
@@ -27,6 +27,6 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct(array $items) |
| 29 | 29 | { |
| 30 | - parent::__construct(fn ($item) => $item instanceof OperationTypeDefinitionNode, $items); |
|
| 30 | + parent::__construct(fn($item) => $item instanceof OperationTypeDefinitionNode, $items); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -27,6 +27,6 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct(array $items) |
| 29 | 29 | { |
| 30 | - parent::__construct(fn ($item) => $item instanceof ObjectFieldNode, $items); |
|
| 30 | + parent::__construct(fn($item) => $item instanceof ObjectFieldNode, $items); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function __construct(TypeNode $type) |
| 37 | 37 | { |
| 38 | - \assert(! $type instanceof self); |
|
| 38 | + \assert(!$type instanceof self); |
|
| 39 | 39 | |
| 40 | 40 | $this->type = $type; |
| 41 | 41 | } |
@@ -43,13 +43,13 @@ |
||
| 43 | 43 | * @var string[] |
| 44 | 44 | */ |
| 45 | 45 | protected const SPECIAL_CHARS = [ |
| 46 | - self::T_BACKSPACE => "\u{0008}", /* '\b' */ |
|
| 47 | - self::T_FORM_FEED => "\u{000C}", /* '\f' */ |
|
| 48 | - self::T_NEW_LINE => "\u{000A}", /* '\n' */ |
|
| 49 | - self::T_CARRIAGE_RETURN => "\u{000D}", /* '\r' */ |
|
| 50 | - self::T_HORIZONTAL_TAB => "\u{0009}", /* '\t' */ |
|
| 51 | - self::T_ESCAPED_QUOTE => '"', /* '\"' */ |
|
| 52 | - self::T_ESCAPED_BACK_SLASH => '\\', /* '\\' */ |
|
| 46 | + self::T_BACKSPACE => "\u{0008}", /* '\b' */ |
|
| 47 | + self::T_FORM_FEED => "\u{000C}", /* '\f' */ |
|
| 48 | + self::T_NEW_LINE => "\u{000A}", /* '\n' */ |
|
| 49 | + self::T_CARRIAGE_RETURN => "\u{000D}", /* '\r' */ |
|
| 50 | + self::T_HORIZONTAL_TAB => "\u{0009}", /* '\t' */ |
|
| 51 | + self::T_ESCAPED_QUOTE => '"', /* '\"' */ |
|
| 52 | + self::T_ESCAPED_BACK_SLASH => '\\', /* '\\' */ |
|
| 53 | 53 | ]; |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public static function parse(string $value): self |
| 65 | 65 | { |
| 66 | - if (! \is_numeric($value)) { |
|
| 66 | + if (!\is_numeric($value)) { |
|
| 67 | 67 | $message = 'Int cannot represent non-numeric value: %s'; |
| 68 | 68 | throw new \OverflowException(\sprintf($message, $value)); |
| 69 | 69 | } |
@@ -27,6 +27,6 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct(array $items) |
| 29 | 29 | { |
| 30 | - parent::__construct(fn ($item) => $item instanceof NamedTypeNode, $items); |
|
| 30 | + parent::__construct(fn($item) => $item instanceof NamedTypeNode, $items); |
|
| 31 | 31 | } |
| 32 | 32 | } |