Code Duplication    Length = 8-8 lines in 3 locations

lib/Installer.php 3 locations

@@ 48-55 (lines=8) @@
45
                    break;
46
47
                // php install.php -a application
48
                case '-a':
49
                    if (is_dir($argv[$i+1])) {
50
                        $this->app_dir = $argv[$i+1];
51
                    } else {
52
                        throw new Exception('No such application directory: '.$argv[$i+1]);
53
                    }
54
                    $i++;
55
                    break;
56
57
                // php install.php -p public
58
                case '-p':
@@ 58-65 (lines=8) @@
55
                    break;
56
57
                // php install.php -p public
58
                case '-p':
59
                    if (is_dir($argv[$i+1])) {
60
                        $this->pub_dir = $argv[$i+1];
61
                    } else {
62
                        throw new Exception('No such public directory: '.$argv[$i+1]);
63
                    }
64
                    $i++;
65
                    break;
66
67
                // php install.php -t application/tests
68
                case '-t':
@@ 68-75 (lines=8) @@
65
                    break;
66
67
                // php install.php -t application/tests
68
                case '-t':
69
                    if (is_dir($argv[$i+1])) {
70
                        $this->test_dir = $argv[$i+1];
71
                    } else {
72
                        throw new Exception('No such test directory: '.$argv[$i+1]);
73
                    }
74
                    $i++;
75
                    break;
76
77
                case '--from-composer':
78
                    $this->from_composer = true;