@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | return $type instanceof InputType && |
| 176 | 176 | ( |
| 177 | - ! $type instanceof WrappingType || |
|
| 177 | + !$type instanceof WrappingType || |
|
| 178 | 178 | self::getNamedType($type) instanceof InputType |
| 179 | 179 | ); |
| 180 | 180 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | { |
| 206 | 206 | return $type instanceof OutputType && |
| 207 | 207 | ( |
| 208 | - ! $type instanceof WrappingType || |
|
| 208 | + !$type instanceof WrappingType || |
|
| 209 | 209 | self::getNamedType($type) instanceof OutputType |
| 210 | 210 | ); |
| 211 | 211 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | 'is also used as an input type, ensure "parseValue" and "parseLiteral" ' . |
| 66 | 66 | 'functions are also provided.' |
| 67 | 67 | ); |
| 68 | - if (! isset($this->config['parseValue']) && ! isset($this->config['parseLiteral'])) { |
|
| 68 | + if (!isset($this->config['parseValue']) && !isset($this->config['parseLiteral'])) { |
|
| 69 | 69 | return; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | if ($value === null) { |
| 45 | 45 | return 'null'; |
| 46 | 46 | } |
| 47 | - if (! is_scalar($value) && (! is_object($value) || ! method_exists($value, '__toString'))) { |
|
| 47 | + if (!is_scalar($value) && (!is_object($value) || !method_exists($value, '__toString'))) { |
|
| 48 | 48 | throw new Error('ID type cannot represent non scalar value: ' . Utils::printSafe($value)); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $num = floatval($value); |
| 60 | - if ((! is_numeric($value) && ! is_bool($value)) || $num > self::MAX_INT || $num < self::MIN_INT) { |
|
| 60 | + if ((!is_numeric($value) && !is_bool($value)) || $num > self::MAX_INT || $num < self::MIN_INT) { |
|
| 61 | 61 | throw new Error( |
| 62 | 62 | 'Int cannot represent non 32-bit signed integer value: ' . |
| 63 | 63 | Utils::printSafe($value) |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public static function assertNullableType($type) |
| 32 | 32 | { |
| 33 | 33 | Utils::invariant( |
| 34 | - Type::isType($type) && ! $type instanceof self, |
|
| 34 | + Type::isType($type) && !$type instanceof self, |
|
| 35 | 35 | 'Expected ' . Utils::printSafe($type) . ' to be a GraphQL nullable type.' |
| 36 | 36 | ); |
| 37 | 37 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function __construct(array $config) |
| 34 | 34 | { |
| 35 | - if (! isset($config['name'])) { |
|
| 35 | + if (!isset($config['name'])) { |
|
| 36 | 36 | $config['name'] = $this->tryInferName(); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $resolveType = $this->config['resolveType'] ?? null; |
| 115 | 115 | |
| 116 | 116 | Utils::invariant( |
| 117 | - ! isset($resolveType) || is_callable($resolveType), |
|
| 117 | + !isset($resolveType) || is_callable($resolveType), |
|
| 118 | 118 | sprintf( |
| 119 | 119 | '%s must provide "resolveType" as a function, but got: %s', |
| 120 | 120 | $this->name, |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | { |
| 75 | 75 | $map = []; |
| 76 | 76 | foreach ($config as $name => $argConfig) { |
| 77 | - if (! is_array($argConfig)) { |
|
| 77 | + if (!is_array($argConfig)) { |
|
| 78 | 78 | $argConfig = ['type' => $argConfig]; |
| 79 | 79 | } |
| 80 | 80 | $map[] = new self($argConfig + ['name' => $name]); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | if (is_object($value) && method_exists($value, '__toString')) { |
| 47 | 47 | return (string) $value; |
| 48 | 48 | } |
| 49 | - if (! is_scalar($value)) { |
|
| 49 | + if (!is_scalar($value)) { |
|
| 50 | 50 | throw new Error('String cannot represent non scalar value: ' . Utils::printSafe($value)); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | ); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - if (! is_numeric($value) && $value !== true && $value !== false) { |
|
| 46 | + if (!is_numeric($value) && $value !== true && $value !== false) { |
|
| 47 | 47 | throw new Error( |
| 48 | 48 | 'Float cannot represent non numeric value: ' . |
| 49 | 49 | Utils::printSafe($value) |