@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | $value->format(self::FORMAT); |
| 28 | 28 | |
| 29 | - $timeZoneInHours = (float)substr($value->getTimezone()->getName(), 0, 3); |
|
| 29 | + $timeZoneInHours = (float) substr($value->getTimezone()->getName(), 0, 3); |
|
| 30 | 30 | |
| 31 | 31 | $value->addHours($timeZoneInHours); |
| 32 | 32 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function parseLiteral($valueNode, array $variables = null) |
| 52 | 52 | { |
| 53 | - if (! $valueNode instanceof StringValueNode) { |
|
| 53 | + if (!$valueNode instanceof StringValueNode) { |
|
| 54 | 54 | throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, [$valueNode]); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $argument = $this->injectFilter( |
| 18 | 18 | $argument, |
| 19 | - function (Builder $builder, string $key, array $arguments): Builder { |
|
| 19 | + function(Builder $builder, string $key, array $arguments): Builder { |
|
| 20 | 20 | $value = $arguments[$key]; |
| 21 | 21 | $field = \preg_replace(sprintf('/%s$/', $this->getSuffix()), '', $key); |
| 22 | 22 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | ); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - if (! file_exists($path)) { |
|
| 145 | + if (!file_exists($path)) { |
|
| 146 | 146 | throw new InvalidConfigurationException( |
| 147 | 147 | sprintf('The "schema_paths" config value for key "%s" contains a path that does not exist', $key) |
| 148 | 148 | ); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | { |
| 167 | 167 | resolve('events')->listen( |
| 168 | 168 | BuildingAST::class, |
| 169 | - function () use ($definitionFileDirectories) { |
|
| 169 | + function() use ($definitionFileDirectories) { |
|
| 170 | 170 | $typeDefinitionPaths = $this->definitionsParser->getGraphqlDefinitionFilePaths( |
| 171 | 171 | $definitionFileDirectories['types'] |
| 172 | 172 | ); |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * @var ObjectType $type |
| 223 | 223 | */ |
| 224 | 224 | foreach ($schema->getTypeMap() as $typeName => $type) { |
| 225 | - if (! in_array($typeName, $definedTypes) || ! method_exists($type, 'getFields')) { |
|
| 225 | + if (!in_array($typeName, $definedTypes) || !method_exists($type, 'getFields')) { |
|
| 226 | 226 | continue; |
| 227 | 227 | } |
| 228 | 228 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | $graphQLType->config['generator-required'] = true; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | - if (! in_array(get_class($graphQLType), $this->supportedGraphQLTypes)) { |
|
| 246 | + if (!in_array(get_class($graphQLType), $this->supportedGraphQLTypes)) { |
|
| 247 | 247 | continue; |
| 248 | 248 | }; |
| 249 | 249 | |
@@ -276,12 +276,12 @@ discard block |
||
| 276 | 276 | foreach ($definedTypes as $typeName => $type) { |
| 277 | 277 | $paginateAndAllQuery = PaginateAllQueryGenerator::generate($typeName, $type); |
| 278 | 278 | |
| 279 | - if (! empty($paginateAndAllQuery)) { |
|
| 279 | + if (!empty($paginateAndAllQuery)) { |
|
| 280 | 280 | $queries[] = $paginateAndAllQuery; |
| 281 | 281 | } |
| 282 | 282 | $findQuery = FindQueryGenerator::generate($typeName, $type); |
| 283 | 283 | |
| 284 | - if (! empty($findQuery)) { |
|
| 284 | + if (!empty($findQuery)) { |
|
| 285 | 285 | $queries[] = $findQuery; |
| 286 | 286 | } |
| 287 | 287 | |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | $deleteMutation = DeleteMutationGenerator::generate($typeName, $type); |
| 301 | - if (! empty($deleteMutation)) { |
|
| 301 | + if (!empty($deleteMutation)) { |
|
| 302 | 302 | $mutations[] = $deleteMutation; |
| 303 | 303 | } |
| 304 | 304 | } |