src/Service/TradingCard.php 1 location
|
@@ 210-217 (lines=8) @@
|
| 207 |
|
->orderBy('m.id', 'ASC') |
| 208 |
|
->groupBy('c.model'); |
| 209 |
|
$query = $qb->getQuery(); |
| 210 |
|
} else { |
| 211 |
|
// If the game is supposed to be a regular user game or an anonymous identified game, |
| 212 |
|
// it means that the registration/login is at the end of the game |
| 213 |
|
if((!$user && !$game->getAnonymousAllowed()) || ($game->getAnonymousAllowed() && $game->getAnonymousIdentifier())) { |
| 214 |
|
return 0; |
| 215 |
|
} |
| 216 |
|
return $this->getEntryMapper()->findLastEntriesByIp($game, $this->getIp(), $limitDate); |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
|
| 220 |
|
// all the cards of the user |
src/Service/Game.php 1 location
|
@@ 968-975 (lines=8) @@
|
| 965 |
|
); |
| 966 |
|
|
| 967 |
|
return $entries; |
| 968 |
|
} else { |
| 969 |
|
// If the game is supposed to be a reguler user game or an anonymous identified game, |
| 970 |
|
// it means that the registration/login is at the end of the game |
| 971 |
|
if((!$user && !$game->getAnonymousAllowed()) || ($game->getAnonymousAllowed() && $game->getAnonymousIdentifier())) { |
| 972 |
|
return 0; |
| 973 |
|
} |
| 974 |
|
return $this->getEntryMapper()->countLastEntriesByIp($game, $this->getIp(), $limitDate); |
| 975 |
|
} |
| 976 |
|
} |
| 977 |
|
|
| 978 |
|
/** |