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

systemsdk / phpcpd / #12

13 Apr 2025 04:42PM UTC coverage: 75.711%. Remained the same
#12

push

DKravtsov
phpcpd 8.1.1 release. Available installation via composer.

692 of 914 relevant lines covered (75.71%)

3.7 hits per line

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

42.86
/src/Cli/Arguments.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Systemsdk\PhpCPD\Cli;
6

7
final readonly class Arguments
8
{
9
    /**
10
     * @param array<int, string> $directories
11
     * @param array<int, string> $suffixes
12
     * @param array<int, string> $exclude
13
     */
14
    public function __construct(
15
        private array $directories,
16
        private array $suffixes,
17
        private array $exclude,
18
        private ?string $pmdCpdXmlLogfile,
19
        private int $linesThreshold,
20
        private int $tokensThreshold,
21
        private bool $fuzzy,
22
        private bool $verbose,
23
        private bool $help,
24
        private bool $version,
25
        private string $algorithm,
26
        private int $editDistance,
27
        private int $headEquality
28
    ) {
29
    }
11✔
30

31
    /**
32
     * @return array<int, string>
33
     */
34
    public function directories(): array
35
    {
36
        return $this->directories;
×
37
    }
38

39
    /**
40
     * @return array<int, string>
41
     */
42
    public function suffixes(): array
43
    {
44
        return $this->suffixes;
×
45
    }
46

47
    /**
48
     * @return array<int, string>
49
     */
50
    public function exclude(): array
51
    {
52
        return $this->exclude;
×
53
    }
54

55
    public function pmdCpdXmlLogfile(): ?string
56
    {
57
        return $this->pmdCpdXmlLogfile;
×
58
    }
59

60
    public function linesThreshold(): int
61
    {
62
        return $this->linesThreshold;
11✔
63
    }
64

65
    public function tokensThreshold(): int
66
    {
67
        return $this->tokensThreshold;
11✔
68
    }
69

70
    public function fuzzy(): bool
71
    {
72
        return $this->fuzzy;
11✔
73
    }
74

75
    public function verbose(): bool
76
    {
77
        return $this->verbose;
×
78
    }
79

80
    public function help(): bool
81
    {
82
        return $this->help;
×
83
    }
84

85
    public function version(): bool
86
    {
87
        return $this->version;
×
88
    }
89

90
    public function algorithm(): string
91
    {
92
        return $this->algorithm;
×
93
    }
94

95
    public function editDistance(): int
96
    {
97
        return $this->editDistance;
11✔
98
    }
99

100
    public function headEquality(): int
101
    {
102
        return $this->headEquality;
11✔
103
    }
104
}
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