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
                // php install.php -t application/tests
63
                case '-t':
64
                    if (is_dir($argv[$i+1])) {
@@ 63-70 (lines=8) @@
60
                    $i++;
61
                    break;
62
                // php install.php -t application/tests
63
                case '-t':
64
                    if (is_dir($argv[$i+1])) {
65
                        $this->test_dir = $argv[$i+1];
66
                    } else {
67
                        throw new Exception('No such test directory: '.$argv[$i+1]);
68
                    }
69
                    $i++;
70
                    break;
71
72
                case '--from-composer':
73
                    $this->from_composer = true;