Skip to content

Commit

Permalink
fix review lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Lemay committed Sep 5, 2024
1 parent a566396 commit dacdc97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Client/PredisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public function count(string $prefixKey, array $criterias = []): int
foreach ($criterias as $property => $value) {
$arguments[] = "@$property:$value";
}

if ($criterias === []) {
$arguments[] = '*';
}
Expand Down
1 change: 1 addition & 0 deletions src/Client/RedisClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public function count(string $prefixKey, array $criterias = []): int
foreach ($criterias as $property => $value) {
$arguments[] = "@$property:$value";
}

if ($criterias === []) {
$arguments[] = '*';
}
Expand Down
2 changes: 2 additions & 0 deletions src/Om/Repository/AbstractObjectRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ private function defineLimit(?int $limit = null)
if ($limit === null) {
$limit = $this->count([]);
}

return $limit;
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit dacdc97

Please sign in to comment.