@@ -38,7 +38,7 @@ |
||
| 38 | 38 | foreach ($issues as $iss) { |
| 39 | 39 | echo $iss; |
| 40 | 40 | } |
| 41 | - }else{ |
|
| 41 | + } else{ |
|
| 42 | 42 | echo "No security issues found."; |
| 43 | 43 | } |
| 44 | 44 | } else { |
@@ -56,7 +56,9 @@ |
||
| 56 | 56 | $sites_added = false; |
| 57 | 57 | $output->writeln("found ".count($projects)." possible sites"); |
| 58 | 58 | foreach($projects as $p){ |
| 59 | - if($skippaths && $cfg->sitePathExists($p)) continue; |
|
| 59 | + if($skippaths && $cfg->sitePathExists($p)) { |
|
| 60 | + continue; |
|
| 61 | + } |
|
| 60 | 62 | |
| 61 | 63 | $question = new Question("Please enter name for '$p' (leave empty to skip)"); |
| 62 | 64 | do { |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | echo $e->getMessage().PHP_EOL; |
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | - }else{
|
|
| 130 | + } else{
|
|
| 131 | 131 | $this->envtype = "live"; |
| 132 | 132 | } |
| 133 | 133 | } |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | public static function reportError($string,$die = true) { |
| 180 | 180 | if($die) { |
| 181 | 181 | exit($string); |
| 182 | - }else{ |
|
| 182 | + } else{ |
|
| 183 | 183 | echo($string); |
| 184 | 184 | } |
| 185 | 185 | } |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | $selim_foldername = "/.selim/"; |
| 41 | 41 | if($server->get("HOME")){ |
| 42 | 42 | $conf_dir = $server->get("HOME").$selim_foldername; |
| 43 | - }else if($server->get("HOMEDRIVE")){ |
|
| 43 | + } else if($server->get("HOMEDRIVE")){ |
|
| 44 | 44 | $conf_dir = "{$server->get("HOMEDRIVE")}{$server->get("HOMEPATH")}{$selim_foldername}"; |
| 45 | - }else{ |
|
| 45 | + } else{ |
|
| 46 | 46 | Util::reportError("Can't find Homedir. Aborting..."); |
| 47 | 47 | return; |
| 48 | 48 | } |
@@ -152,13 +152,13 @@ discard block |
||
| 152 | 152 | $line = fgets(STDIN); |
| 153 | 153 | if(preg_match("/^y|yes/", $line)) { |
| 154 | 154 | file_put_contents($config_path, '{"sites":{}}'); |
| 155 | - }else{ |
|
| 155 | + } else{ |
|
| 156 | 156 | Util::reportError("Aborting..."); |
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | $this->path_config = $config_path; |
| 160 | 160 | $this->load(); |
| 161 | - }else{ |
|
| 161 | + } else{ |
|
| 162 | 162 | Util::reportError("The directory \"$dir\" doesnt exist."); |
| 163 | 163 | } |
| 164 | 164 | } |