@@ -41,7 +41,9 @@ |
||
| 41 | 41 | |
| 42 | 42 | $db = file_get_contents($_SERVER['HOME'].'/'.self::DIRECTORY.'/'.self::DB); |
| 43 | 43 | $jsonDb = json_decode($db,true); |
| 44 | - if (is_null($jsonDb)) $jsonDb = array(); |
|
| 44 | + if (is_null($jsonDb)) { |
|
| 45 | + $jsonDb = array(); |
|
| 46 | + } |
|
| 45 | 47 | |
| 46 | 48 | if (array_key_exists($nameOfProject,$jsonDb)) { |
| 47 | 49 | $question = new ConfirmationQuestion('<error>This project exist. Do you want override it?</error> <info>Y/n</info> ', false); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | $output->writeln(''); |
| 123 | 123 | $table->render(); |
| 124 | 124 | |
| 125 | - exit; |
|
| 125 | + exit; |
|
| 126 | 126 | $task = 'cd '.$jsonDb[$nameOfProject]; |
| 127 | 127 | echo $console = shell_exec($task); |
| 128 | 128 | echo "\n"; |