• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umbrellio / php-table-sync / 13637668043

03 Mar 2025 06:20PM UTC coverage: 42.714%. Remained the same
13637668043

push

github

web-flow
bump laravel|phpunit|laravel-heavy-jobs version to latest (#24)

support laravel 11 and 12

299 of 700 relevant lines covered (42.71%)

23.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Integration/Laravel/Console/Commands/RestartCommand.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Umbrellio\TableSync\Integration\Laravel\Console\Commands;
6

7
use Umbrellio\TableSync\Integration\Laravel\Console\ProcessManagerCommand;
8

9
class RestartCommand extends ProcessManagerCommand
10
{
11
    protected $signature = 'table_sync:restart {--force}';
12
    protected $description = 'Restart table_sync worker.';
13

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
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc