• 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

63.64
/src/Tokenizer/Analyzer/Analysis/DataProviderAnalysis.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\Tokenizer\Analyzer\Analysis;
16

17
use PhpCsFixer\Console\Application;
18
use PhpCsFixer\Utils;
19

20
/**
21
 * @internal
22
 *
23
 * @readonly
24
 *
25
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise.
26
 */
27
final class DataProviderAnalysis
28
{
29
    private string $name;
30

31
    private int $nameIndex;
32

33
    /** @var non-empty-list<array{int, int}> */
34
    private array $usageIndices;
35

36
    /**
37
     * @param non-empty-list<array{int, int}> $usageIndices
38
     */
39
    public function __construct(string $name, int $nameIndex, array $usageIndices)
40
    {
41
        if ([] === $usageIndices || !array_is_list($usageIndices)) {
1✔
42
            Utils::triggerDeprecation(new \InvalidArgumentException(\sprintf(
×
43
                'Parameter "usageIndices" should be a non-empty-list. This will be enforced in version %d.0.',
×
44
                Application::getMajorVersion() + 1
×
45
            )));
×
46
        }
47

48
        $this->name = $name;
1✔
49
        $this->nameIndex = $nameIndex;
1✔
50
        $this->usageIndices = $usageIndices;
1✔
51
    }
52

53
    public function getName(): string
54
    {
55
        return $this->name;
1✔
56
    }
57

58
    public function getNameIndex(): int
59
    {
60
        return $this->nameIndex;
1✔
61
    }
62

63
    /**
64
     * @return non-empty-list<array{int, int}>
65
     */
66
    public function getUsageIndices(): array
67
    {
68
        return $this->usageIndices;
1✔
69
    }
70
}
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