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

systemsdk / phpcpd / #4

30 Dec 2024 04:42PM UTC coverage: 75.789%. Remained the same
#4

push

DKravtsov
phpcpd 8.0.0 release. Made codebase refactoring. Updated requirements php 8.3, updated composer dependencies, updated tests to the PHPUnit 11. Updated dev environment to the php 8.4, Phing 3.0, added code quality tools: ecs, phpstan.

271 of 379 new or added lines in 20 files covered. (71.5%)

65 existing lines in 13 files now uncovered.

648 of 855 relevant lines covered (75.79%)

2.18 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
    }
8✔
30

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

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

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

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

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

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

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

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

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

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

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

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

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