Completed
Push — master ( e32f5b...d93af6 )
by juan
02:37
created
src/Juanber84/Console/Command/AddProjectsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@
 block discarded – undo
48 48
         }
49 49
 
50 50
         $jsonDb = $this->databaseService->getProjects();
51
-        if (array_key_exists($nameOfProject,$jsonDb)) {
51
+        if (array_key_exists($nameOfProject, $jsonDb)) {
52 52
             $question = new ConfirmationQuestion('<error>This project exist. Do you want override it?</error> <info>Y/n</info> ', false);
53 53
             if (!$helper->ask($input, $output, $question)) {
54 54
                 return;
55 55
             }
56 56
         }
57 57
 
58
-        if ($this->databaseService->addProject($nameOfProject, getcwd())){
58
+        if ($this->databaseService->addProject($nameOfProject, getcwd())) {
59 59
             $output->writeln('<info>OK. Project added.</info>');
60 60
         } else {
61 61
             $output->writeln('<error>KO. Error</error>');
Please login to merge, or discard this patch.