Code Duplication    Length = 8-8 lines in 2 locations

src/Resource/GenericResource.php 1 location

@@ 74-81 (lines=8) @@
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public function getChild($relPath)
75
    {
76
        if (!$this->getRepository()) {
77
            throw ResourceNotFoundException::forPath($this->getRepositoryPath().'/'.$relPath);
78
        }
79
80
        return $this->getRepository()->get($this->getRepositoryPath().'/'.$relPath);
81
    }
82
83
    /**
84
     * {@inheritdoc}

src/Resource/LinkResource.php 1 location

@@ 83-90 (lines=8) @@
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function getChild($relPath)
84
    {
85
        if (!$this->getRepository()) {
86
            throw ResourceNotFoundException::forPath($this->getTargetPath().'/'.$relPath);
87
        }
88
89
        return $this->getRepository()->get($this->getTargetPath().'/'.$relPath);
90
    }
91
92
    /**
93
     * {@inheritdoc}