Code Duplication    Length = 11-11 lines in 2 locations

src/MageDownload/Command/DownloadCommand.php 2 locations

@@ 247-257 (lines=11) @@
244
        return array_values(array_unique($matches));
245
    }
246
247
    protected function getVersionsByType($type)
248
    {
249
        $matches = array();
250
        foreach ($this->downloads as $download) {
251
            if ($download['File Type'] === $type) {
252
                $matches[] = $download['Version'];
253
            }
254
        }
255
256
        return array_values(array_unique($matches));
257
    }
258
259
    protected function getFilesByTypeAndVersion($type, $version)
260
    {
@@ 259-269 (lines=11) @@
256
        return array_values(array_unique($matches));
257
    }
258
259
    protected function getFilesByTypeAndVersion($type, $version)
260
    {
261
        $matches = array();
262
        foreach ($this->downloads as $download) {
263
            if ($download['File Type'] === $type && $download['Version'] === $version) {
264
                $matches[] = $download['File Name'];
265
            }
266
        }
267
268
        return array_values(array_unique($matches));
269
    }
270
}
271