Completed
Pull Request — master (#155)
by
unknown
02:57
created
src/Type/NonNullType.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             return false;
60 60
         }
61 61
         else {
62
-          $this->lastError = null;
62
+            $this->lastError = null;
63 63
         }
64 64
 
65 65
         return $this->getNullableType()->isValidValue($value);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
         if ($value === null) {
58 58
             $this->lastError = sprintf('Field "%s" must not be NULL', $this->getName());
59 59
             return false;
60
-        }
61
-        else {
60
+        } else {
62 61
           $this->lastError = null;
63 62
         }
64 63
 
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
                 case TypeMap::KIND_INPUT_OBJECT:
52 52
                 case TypeMap::KIND_LIST:
53 53
                     if (!$argument->getType()->isValidValue($astArgument->getValue())) {
54
-                      $error = $argument->getType()->getLastError() ?: '(no details available)';
55
-                      throw new ResolveException(sprintf('Not valid type for argument "%s" in query "%s": %s', $astArgument->getName(), $field->getName(), $error), $astArgument->getLocation());
54
+                        $error = $argument->getType()->getLastError() ?: '(no details available)';
55
+                        throw new ResolveException(sprintf('Not valid type for argument "%s" in query "%s": %s', $astArgument->getName(), $field->getName(), $error), $astArgument->getLocation());
56 56
                     }
57 57
 
58 58
                     break;
Please login to merge, or discard this patch.