Code Duplication    Length = 12-12 lines in 2 locations

src/Sulu/Bundle/PageBundle/Search/Metadata/StructureProvider.php 2 locations

@@ 420-431 (lines=12) @@
417
        return $field;
418
    }
419
420
    private function mapTeaserDescription(PropertyMetadata $property, IndexMetadata $metadata)
421
    {
422
        $metadata->addFieldMapping(
423
            self::FIELD_TEASER_DESCRIPTION,
424
            [
425
                'type' => 'string',
426
                'field' => $this->getContentField($property),
427
                'aggregate' => true,
428
                'indexed' => false,
429
            ]
430
        );
431
    }
432
433
    private function mapTeaserMedia(PropertyMetadata $property, IndexMetadata $metadata)
434
    {
@@ 433-444 (lines=12) @@
430
        );
431
    }
432
433
    private function mapTeaserMedia(PropertyMetadata $property, IndexMetadata $metadata)
434
    {
435
        $metadata->addFieldMapping(
436
            self::FIELD_TEASER_MEDIA,
437
            [
438
                'type' => 'json',
439
                'field' => $this->getContentField($property),
440
                'aggregate' => true,
441
                'indexed' => false,
442
            ]
443
        );
444
    }
445
446
    private function createIndexNameField(Metadata $documentMetadata, $indexName, $decorate)
447
    {