Code Duplication    Length = 7-7 lines in 3 locations

src/Installer.php 3 locations

@@ 636-642 (lines=7) @@
633
        }
634
635
        foreach ($argv as $key => $val) {
636
            if (0 === strpos($val, '--install-dir')) {
637
                if (13 === strlen($val) && isset($argv[$key + 1])) {
638
                    $this->installDir = trim($argv[$key + 1]);
639
                } else {
640
                    $this->installDir = trim(substr($val, 14));
641
                }
642
            }
643
644
            if (0 === strpos($val, '--version')) {
645
                if (9 === strlen($val) && isset($argv[$key + 1])) {
@@ 644-650 (lines=7) @@
641
                }
642
            }
643
644
            if (0 === strpos($val, '--version')) {
645
                if (9 === strlen($val) && isset($argv[$key + 1])) {
646
                    $this->version = trim($argv[$key + 1]);
647
                } else {
648
                    $this->version = trim(substr($val, 10));
649
                }
650
            }
651
652
            if (0 === strpos($val, '--filename')) {
653
                if (10 === strlen($val) && isset($argv[$key + 1])) {
@@ 652-658 (lines=7) @@
649
                }
650
            }
651
652
            if (0 === strpos($val, '--filename')) {
653
                if (10 === strlen($val) && isset($argv[$key + 1])) {
654
                    $this->filename = trim($argv[$key + 1]);
655
                } else {
656
                    $this->filename = trim(substr($val, 11));
657
                }
658
            }
659
        }
660
    }
661