Passed
Push — main ( 268f21...f6aab6 )
by Dimitri
22:04 queued 18:12
created

PhpIniCheck   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 30
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 8 1
1
<?php
2
3
/**
4
 * This file is part of Blitz PHP framework.
5
 *
6
 * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Cli\Commands\Utilities;
13
14
use BlitzPHP\Cli\Console\Command;
15
use BlitzPHP\Security\CheckPhpIni;
16
17
/**
18
 * Check php.ini values.
19
 */
20
final class PhpIniCheck extends Command
21
{
22
    /**
23
     * @var string Groupe
24
     */
25
    protected $group = 'BlitzPHP';
26
27
    /**
28
     * @var string Nom
29
     */
30
    protected $name = 'phpini:check';
31
32
    /**
33
     * @var string Description
34
     */
35
    protected $description = 'Vérifiez les valeurs de votre php.ini dans l\'environnement de production.';
36
37
    protected $service = 'Service de configuration';
38
39
    /**
40
     * {@inheritDoc}
41
     */
42
    public function execute(array $params)
43
    {
44
        /** @var array $data */
45
        $data = CheckPhpIni::run();
46
47
        $this->table($data);
48
49
        return EXIT_SUCCESS;
50
    }
51
}
52