Code Duplication    Length = 3-3 lines in 2 locations

src/MagentoHackathon/Composer/Magento/Repository/InstalledPackageFileSystemRepository.php 2 locations

@@ 50-52 (lines=3) @@
47
     */
48
    public function __construct($filePath, InstalledPackageDumper $dumper)
49
    {
50
        if (file_exists($filePath) && !is_writable($filePath)) {
51
            throw new \InvalidArgumentException(sprintf('File "%s" is not writable', $filePath));
52
        }
53
54
        if (file_exists($filePath) && !is_readable($filePath)) {
55
            throw new \InvalidArgumentException(sprintf('File "%s" is not readable', $filePath));
@@ 58-60 (lines=3) @@
55
            throw new \InvalidArgumentException(sprintf('File "%s" is not readable', $filePath));
56
        }
57
58
        if (!file_exists($filePath) && !is_writable(dirname($filePath))) {
59
            throw new \InvalidArgumentException(sprintf('Directory "%s" is not writable', dirname($filePath)));
60
        }
61
62
        $this->filePath = $filePath;
63
        $this->dumper = $dumper;