Skip to content

Commit 31c6319

Browse files
committed
Use PHP <=> operator instead of intval subtraction for comparison
1 parent ee53f8d commit 31c6319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Report/Html/Renderer/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private function complexity(array $classes, string $baseLink): array
116116
];
117117
}
118118

119-
usort($result['class'], fn($a, $b) => intval($a[0] - $b[0]));
119+
usort($result['class'], fn($a, $b) => ($a[0] <=> $b[0]));
120120

121121
$class = json_encode($result['class']);
122122

0 commit comments

Comments
 (0)