@@ -62,11 +62,11 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | if (!count($field->getArguments())) return true; |
| 64 | 64 | |
| 65 | - $requiredArguments = array_filter($field->getArguments(), function (InputField $argument) { |
|
| 65 | + $requiredArguments = array_filter($field->getArguments(), function(InputField $argument) { |
|
| 66 | 66 | return $argument->getType()->getKind() == TypeMap::KIND_NON_NULL; |
| 67 | 67 | }); |
| 68 | 68 | |
| 69 | - $withDefaultArguments = array_filter($field->getArguments(), function (InputField $argument) { |
|
| 69 | + $withDefaultArguments = array_filter($field->getArguments(), function(InputField $argument) { |
|
| 70 | 70 | return $argument->getConfig()->get('default') !== null; |
| 71 | 71 | }); |
| 72 | 72 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | if (!$originalArgumentType instanceof AbstractListType) { |
| 108 | 108 | $values = [$values]; |
| 109 | 109 | } |
| 110 | - foreach($values as $value) { |
|
| 110 | + foreach ($values as $value) { |
|
| 111 | 111 | if (!$argumentType->isValidValue($argumentType->parseValue($value))) { |
| 112 | 112 | $this->executionContext->addError(new ResolveException(sprintf('Not valid type for argument "%s" in query "%s"', $argument->getName(), $field->getName()))); |
| 113 | 113 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public function assertTypeImplementsInterface(AbstractType $type, AbstractInterfaceType $interface) |
| 142 | 142 | { |
| 143 | 143 | if (!$interface->isValidValue($type)) { |
| 144 | - throw new ResolveException('Type ' . $type->getName() . ' does not implement ' . $interface->getName()); |
|
| 144 | + throw new ResolveException('Type '.$type->getName().' does not implement '.$interface->getName()); |
|
| 145 | 145 | } |
| 146 | 146 | } |
| 147 | 147 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | if (!$valid) { |
| 163 | - throw new ResolveException('Type ' . $type->getName() . ' not exist in types of ' . $unionType->getName()); |
|
| 163 | + throw new ResolveException('Type '.$type->getName().' not exist in types of '.$unionType->getName()); |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | |