File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -116,22 +116,18 @@ private function processFile(string $inputFile): void
116
116
117
117
$ totalConditionals = 0 ;
118
118
$ totalStatements = 0 ;
119
- $ totalMethods = 0 ;
120
119
$ coveredStatements = 0 ;
121
120
$ coveredConditionals = 0 ;
122
- $ coveredMethods = 0 ;
123
121
124
122
foreach ($ metrics as $ metric ) {
125
123
$ totalConditionals += (int ) $ metric ['conditionals ' ];
126
124
$ coveredConditionals += (int ) $ metric ['coveredconditionals ' ];
127
125
$ totalStatements += (int ) $ metric ['statements ' ];
128
126
$ coveredStatements += (int ) $ metric ['coveredstatements ' ];
129
- $ totalMethods += (int ) $ metric ['methods ' ];
130
- $ coveredMethods += (int ) $ metric ['coveredmethods ' ];
131
127
}
132
128
133
- $ totalElements = $ totalConditionals + $ totalStatements + $ totalMethods ;
134
- $ coveredElements = $ coveredConditionals + $ coveredStatements + $ coveredMethods ;
129
+ $ totalElements = $ totalConditionals + $ totalStatements ;
130
+ $ coveredElements = $ coveredConditionals + $ coveredStatements ;
135
131
$ coverageRatio = $ totalElements ? $ coveredElements / $ totalElements : 0 ;
136
132
$ this ->totalCoverage [] = (int ) round ($ coverageRatio * 100 );
137
133
You can’t perform that action at this time.
0 commit comments