Completed
Push — master ( f1bb68...f91685 )
by Alexandr
03:16
created
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
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.