Completed
Pull Request — master (#691)
by Han Hui
05:00
created
src/Swagger/Serializer/DocumentationNormalizer.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -314,8 +314,7 @@  discard block
 block discarded – undo
314 314
         $valueType = $type->isCollection() ? $type->getCollectionValueType() : $type;
315 315
 
316 316
         switch ($valueType ? $valueType->getBuiltinType() : null) {
317
-            case Type::BUILTIN_TYPE_STRING:
318
-                $valueSchema['type'] = 'string';
317
+            case Type::BUILTIN_TYPE_STRING : $valueSchema['type'] = 'string';
319 318
                 break;
320 319
 
321 320
             case Type::BUILTIN_TYPE_INT:
@@ -363,7 +362,7 @@  discard block
 block discarded – undo
363 362
             $propertySchema['type'] = 'array';
364 363
             $propertySchema['items'] = $valueSchema;
365 364
         } else {
366
-            $propertySchema = new \ArrayObject(array_merge((array)$propertySchema, (array) $valueSchema));
365
+            $propertySchema = new \ArrayObject(array_merge((array) $propertySchema, (array) $valueSchema));
367 366
         }
368 367
 
369 368
         return $propertySchema;
Please login to merge, or discard this patch.