@@ -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); |