Passed
Pull Request — master (#1554)
by
unknown
02:38
created
src/GraphNavigator/DeserializationGraphNavigator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -171,11 +171,11 @@  discard block
 block discarded – undo
171 171
                 $metadata = $this->metadataFactory->getMetadataForClass($type['name']);
172 172
                 \assert($metadata instanceof ClassMetadata);
173 173
 
174
-                if ($metadata->usingExpression && !$this->expressionExclusionStrategy) {
174
+                if ($metadata->usingExpression && ! $this->expressionExclusionStrategy) {
175 175
                     throw new ExpressionLanguageRequiredException(sprintf('To use conditional exclude/expose in %s you must configure the expression language.', $metadata->name));
176 176
                 }
177 177
 
178
-                if (!empty($metadata->discriminatorMap) && $type['name'] === $metadata->discriminatorBaseClass) {
178
+                if ( ! empty($metadata->discriminatorMap) && $type['name'] === $metadata->discriminatorBaseClass) {
179 179
                     $metadata = $this->resolveMetadata($data, $metadata);
180 180
                 }
181 181
 
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
                             $cloned = clone $propertyMetadata;
221 221
                             $cloned->setter = null;
222 222
                             $this->accessor->setValue($object, $cloned->defaultValue, $cloned, $this->context);
223
-                        } elseif (!$allowsNull && $this->context->getRequireAllRequiredProperties()) {
224
-                            throw new PropertyMissingException('Property ' . $propertyMetadata->name . ' is missing from data');
223
+                        } elseif ( ! $allowsNull && $this->context->getRequireAllRequiredProperties()) {
224
+                            throw new PropertyMissingException('Property '.$propertyMetadata->name.' is missing from data');
225 225
                         }
226 226
                     }
227 227
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     {
243 243
         $typeValue = $this->visitor->visitDiscriminatorMapProperty($data, $metadata);
244 244
 
245
-        if (!isset($metadata->discriminatorMap[$typeValue])) {
245
+        if ( ! isset($metadata->discriminatorMap[$typeValue])) {
246 246
             throw new LogicException(sprintf(
247 247
                 'The type value "%s" does not exist in the discriminator map of class "%s". Available types: %s',
248 248
                 $typeValue,
Please login to merge, or discard this patch.