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

daycry / jobs / 24850441053

23 Apr 2026 05:54PM UTC coverage: 52.404% (-1.5%) from 53.938%
24850441053

push

github

daycry
Fixes

104 of 219 new or added lines in 42 files covered. (47.49%)

14 existing lines in 9 files now uncovered.

1210 of 2309 relevant lines covered (52.4%)

4.37 hits per line

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

0.0
/src/Commands/CronJobDisableCommand.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Queues.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace Daycry\Jobs\Commands;
15

16
/**
17
 * CLI command to disable the cron job runner (sets global inactive flag).
18
 */
19
class CronJobDisableCommand extends BaseJobsCommand
20
{
21
    /**
22
     * The Command's name
23
     *
24
     * @var string
25
     */
26
    protected $name = 'jobs:cronjob:disable';
27

28
    /**
29
     * the Command's short description
30
     *
31
     * @var string
32
     */
33
    protected $description = 'Disables the cronjob runner.';
34

35
    /**
36
     * the Command's usage
37
     *
38
     * @var string
39
     */
40
    protected $usage = 'jobs:cronjob:disable';
41

42
    /**
43
     * Disables task running
44
     */
45
    public function run(array $params): void
46
    {
NEW
47
        if ($this->isActive()) {
×
48
            $this->disable();
×
49
        } else {
50
            $this->alreadyDisabled();
×
51
        }
52
    }
53
}
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

© 2026 Coveralls, Inc