@@ -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.12.15. |
| 15 | 15 | */ |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | public function parseValue($value) |
| 83 | 83 | { |
| 84 | - foreach ((array) $value as $keyValue => $valueItem) { |
|
| 84 | + foreach ((array)$value as $keyValue => $valueItem) { |
|
| 85 | 85 | $value[$keyValue] = $this->getItemType()->parseValue($valueItem); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -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 @@ 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 | * |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $typeConfig = $this->getConfig(); |
| 77 | - $requiredFields = \array_filter($typeConfig->getFields(), static function (InputFieldInterface $field) { |
|
| 77 | + $requiredFields = \array_filter($typeConfig->getFields(), static function(InputFieldInterface $field) { |
|
| 78 | 78 | return TypeMap::KIND_NON_NULL === $field->getType()->getKind(); |
| 79 | 79 | }); |
| 80 | 80 | |
@@ -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 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 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 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 project. |
| 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 | * |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | return $this->get(\lcfirst(\mb_substr($method, 2))); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - throw new \Exception('Call to undefined method ' . $method); |
|
| 82 | + throw new \Exception('Call to undefined method '.$method); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | public function validate(): void |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $validator = ConfigValidator::getInstance(); |
| 88 | 88 | |
| 89 | 89 | if (!$validator->validate($this->data, $this->getContextRules(), $this->extraFieldsAllowed)) { |
| 90 | - throw new ConfigurationException('Config is not valid for ' . ($this->contextObject ? \get_class($this->contextObject) : null) . "\n" . \implode("\n", $validator->getErrorsArray(false))); |
|
| 90 | + throw new ConfigurationException('Config is not valid for '.($this->contextObject ? \get_class($this->contextObject) : null)."\n".\implode("\n", $validator->getErrorsArray(false))); |
|
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |