Completed
Push — master ( f1bb68...f91685 )
by Alexandr
03:16
created
src/Validator/ResolveValidator/ResolveValidator.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
     {
62 62
         if (!count($field->getArguments())) return true;
63 63
 
64
-        $requiredArguments = array_filter($field->getArguments(), function (InputField $argument) {
64
+        $requiredArguments = array_filter($field->getArguments(), function(InputField $argument) {
65 65
             return $argument->getType()->getKind() == TypeMap::KIND_NON_NULL;
66 66
         });
67 67
 
68
-        $withDefaultArguments = array_filter($field->getArguments(), function (InputField $argument) {
68
+        $withDefaultArguments = array_filter($field->getArguments(), function(InputField $argument) {
69 69
             return $argument->getConfig()->get('default') !== null;
70 70
         });
71 71
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public function assertTypeImplementsInterface(AbstractType $type, AbstractInterfaceType $interface)
134 134
     {
135 135
         if (!$interface->isValidValue($type)) {
136
-            throw new ResolveException('Type ' . $type->getName() . ' does not implement ' . $interface->getName());
136
+            throw new ResolveException('Type '.$type->getName().' does not implement '.$interface->getName());
137 137
         }
138 138
     }
139 139
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         if (!$valid) {
155
-            throw new ResolveException('Type ' . $type->getName() . ' not exist in types of ' . $unionType->getName());
155
+            throw new ResolveException('Type '.$type->getName().' not exist in types of '.$unionType->getName());
156 156
         }
157 157
     }
158 158
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param AbstractObjectType      $objectType
45
-     * @param Mutation|Query|AstField $field
46
-     * @return null
45
+     * @param AstField $field
46
+     * @return boolean
47 47
      */
48 48
     public function objectHasField($objectType, $field)
49 49
     {
@@ -58,6 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * @inheritdoc
61
+     * @param Query $query
61 62
      */
62 63
     public function validateArguments(AbstractField $field, $query, Request $request)
63 64
     {
Please login to merge, or discard this patch.