| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function handle(): void |
||
| 15 | { |
||
| 16 | if (!$this->pidManager->pidExists()) { |
||
| 17 | $this->info('Table sync worker not started.'); |
||
| 18 | } else { |
||
| 19 | $arguments = $this->option('force') ? [ |
||
| 20 | '--force' => true, |
||
| 21 | ] : []; |
||
| 22 | |||
| 23 | $this->call('table_sync:terminate', $arguments); |
||
| 24 | } |
||
| 25 | |||
| 26 | $this->call('table_sync:work'); |
||
| 27 | } |
||
| 29 |