Completed
Push — master ( f91fe8...410c26 )
by Quim González
03:25
created
app/Console/Commands/ShowTaskCommand.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $id = $this->argument('id') ? $this->argument('id') : $this->askForTasks();
46 46
         $task = Task::findOrFail($id);
47 47
 
48
-        try{
48
+        try {
49 49
 
50 50
             $headers = ['Key', 'Value'];
51 51
             $info = [
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 
58 58
 
59 59
             ];
60
-            $this->table($headers,$info);
60
+            $this->table($headers, $info);
61 61
 
62
-        }catch(Exception $e){
62
+        } catch (Exception $e) {
63 63
 
64 64
             $this->error('error' . $e);
65 65
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             ];
60 60
             $this->table($headers,$info);
61 61
 
62
-        }catch(Exception $e){
62
+        } catch(Exception $e){
63 63
 
64 64
             $this->error('error' . $e);
65 65
         }
Please login to merge, or discard this patch.
app/Console/Commands/EditTaskCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@
 block discarded – undo
46 46
 
47 47
         $task = Task::findOrFail($id);
48 48
 
49
-        try{
49
+        try {
50 50
             $task->update([
51 51
                 'name'        => $this->argument('name') ? $this->argument('name') : $this->ask('Task name?'),
52 52
                 'user_id'     => $this->argument('user_id') ? $this->argument('user_id') : $this->ask('User id?'),
53 53
                 'description' => $this->argument('description') ? $this->argument('description') : $this->ask('Task description?'),
54 54
             ]);
55 55
 
56
-        }catch(Exception $e){
56
+        } catch (Exception $e) {
57 57
             $this->error('error' . $e);
58 58
         }
59 59
         $this->info('Task has been edited succesfully');
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                 'description' => $this->argument('description') ? $this->argument('description') : $this->ask('Task description?'),
54 54
             ]);
55 55
 
56
-        }catch(Exception $e){
56
+        } catch(Exception $e){
57 57
             $this->error('error' . $e);
58 58
         }
59 59
         $this->info('Task has been edited succesfully');
Please login to merge, or discard this patch.