Skip to content

Commit 748d936

Browse files
committed
2 parents dbc0078 + 90c066e commit 748d936

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/Services/ResourceEditsService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class ResourceEditsService
1616
*/
1717
public function requiredVotes(int $totalVotes): int
1818
{
19-
if ($totalVotes == 0) return 1;
19+
if ($totalVotes == 0) {
20+
return 1;
21+
}
2022
// Take the minimum of total votes OR the logarithmic calculation
2123
$votes = min($totalVotes, floor(log($totalVotes, 1.25)) + 1);
2224

0 commit comments

Comments
 (0)