@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | for ($i = 1; $i <= $argc; $i++) { |
32 | - if (! isset($argv[$i])) { |
|
32 | + if ( ! isset($argv[$i])) { |
|
33 | 33 | break; |
34 | 34 | } |
35 | 35 | |
@@ -41,20 +41,20 @@ discard block |
||
41 | 41 | |
42 | 42 | // php install.php -a application |
43 | 43 | case '-a': |
44 | - if (is_dir($argv[$i+1])) { |
|
45 | - $this->app_dir = $argv[$i+1]; |
|
44 | + if (is_dir($argv[$i + 1])) { |
|
45 | + $this->app_dir = $argv[$i + 1]; |
|
46 | 46 | } else { |
47 | - throw new Exception('No such directory: '.$argv[$i+1]); |
|
47 | + throw new Exception('No such directory: '.$argv[$i + 1]); |
|
48 | 48 | } |
49 | 49 | $i++; |
50 | 50 | break; |
51 | 51 | |
52 | 52 | // php install.php -p public |
53 | 53 | case '-p': |
54 | - if (is_dir($argv[$i+1])) { |
|
55 | - $this->pub_dir = $argv[$i+1]; |
|
54 | + if (is_dir($argv[$i + 1])) { |
|
55 | + $this->pub_dir = $argv[$i + 1]; |
|
56 | 56 | } else { |
57 | - throw new Exception('No such directory: '.$argv[$i+1]); |
|
57 | + throw new Exception('No such directory: '.$argv[$i + 1]); |
|
58 | 58 | } |
59 | 59 | $i++; |
60 | 60 | break; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $file = $this->app_dir.'/'.$this->test_dir.'/Bootstrap.php'; |
83 | 83 | $contents = file_get_contents($file); |
84 | 84 | |
85 | - if (! file_exists('system')) { |
|
85 | + if ( ! file_exists('system')) { |
|
86 | 86 | if (file_exists('vendor/codeigniter/framework/system')) { |
87 | 87 | $contents = str_replace( |
88 | 88 | '$system_path = \'../../system\';', |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
97 | - if (! file_exists('index.php')) { |
|
97 | + if ( ! file_exists('index.php')) { |
|
98 | 98 | if (file_exists($this->pub_dir.'/index.php')) { |
99 | 99 | // CodeIgniter 3.0.6 and after |
100 | 100 | $contents = str_replace( |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | } else { |
168 | 168 | $success = copy($file, $dst.'/'.$iterator->getSubPathName()); |
169 | 169 | if ($success) { |
170 | - if (! $this->silent) { |
|
170 | + if ( ! $this->silent) { |
|
171 | 171 | echo 'copied: '.$dst.'/'.$iterator->getSubPathName().PHP_EOL; |
172 | 172 | } |
173 | 173 | } |