Code Duplication    Length = 14-16 lines in 2 locations

eZ/Publish/Core/Repository/Repository.php 2 locations

@@ 603-618 (lines=16) @@
600
     *
601
     * @return \eZ\Publish\API\Repository\ContentTypeService
602
     */
603
    public function getContentTypeService()
604
    {
605
        if ($this->contentTypeService !== null) {
606
            return $this->contentTypeService;
607
        }
608
609
        $this->contentTypeService = new ContentTypeService(
610
            $this,
611
            $this->persistenceHandler->contentTypeHandler(),
612
            $this->getDomainMapper(),
613
            $this->getFieldTypeRegistry(),
614
            $this->serviceSettings['contentType']
615
        );
616
617
        return $this->contentTypeService;
618
    }
619
620
    /**
621
     * Get Content Location Service.
@@ 890-903 (lines=14) @@
887
     *
888
     * @return \eZ\Publish\Core\Repository\Helper\NameSchemaService
889
     */
890
    public function getNameSchemaService()
891
    {
892
        if ($this->nameSchemaService !== null) {
893
            return $this->nameSchemaService;
894
        }
895
896
        $this->nameSchemaService = new Helper\NameSchemaService(
897
            $this->persistenceHandler->contentTypeHandler(),
898
            $this->getFieldTypeRegistry(),
899
            $this->serviceSettings['nameSchema']
900
        );
901
902
        return $this->nameSchemaService;
903
    }
904
905
    /**
906
     * Get RelationProcessor.