@@ -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 | |
@@ -89,11 +89,11 @@ discard block |
||
| 89 | 89 | return $this; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
| 92 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
| 93 | 93 | { |
| 94 | 94 | $fieldName = $field['name'] ?? $name; |
| 95 | 95 | |
| 96 | - if (! is_string($fieldName)) { |
|
| 96 | + if (!is_string($fieldName)) { |
|
| 97 | 97 | throw new CantResolveObjectFieldException( |
| 98 | 98 | 'Can\'t resolve ObjectField: wrong configuration - undefined name', |
| 99 | 99 | ); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | return $this->makeObjectField($fieldName, ['type' => $field]); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
| 106 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
| 107 | 107 | throw new CantResolveObjectFieldException( |
| 108 | 108 | 'Can\'t resolve ObjectField: wrong configuration - undefined type', |
| 109 | 109 | ); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | if (is_array($callable)) { |
| 180 | - if (! isset($callable[0], $callable[1])) { |
|
| 180 | + if (!isset($callable[0], $callable[1])) { |
|
| 181 | 181 | throw new CantResolveObjectFieldException(sprintf( |
| 182 | 182 | 'Can\'t resolve ObjectField: wrong configuration - %s must be callable', |
| 183 | 183 | $option |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | return $this; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - private function getObjectField(int|string $name, string|array $field): AbstractObjectField |
|
| 76 | + private function getObjectField(int | string $name, string | array $field): AbstractObjectField |
|
| 77 | 77 | { |
| 78 | 78 | $fieldName = $field['name'] ?? $name; |
| 79 | 79 | |
| 80 | - if (! is_string($fieldName)) { |
|
| 80 | + if (!is_string($fieldName)) { |
|
| 81 | 81 | throw new CantResolveObjectFieldException( |
| 82 | 82 | 'Can\'t resolve ObjectField: wrong configuration - undefined name', |
| 83 | 83 | ); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | return $this->makeObjectField($fieldName, ['type' => $field]); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if (! isset($field['type']) || ! is_string($field['type'])) { |
|
| 90 | + if (!isset($field['type']) || !is_string($field['type'])) { |
|
| 91 | 91 | throw new CantResolveObjectFieldException( |
| 92 | 92 | 'Can\'t resolve ObjectField: wrong configuration - undefined type', |
| 93 | 93 | ); |
@@ -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 | ]; |