| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 13 | public function handle(Client $elasticsearch): void |
|
| 36 | { |
||
| 37 | 13 | $stages = $this->stages(); |
|
| 38 | 13 | $estimate = $stages->sum->estimate(); |
|
| 39 | 13 | $this->progressBar()->setMaxSteps($estimate); |
|
| 40 | $stages->each(function ($stage) use ($elasticsearch) { |
||
| 41 | 13 | $this->progressBar()->setMessage($stage->title()); |
|
| 42 | 13 | $stage->handle($elasticsearch); |
|
| 43 | 13 | $this->progressBar()->advance($stage->estimate()); |
|
| 44 | 13 | }); |
|
| 52 |