Completed
Push — master ( 5bf303...8cd23b )
by Portey
03:14
created
src/Parser/Exception/VariableTypeNotDefined.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.