Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
umutphp committed Feb 4, 2024
1 parent 2a19d38 commit 0019948
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/HasRecommendation.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,8 @@ public static function calculateRecommendations($data, $dataCount)
foreach ($dataCartesianRanks as $data1 => $data) {
arsort($data);

$key = key($dataGroup);

$data = array_slice($data, 0, $dataCount, true);
$recommendations[$key] = $data;
$recommendations[$data1] = $data;
}

return $recommendations;
Expand Down

0 comments on commit 0019948

Please sign in to comment.