Skip to content

Commit

Permalink
break: try phpmd reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Oct 3, 2023
1 parent f9bdba3 commit 3bb1072
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/Shared/Infrastructure/PhpRandomNumberGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ final class PhpRandomNumberGenerator implements RandomNumberGenerator
{
public function generate(): int
{
return random_int(1, 5);
$random = random_int(1, 5);

if ($random > 1) {
if ($random > 2) {
if ($random > 3) {
if ($random > 4) {
return 5;
} else {
return 4;
}
}
}
}

return $random;
}
}

0 comments on commit 3bb1072

Please sign in to comment.