@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Date: 29.02.16 |
|
4 | - * |
|
5 | - * @author Portey Vasil <[email protected]> |
|
6 | - */ |
|
3 | + * Date: 29.02.16 |
|
4 | + * |
|
5 | + * @author Portey Vasil <[email protected]> |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace Youshido\GraphQL\Parser\Exception; |
9 | 9 |
@@ -27,11 +27,11 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function validateArguments($field, $query, $request) |
29 | 29 | { |
30 | - $requiredArguments = array_filter($field->getConfig()->getArguments(), function (InputField $argument) { |
|
30 | + $requiredArguments = array_filter($field->getConfig()->getArguments(), function(InputField $argument) { |
|
31 | 31 | return $argument->getConfig()->get('required'); |
32 | 32 | }); |
33 | 33 | |
34 | - $withDefaultArguments = array_filter($field->getConfig()->getArguments(), function (InputField $argument) { |
|
34 | + $withDefaultArguments = array_filter($field->getConfig()->getArguments(), function(InputField $argument) { |
|
35 | 35 | return $argument->getConfig()->get('default') !== null; |
36 | 36 | }); |
37 | 37 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** @var Variable $variable */ |
49 | 49 | $variable = $argument->getValue(); |
50 | 50 | |
51 | - if($variable->getType() !== $argumentType->getName()) { |
|
51 | + if ($variable->getType() !== $argumentType->getName()) { |
|
52 | 52 | $this->addError(new ResolveException(sprintf('Invalid variable "%s" type, allowed type is "%s"', $variable->getName(), $argumentType->getName()))); |
53 | 53 | |
54 | 54 | return false; |