Code Duplication    Length = 11-11 lines in 2 locations

src/FilesystemRepository.php 2 locations

@@ 149-159 (lines=11) @@
146
    /**
147
     * {@inheritdoc}
148
     */
149
    public function get($path)
150
    {
151
        $path = $this->sanitizePath($path);
152
        $filesystemPath = $this->baseDir.$path;
153
154
        if (!file_exists($filesystemPath)) {
155
            throw ResourceNotFoundException::forPath($path);
156
        }
157
158
        return $this->createResource($filesystemPath, $path);
159
    }
160
161
    /**
162
     * {@inheritdoc}
@@ 445-455 (lines=11) @@
442
        return new FilesystemResourceCollection($resources);
443
    }
444
445
    private function getFilesystemPath($path)
446
    {
447
        $path = $this->sanitizePath($path);
448
        $filesystemPath = $this->baseDir.$path;
449
450
        if (!file_exists($filesystemPath)) {
451
            throw ResourceNotFoundException::forPath($path);
452
        }
453
454
        return $filesystemPath;
455
    }
456
457
    private function getGlobIterator($query, $language)
458
    {