Enable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 22
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of BlitzPHP Tasks.
7
 *
8
 * (c) 2025 Dimitri Sitchet Tomkeu <[email protected]>
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 BlitzPHP\Tasks\Commands;
15
16
/**
17
 * Activer l'exécution des tâches.
18
 */
19
class Enable extends TaskCommand
20
{
21
    /**
22
     * {@inheritDoc}
23
     */
24
    protected $name = 'tasks:enable';
25
26
    /**
27
     * {@inheritDoc}
28
     */
29
    protected $description = 'Active l\'exécuteur de tâches.';
30
31
    /**
32
     * {@inheritDoc}
33
     *
34
     * @return void
35
     */
36
    public function execute(array $params)
37
    {
38
        parametre('tasks.enabled', true);
39
40
        $this->writer->ok('Les tâches ont été activées.');
41
    }
42
}
43