Code Duplication    Length = 8-8 lines in 3 locations

lib/Installer.php 3 locations

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