Code Duplication    Length = 8-8 lines in 2 locations

src/Graviton/SchemaBundle/SchemaUtils.php 2 locations

@@ 276-283 (lines=8) @@
273
                    }
274
                }
275
                $property->setRefCollection($urls);
276
            } elseif ($meta->getTypeOfField($field) === 'collection') {
277
                $itemSchema = new Schema();
278
                $property->setType('array');
279
                $itemSchema->setType($this->getCollectionItemType($meta->name, $field));
280
281
                $property->setItems($itemSchema);
282
                $property->setFormat(null);
283
            } elseif ($meta->getTypeOfField($field) === 'datearray') {
284
                $itemSchema = new Schema();
285
                $property->setType('array');
286
                $itemSchema->setType('string');
@@ 291-298 (lines=8) @@
288
289
                $property->setItems($itemSchema);
290
                $property->setFormat(null);
291
            } elseif ($meta->getTypeOfField($field) === 'hasharray') {
292
                $itemSchema = new Schema();
293
                $itemSchema->setType('object');
294
295
                $property->setType('array');
296
                $property->setItems($itemSchema);
297
                $property->setFormat(null);
298
            }
299
            $schema->addProperty($documentFieldNames[$field], $property);
300
        }
301