Completed
Push — master ( 0aabb4...e32f5b )
by juan
02:19
created
src/Juanber84/Console/Command/AddProjectsCommand.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.