@@ -45,7 +45,7 @@ |
||
| 45 | 45 | 'password' => $this->argument('password') ? $this->argument('password') : $this->ask('User password?'), |
| 46 | 46 | ]); |
| 47 | 47 | } catch (Exception $e) { |
| 48 | - $this->error('error'.$e); |
|
| 48 | + $this->error('error' . $e); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $this->info('User has been added to database succesfully'); |
@@ -42,11 +42,11 @@ |
||
| 42 | 42 | $id = $this->argument('id') ? $this->argument('id') : $this->ask('User id?'); |
| 43 | 43 | $count = User::destroy($id); |
| 44 | 44 | } catch (Exception $e) { |
| 45 | - $this->error('error'.$e); |
|
| 45 | + $this->error('error' . $e); |
|
| 46 | 46 | } |
| 47 | 47 | if ($count == 0) { |
| 48 | 48 | $this->alert('User does not exist'); |
| 49 | - } else { |
|
| 49 | + }else { |
|
| 50 | 50 | $this->info('User has been deleted to database succesfully'); |
| 51 | 51 | } |
| 52 | 52 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | ]; |
| 57 | 57 | $this->table($headers, $info); |
| 58 | 58 | } catch (Exception $e) { |
| 59 | - $this->error('error'.$e); |
|
| 59 | + $this->error('error' . $e); |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | 'email' => $this->argument('email') ? $this->argument('user_id') : $this->ask('User email?'), |
| 52 | 52 | ]); |
| 53 | 53 | } catch (Exception $e) { |
| 54 | - $this->error('error'.$e); |
|
| 54 | + $this->error('error' . $e); |
|
| 55 | 55 | } |
| 56 | 56 | $this->info('User has been edited succesfully'); |
| 57 | 57 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | 'description' => $this->description, |
| 17 | 17 | 'user_id' => $this->user_id, |
| 18 | 18 | // 'completed' => (Boolean) $this->completed, aquesta linia fa el mateix que la següent. |
| 19 | - 'completed' => $this->completed? true:false, |
|
| 19 | + 'completed' => $this->completed ? true:false, |
|
| 20 | 20 | 'created_at' => $this->created_at->toDateTimeString(), |
| 21 | 21 | 'updated_at' => $this->updated_at->toDateTimeString(), |
| 22 | 22 | ]; |
@@ -31,6 +31,6 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function build() |
| 33 | 33 | { |
| 34 | - return $this->view('mails.hello', ['user' => $this->user ]); |
|
| 34 | + return $this->view('mails.hello', ['user' => $this->user]); |
|
| 35 | 35 | } |
| 36 | 36 | } |