Code Duplication    Length = 8-8 lines in 3 locations

lib/Installer.php 3 locations

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