Completed
Push — master ( cbc061...c7f3c1 )
by Alexandr
03:31
created
src/Processor.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,9 @@  discard block
 block discarded – undo
84 84
         if (!$this->getSchema()) {
85 85
             $this->addError(new ConfigurationException('You have to set GraphQL Schema to process'));
86 86
         }
87
-        if (empty($payload) || $this->hasErrors()) return $this;
87
+        if (empty($payload) || $this->hasErrors()) {
88
+            return $this;
89
+        }
88 90
 
89 91
         $this->data = [];
90 92
 
@@ -160,7 +162,9 @@  discard block
 block discarded – undo
160 162
      */
161 163
     protected function executeMutation(Mutation $mutation, $currentLevelSchema)
162 164
     {
163
-        if (!$currentLevelSchema) throw new ConfigurationException('There is no mutation ' . $mutation->getName());
165
+        if (!$currentLevelSchema) {
166
+            throw new ConfigurationException('There is no mutation ' . $mutation->getName());
167
+        }
164 168
 
165 169
         if (!$this->resolveValidator->checkFieldExist($currentLevelSchema, $mutation)) {
166 170
             return null;
Please login to merge, or discard this patch.