Skip to content

Commit

Permalink
fix empty array following the coding style .
Browse files Browse the repository at this point in the history
Signed-off-by: furplag <furplag@furplag.jp>
  • Loading branch information
furplag authored and joshtrichards committed Feb 14, 2024
1 parent de00469 commit 4faa3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/NegativeSampleGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function getUniqueIPsPerUser(Dataset $positives): array {
private function generateFromRealData(array $uidVec, array $uniqueIps): array {
return array_merge(
$uidVec,
empty($uniqueIps) ? array() : $uniqueIps[random_int(0, count($uniqueIps) - 1)]
empty($uniqueIps) ? [] : $uniqueIps[random_int(0, count($uniqueIps) - 1)]
);
}

Expand Down

0 comments on commit 4faa3de

Please sign in to comment.