Completed
Push — master ( f91fe8...410c26 )
by Quim González
03:25
created
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.