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

keradus / PHP-CS-Fixer / 17252691116

26 Aug 2025 11:09PM UTC coverage: 94.743% (-0.01%) from 94.755%
17252691116

push

github

keradus
chore: apply phpdoc_tag_no_named_arguments

28313 of 29884 relevant lines covered (94.74%)

45.64 hits per line

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

81.82
/src/Console/Command/CheckCommand.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of PHP CS Fixer.
7
 *
8
 * (c) Fabien Potencier <fabien@symfony.com>
9
 *     Dariusz RumiƄski <dariusz.ruminski@gmail.com>
10
 *
11
 * This source file is subject to the MIT license that is bundled
12
 * with this source code in the file LICENSE.
13
 */
14

15
namespace PhpCsFixer\Console\Command;
16

17
use PhpCsFixer\Preg;
18
use PhpCsFixer\ToolInfoInterface;
19
use Symfony\Component\Console\Attribute\AsCommand;
20
use Symfony\Component\Console\Input\InputInterface;
21
use Symfony\Component\Console\Input\InputOption;
22

23
/**
24
 * @author Greg Korba <greg@codito.dev>
25
 *
26
 * @internal
27
 *
28
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise.
29
 */
30
#[AsCommand(name: 'check', description: 'Checks if configured files/directories comply with configured rules.')]
31
final class CheckCommand extends FixCommand
32
{
33
    /** @TODO PHP 8.0 - remove the property */
34
    protected static $defaultName = 'check'; // @phpstan-ignore property.parentPropertyFinalByPhpDoc
35

36
    /** @TODO PHP 8.0 - remove the property */
37
    protected static $defaultDescription = 'Checks if configured files/directories comply with configured rules.'; // @phpstan-ignore property.parentPropertyFinalByPhpDoc
38

39
    public function __construct(ToolInfoInterface $toolInfo)
40
    {
41
        parent::__construct($toolInfo);
1✔
42
    }
43

44
    public function getHelp(): string
45
    {
46
        return Preg::replace('@\v\V*<comment>--dry-run</comment>\V*\v@', '', parent::getHelp());
×
47
    }
48

49
    protected function configure(): void
50
    {
51
        parent::configure();
1✔
52

53
        $this->setDefinition([
1✔
54
            ...array_values($this->getDefinition()->getArguments()),
1✔
55
            ...array_values(array_filter(
1✔
56
                $this->getDefinition()->getOptions(),
1✔
57
                static fn (InputOption $option): bool => 'dry-run' !== $option->getName()
1✔
58
            )),
1✔
59
        ]);
1✔
60
    }
61

62
    protected function isDryRun(InputInterface $input): bool
63
    {
64
        return true;
×
65
    }
66
}
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