Code Duplication    Length = 8-8 lines in 2 locations

src/Resource/LinkResource.php 1 location

@@ 67-74 (lines=8) @@
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function getChild($relPath)
68
    {
69
        if (!$this->getRepository()) {
70
            throw ResourceNotFoundException::forPath($this->getTargetPath().'/'.$relPath);
71
        }
72
73
        return $this->getRepository()->get($this->getTargetPath().'/'.$relPath);
74
    }
75
76
    /**
77
     * {@inheritdoc}

src/Resource/GenericResource.php 1 location

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