Skip to content

Commit ee53f8d

Browse files
committed
Sort complexity results before encoding so that graph is properly populated
1 parent 99d6bd1 commit ee53f8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Report/Html/Renderer/Dashboard.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ private function complexity(array $classes, string $baseLink): array
116116
];
117117
}
118118

119+
usort($result['class'], fn($a, $b) => intval($a[0] - $b[0]));
120+
119121
$class = json_encode($result['class']);
120122

121123
assert($class !== false);

0 commit comments

Comments
 (0)