@@ -84,7 +84,9 @@ discard block |
||
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 |
||
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; |