@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Juanber84\Console; |
4 | 4 | |
5 | -use Juanber84\Console\Command\BatchProcessCommand; |
|
6 | 5 | use Juanber84\Console\Command\SelfUpdateCommand; |
7 | 6 | use Juanber84\Services\ApplicationService; |
8 | 7 | use Juanber84\Services\GitHubService; |
@@ -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); |