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

keradus / PHP-CS-Fixer / 19958239208

05 Dec 2025 09:13AM UTC coverage: 93.181% (-1.0%) from 94.158%
19958239208

push

github

keradus
chore: .php-cs-fixer.dist.php - remove no longer needed rule, 'expectedDeprecation' annotation does not exist for long time

28928 of 31045 relevant lines covered (93.18%)

44.49 hits per line

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

70.0
/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
/**
18
 * @internal
19
 *
20
 * @readonly
21
 *
22
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise.
23
 */
24
final class DataProviderAnalysis
25
{
26
    private string $name;
27

28
    private int $nameIndex;
29

30
    /** @var non-empty-list<array{int, int}> */
31
    private array $usageIndices;
32

33
    /**
34
     * @param non-empty-list<array{int, int}> $usageIndices
35
     */
36
    public function __construct(string $name, int $nameIndex, array $usageIndices)
37
    {
38
        if ([] === $usageIndices || !array_is_list($usageIndices)) {
1✔
39
            throw new \InvalidArgumentException(
×
40
                'Parameter "usageIndices" should be a non-empty-list.',
×
41
            );
×
42
        }
43

44
        $this->name = $name;
1✔
45
        $this->nameIndex = $nameIndex;
1✔
46
        $this->usageIndices = $usageIndices;
1✔
47
    }
48

49
    public function getName(): string
50
    {
51
        return $this->name;
1✔
52
    }
53

54
    public function getNameIndex(): int
55
    {
56
        return $this->nameIndex;
1✔
57
    }
58

59
    /**
60
     * @return non-empty-list<array{int, int}>
61
     */
62
    public function getUsageIndices(): array
63
    {
64
        return $this->usageIndices;
1✔
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