@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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 | } |
@@ -59,7 +59,7 @@ |
||
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 | } |
@@ -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'); |