| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function handle() |
||
| 56 | { |
||
| 57 | $this->employee->avatar = Gravatar::exists($this->employee->work_email) ? Gravatar::src($this->employee->work_email, 400) : '/images/profile/default/0.png'; |
||
| 58 | |||
| 59 | $this->employee->save(); |
||
| 60 | |||
| 61 | $message = 'Successfully updated avatar of employee_id '.$this->employee->id; |
||
| 62 | |||
| 63 | Log::info($message); |
||
| 64 | } |
||
| 65 | } |
||
| 66 |