@@ -46,14 +46,14 @@ |
||
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'); |
@@ -53,7 +53,7 @@ |
||
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'); |