File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 44
44
*/
45
45
final class CodeCoverage
46
46
{
47
- private const UNCOVERED_FILES = 'UNCOVERED_FILES ' ;
47
+ private const string UNCOVERED_FILES = 'UNCOVERED_FILES ' ;
48
48
private readonly Driver $ driver ;
49
49
private readonly Filter $ filter ;
50
50
private readonly Wizard $ wizard ;
Original file line number Diff line number Diff line change @@ -24,35 +24,35 @@ abstract class Driver
24
24
*
25
25
* @see http://xdebug.org/docs/code_coverage
26
26
*/
27
- public const LINE_NOT_EXECUTABLE = -2 ;
27
+ public const int LINE_NOT_EXECUTABLE = -2 ;
28
28
29
29
/**
30
30
* @var int
31
31
*
32
32
* @see http://xdebug.org/docs/code_coverage
33
33
*/
34
- public const LINE_NOT_EXECUTED = -1 ;
34
+ public const int LINE_NOT_EXECUTED = -1 ;
35
35
36
36
/**
37
37
* @var int
38
38
*
39
39
* @see http://xdebug.org/docs/code_coverage
40
40
*/
41
- public const LINE_EXECUTED = 1 ;
41
+ public const int LINE_EXECUTED = 1 ;
42
42
43
43
/**
44
44
* @var int
45
45
*
46
46
* @see http://xdebug.org/docs/code_coverage
47
47
*/
48
- public const BRANCH_NOT_HIT = 0 ;
48
+ public const int BRANCH_NOT_HIT = 0 ;
49
49
50
50
/**
51
51
* @var int
52
52
*
53
53
* @see http://xdebug.org/docs/code_coverage
54
54
*/
55
- public const BRANCH_HIT = 1 ;
55
+ public const int BRANCH_HIT = 1 ;
56
56
private bool $ collectBranchAndPathCoverage = false ;
57
57
private bool $ detectDeadCode = false ;
58
58
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ final class File extends Renderer
115
115
/**
116
116
* @var array<int,true>
117
117
*/
118
- private const KEYWORD_TOKENS = [
118
+ private const array KEYWORD_TOKENS = [
119
119
T_ABSTRACT => true ,
120
120
T_ARRAY => true ,
121
121
T_AS => true ,
Original file line number Diff line number Diff line change @@ -26,27 +26,27 @@ final class Text
26
26
/**
27
27
* @var string
28
28
*/
29
- private const COLOR_GREEN = "\x1b[30;42m " ;
29
+ private const string COLOR_GREEN = "\x1b[30;42m " ;
30
30
31
31
/**
32
32
* @var string
33
33
*/
34
- private const COLOR_YELLOW = "\x1b[30;43m " ;
34
+ private const string COLOR_YELLOW = "\x1b[30;43m " ;
35
35
36
36
/**
37
37
* @var string
38
38
*/
39
- private const COLOR_RED = "\x1b[37;41m " ;
39
+ private const string COLOR_RED = "\x1b[37;41m " ;
40
40
41
41
/**
42
42
* @var string
43
43
*/
44
- private const COLOR_HEADER = "\x1b[1;37;40m " ;
44
+ private const string COLOR_HEADER = "\x1b[1;37;40m " ;
45
45
46
46
/**
47
47
* @var string
48
48
*/
49
- private const COLOR_RESET = "\x1b[0m " ;
49
+ private const string COLOR_RESET = "\x1b[0m " ;
50
50
private readonly Thresholds $ thresholds ;
51
51
private readonly bool $ showUncoveredFiles ;
52
52
private readonly bool $ showOnlySummary ;
You can’t perform that action at this time.
0 commit comments