@@ -22,7 +22,7 @@ |
||
| 22 | 22 | public function resolve(mixed $argument): array |
| 23 | 23 | { |
| 24 | 24 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
| 25 | - if (! isset($this->queue)) { |
|
| 25 | + if (!isset($this->queue)) { |
|
| 26 | 26 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function resolve(mixed $type): Webonyx\Type |
| 24 | 24 | { |
| 25 | 25 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
| 26 | - if (! isset($this->queue)) { |
|
| 26 | + if (!isset($this->queue)) { |
|
| 27 | 27 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function resolve(mixed $field): Webonyx\InputObjectField |
| 24 | 24 | { |
| 25 | 25 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
| 26 | - if (! isset($this->queue)) { |
|
| 26 | + if (!isset($this->queue)) { |
|
| 27 | 27 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function resolve(mixed $field): Webonyx\FieldDefinition |
| 24 | 24 | { |
| 25 | 25 | /** @psalm-suppress RedundantPropertyInitializationCheck */ |
| 26 | - if (! isset($this->queue)) { |
|
| 26 | + if (!isset($this->queue)) { |
|
| 27 | 27 | throw new NextHandlerIsEmptyException('Cannot invoke pipeline resolver more than once'); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -27,5 +27,5 @@ |
||
| 27 | 27 | exit(255); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | -$code = (int)$app->serve(); |
|
| 30 | +$code = (int) $app->serve(); |
|
| 31 | 31 | exit($code); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | // is running in the console. |
| 40 | 40 | $this->handler->addRenderer(new ConsoleRenderer()); |
| 41 | 41 | |
| 42 | - $kernel->running(function (): void { |
|
| 42 | + $kernel->running(function(): void { |
|
| 43 | 43 | // Register the JSON renderer, that will be used when the application is |
| 44 | 44 | // running in the HTTP context and a JSON response is expected. |
| 45 | 45 | $this->handler->addRenderer(new JsonRenderer()); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * @link https://spiral.dev/docs/basics-session |
| 11 | 11 | */ |
| 12 | 12 | return [ |
| 13 | - 'lifetime' => (int)env('SESSION_LIFETIME', 86400), |
|
| 13 | + 'lifetime' => (int) env('SESSION_LIFETIME', 86400), |
|
| 14 | 14 | 'cookie' => env('SESSION_COOKIE', 'sid'), |
| 15 | 15 | 'secure' => true, |
| 16 | 16 | 'sameSite' => null, |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | FileHandler::class, |
| 19 | 19 | [ |
| 20 | 20 | 'directory' => directory('runtime') . 'session', |
| 21 | - 'lifetime' => (int)env('SESSION_LIFETIME', 86400), |
|
| 21 | + 'lifetime' => (int) env('SESSION_LIFETIME', 86400), |
|
| 22 | 22 | ] |
| 23 | 23 | ), |
| 24 | 24 | ]; |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | public function process(mixed $field, InputObjectFieldResolverInterface $fieldResolver): Webonyx\InputObjectField |
| 34 | 34 | { |
| 35 | - if (! $field instanceof ReflectionMethod) { |
|
| 35 | + if (!$field instanceof ReflectionMethod) { |
|
| 36 | 36 | return $fieldResolver->resolve($field); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | $parameter = $parameters[0]; |
| 93 | 93 | |
| 94 | - if (! $parameter->hasType()) { |
|
| 94 | + if (!$parameter->hasType()) { |
|
| 95 | 95 | throw new CantResolveGraphQLTypeException(\sprintf( |
| 96 | 96 | 'Can\'t resolve GraphQL type "%s" for field "%s". Parameter has no type.', |
| 97 | 97 | $method->getDeclaringClass()->getName(), |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function process(mixed $field, InputObjectFieldResolverInterface $fieldResolver): Webonyx\InputObjectField |
| 31 | 31 | { |
| 32 | - if (! $field instanceof ReflectionProperty) { |
|
| 32 | + if (!$field instanceof ReflectionProperty) { |
|
| 33 | 33 | return $fieldResolver->resolve($field); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | return new LazyParserType($attribute->type, $attribute->mode ?? 0, $this->typeRegistry); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - if (! $property->hasType()) { |
|
| 86 | + if (!$property->hasType()) { |
|
| 87 | 87 | throw new CantResolveGraphQLTypeException(\sprintf( |
| 88 | 88 | 'Can\'t resolve GraphQL type for field "%s"', |
| 89 | 89 | $property->getName() |