@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | public function assertValidConfig(AbstractConfig $config): void |
| 63 | 63 | { |
| 64 | 64 | if (!$this->isValidConfig($config)) { |
| 65 | - throw new ConfigurationException('Config is not valid for ' . ($config->getContextObject() ? \get_class($config->getContextObject()) : null) . "\n" . \implode("\n", $this->getErrorsArray(false))); |
|
| 65 | + throw new ConfigurationException('Config is not valid for '.($config->getContextObject() ? \get_class($config->getContextObject()) : null)."\n".\implode("\n", $this->getErrorsArray(false))); |
|
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 01.12.15. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 01.12.15. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 03.11.16. |
| 15 | 15 | */ |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | /** @var AbstractObjectType $objectType */ |
| 54 | 54 | if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) { |
| 55 | - $availableFieldNames = \implode(', ', \array_map(static function (FieldInterface $field) { |
|
| 55 | + $availableFieldNames = \implode(', ', \array_map(static function(FieldInterface $field) { |
|
| 56 | 56 | return \sprintf('"%s"', $field->getName()); |
| 57 | 57 | }, $objectType->getFields())); |
| 58 | 58 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | public function assertValidArguments(FieldInterface $field, AstFieldInterface $query, Request $request): void |
| 64 | 64 | { |
| 65 | - $requiredArguments = \array_filter($field->getArguments(), static function (InputField $argument) { |
|
| 65 | + $requiredArguments = \array_filter($field->getArguments(), static function(InputField $argument) { |
|
| 66 | 66 | return TypeMap::KIND_NON_NULL === $argument->getType()->getKind(); |
| 67 | 67 | }); |
| 68 | 68 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 16.11.16. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 23.11.15. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | |
| 243 | 243 | protected function findVariable($name) |
| 244 | 244 | { |
| 245 | - foreach ((array) $this->data['variables'] as $variable) { |
|
| 245 | + foreach ((array)$this->data['variables'] as $variable) { |
|
| 246 | 246 | /** @var $variable Variable */ |
| 247 | 247 | if ($variable->getName() === $name) { |
| 248 | 248 | return $variable; |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | |
| 482 | 482 | protected function matchMulti($types) |
| 483 | 483 | { |
| 484 | - foreach ((array) $types as $type) { |
|
| 484 | + foreach ((array)$types as $type) { |
|
| 485 | 485 | if ($this->peek()->getType() === $type) { |
| 486 | 486 | return true; |
| 487 | 487 | } |