| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 63 | 2 | public function handle() |
|
| 64 | { |
||
| 65 | 2 | $count = 0; |
|
| 66 | |||
| 67 | try { |
||
| 68 | 2 | $count = $this->elastic->indexAllEmployees($this->employee); |
|
| 69 | 2 | } catch (Exception $e) { |
|
| 70 | 2 | $this->error($e->getMessage()); |
|
| 71 | } |
||
| 72 | |||
| 73 | 2 | $message = $count.' objects are successfully re-indexed.'; |
|
| 74 | |||
| 75 | 2 | $this->comment(PHP_EOL.$message.PHP_EOL); |
|
| 76 | |||
| 77 | 2 | Log::info($message); |
|
| 78 | 2 | } |
|
| 79 | } |
||
| 80 |