Skip to content

Commit 8206938

Browse files
Merge branch '9.2'
2 parents ad33ebb + 8e92388 commit 8206938

File tree

6 files changed

+76
-76
lines changed

6 files changed

+76
-76
lines changed

src/Report/Html/Renderer/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private function complexity(array $classes, string $baseLink): array
117117
private function coverageDistribution(array $classes): array
118118
{
119119
$result = [
120-
'class' => [
120+
'class' => [
121121
'0%' => 0,
122122
'0-10%' => 0,
123123
'10-20%' => 0,

src/Report/Html/Renderer/File.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -277,19 +277,19 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
277277
$buffer .= $this->renderItemTemplate(
278278
$template,
279279
[
280-
'name' => $this->abbreviateClassName($name),
281-
'numClasses' => $numClasses,
282-
'numTestedClasses' => $numTestedClasses,
283-
'numMethods' => $numMethods,
284-
'numTestedMethods' => $numTestedMethods,
285-
'linesExecutedPercent' => Percentage::fromFractionAndTotal(
280+
'name' => $this->abbreviateClassName($name),
281+
'numClasses' => $numClasses,
282+
'numTestedClasses' => $numTestedClasses,
283+
'numMethods' => $numMethods,
284+
'numTestedMethods' => $numTestedMethods,
285+
'linesExecutedPercent' => Percentage::fromFractionAndTotal(
286286
$item['executedLines'],
287287
$item['executableLines'],
288288
)->asFloat(),
289-
'linesExecutedPercentAsString' => $linesExecutedPercentAsString,
290-
'numExecutedLines' => $item['executedLines'],
291-
'numExecutableLines' => $item['executableLines'],
292-
'branchesExecutedPercent' => Percentage::fromFractionAndTotal(
289+
'linesExecutedPercentAsString' => $linesExecutedPercentAsString,
290+
'numExecutedLines' => $item['executedLines'],
291+
'numExecutableLines' => $item['executableLines'],
292+
'branchesExecutedPercent' => Percentage::fromFractionAndTotal(
293293
$item['executedBranches'],
294294
$item['executableBranches'],
295295
)->asFloat(),
@@ -300,14 +300,14 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
300300
$item['executedPaths'],
301301
$item['executablePaths']
302302
)->asFloat(),
303-
'pathsExecutedPercentAsString' => $pathsExecutedPercentAsString,
304-
'numExecutedPaths' => $item['executedPaths'],
305-
'numExecutablePaths' => $item['executablePaths'],
306-
'testedMethodsPercent' => $testedMethodsPercentage->asFloat(),
307-
'testedMethodsPercentAsString' => $testedMethodsPercentage->asString(),
308-
'testedClassesPercent' => $testedClassesPercentage->asFloat(),
309-
'testedClassesPercentAsString' => $testedClassesPercentage->asString(),
310-
'crap' => $item['crap'],
303+
'pathsExecutedPercentAsString' => $pathsExecutedPercentAsString,
304+
'numExecutedPaths' => $item['executedPaths'],
305+
'numExecutablePaths' => $item['executablePaths'],
306+
'testedMethodsPercent' => $testedMethodsPercentage->asFloat(),
307+
'testedMethodsPercentAsString' => $testedMethodsPercentage->asString(),
308+
'testedClassesPercent' => $testedClassesPercentage->asFloat(),
309+
'testedClassesPercentAsString' => $testedClassesPercentage->asString(),
310+
'crap' => $item['crap'],
311311
]
312312
);
313313

@@ -377,7 +377,7 @@ private function renderFunctionOrMethodItem(Template $template, array $item, str
377377
return $this->renderItemTemplate(
378378
$template,
379379
[
380-
'name' => sprintf(
380+
'name' => sprintf(
381381
'%s<a href="#%d"><abbr title="%s">%s</abbr></a>',
382382
$indent,
383383
$item['startLine'],
@@ -1004,7 +1004,7 @@ private function createPopoverContentForTest(string $test, array $testData): str
10041004
'small' => ' class="covered-by-small-tests"',
10051005
'medium' => ' class="covered-by-medium-tests"',
10061006
// no break
1007-
default => ' class="covered-by-large-tests"',
1007+
default => ' class="covered-by-large-tests"',
10081008
};
10091009

10101010
break;

tests/tests/CodeCoverageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testIncludeListFiltering(): void
6262
$this->coverage->filter()->includeFile(TEST_FILES_PATH . 'BankAccount.php');
6363

6464
$data = RawCodeCoverageData::fromXdebugWithoutPathCoverage([
65-
TEST_FILES_PATH . 'BankAccount.php' => [
65+
TEST_FILES_PATH . 'BankAccount.php' => [
6666
29 => -1,
6767
31 => -1,
6868
],

tests/tests/Data/ProcessedCodeCoverageDataTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
8585
'hit' => [],
8686
'out' => [
8787
],
88-
'out_hit' => [
88+
'out_hit' => [
8989
],
9090
],
9191
],
92-
'paths' => [
92+
'paths' => [
9393
0 => [
9494
'path' => [
9595
0 => 0,
9696
],
97-
'hit' => [],
97+
'hit' => [],
9898
],
9999
],
100100
],
@@ -106,7 +106,7 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
106106
$newCoverage->setFunctionCoverage(
107107
[
108108
'/some/path/SomeClass.php' => [
109-
'SomeClass->firstFunction' => [
109+
'SomeClass->firstFunction' => [
110110
'branches' => [
111111
0 => [
112112
'op_start' => 0,
@@ -116,7 +116,7 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
116116
'hit' => [],
117117
'out' => [
118118
],
119-
'out_hit' => [
119+
'out_hit' => [
120120
],
121121
],
122122
1 => [
@@ -127,22 +127,22 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
127127
'hit' => [],
128128
'out' => [
129129
],
130-
'out_hit' => [
130+
'out_hit' => [
131131
],
132132
],
133133
],
134-
'paths' => [
134+
'paths' => [
135135
0 => [
136136
'path' => [
137137
0 => 0,
138138
],
139-
'hit' => [],
139+
'hit' => [],
140140
],
141141
1 => [
142142
'path' => [
143143
0 => 1,
144144
],
145-
'hit' => [],
145+
'hit' => [],
146146
],
147147
],
148148
],
@@ -156,16 +156,16 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
156156
'hit' => [],
157157
'out' => [
158158
],
159-
'out_hit' => [
159+
'out_hit' => [
160160
],
161161
],
162162
],
163-
'paths' => [
163+
'paths' => [
164164
0 => [
165165
'path' => [
166166
0 => 0,
167167
],
168-
'hit' => [],
168+
'hit' => [],
169169
],
170170
],
171171
],

0 commit comments

Comments
 (0)