@@ -30,12 +30,12 @@ |
||
30 | 30 | ->getSingleScalarResult(); |
31 | 31 | } |
32 | 32 | |
33 | - /** |
|
34 | - * @param $player |
|
35 | - * @return mixed |
|
36 | - * @throws NoResultException |
|
37 | - * @throws NonUniqueResultException |
|
38 | - */ |
|
33 | + /** |
|
34 | + * @param $player |
|
35 | + * @return mixed |
|
36 | + * @throws NoResultException |
|
37 | + * @throws NonUniqueResultException |
|
38 | + */ |
|
39 | 39 | public function countPlayerToDay($player): mixed |
40 | 40 | { |
41 | 41 | $qb = $this->createQueryBuilder('request') |
@@ -21,7 +21,8 @@ |
||
21 | 21 | public function __construct( |
22 | 22 | private readonly GameStatsHandler $gameStatsHandler, |
23 | 23 | private readonly GroupStatsHandler $groupStatsHandler |
24 | - ) {} |
|
24 | + ) { |
|
25 | +} |
|
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param PlayerChart $playerChart |
@@ -12,7 +12,8 @@ |
||
12 | 12 | public const MAX_REQUEST_DAY = 5; |
13 | 13 | private ProofRequestRepository $proofRequestRepository; |
14 | 14 | |
15 | - public function __construct(ProofRequestRepository $proofRequestRepository) { |
|
15 | + public function __construct(ProofRequestRepository $proofRequestRepository) |
|
16 | + { |
|
16 | 17 | $this->proofRequestRepository = $proofRequestRepository; |
17 | 18 | } |
18 | 19 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $player = $this->tokenStorageToPlayerTransformer->transform($this->tokenStorage->getToken()); |
58 | 58 | |
59 | 59 | if (false === $this->canAskProofProvider->load($player)) { |
60 | - throw new PostException(sprintf($this->translator->trans('proof.request.send.refuse'), CanAskProofProvider::MAX_REQUEST_DAY)); |
|
60 | + throw new PostException(sprintf($this->translator->trans('proof.request.send.refuse'), CanAskProofProvider::MAX_REQUEST_DAY)); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | $request->setPlayerRequesting($player); |
@@ -332,11 +332,11 @@ |
||
332 | 332 | return new GameStatus($this->status); |
333 | 333 | } |
334 | 334 | |
335 | - /** |
|
336 | - * Get status |
|
337 | - * |
|
338 | - * @return string |
|
339 | - */ |
|
335 | + /** |
|
336 | + * Get status |
|
337 | + * |
|
338 | + * @return string |
|
339 | + */ |
|
340 | 340 | public function getStatusAsString(): string |
341 | 341 | { |
342 | 342 | return $this->status; |
@@ -133,9 +133,9 @@ |
||
133 | 133 | return $this->id; |
134 | 134 | } |
135 | 135 | |
136 | - /** |
|
137 | - * |
|
138 | - */ |
|
136 | + /** |
|
137 | + * |
|
138 | + */ |
|
139 | 139 | public function setStatus(string $status): Serie |
140 | 140 | { |
141 | 141 | $this->status = $status; |
@@ -219,7 +219,7 @@ |
||
219 | 219 | 'associated_property' => $this->getLibGroup(), |
220 | 220 | 'label' => 'label.group', |
221 | 221 | )) |
222 | - ->add('group.game', null, array( |
|
222 | + ->add('group.game', null, array( |
|
223 | 223 | 'associated_property' => $this->getLibGame(), |
224 | 224 | 'label' => 'label.game', |
225 | 225 | )) |
@@ -280,7 +280,7 @@ |
||
280 | 280 | ->add('updated_at', 'datetime', ['label' => 'label.updatedAt']) |
281 | 281 | ->add('checkedAt', 'datetime', ['label' => 'label.checkedAt']) |
282 | 282 | ->add('playerChart', null, ['label' => 'label.score']) |
283 | - ->add('picture',null, ['label' => 'label.picture']) |
|
283 | + ->add('picture', null, ['label' => 'label.picture']) |
|
284 | 284 | ->add('video', null, ['label' => 'label.video']) |
285 | 285 | ->add('playerResponding', null, ['label' => 'label.player.responding']) |
286 | 286 | ->add('status', null, ['label' => 'label.status']); |
@@ -150,7 +150,7 @@ |
||
150 | 150 | $avatar = Picture::loadFileFromStream($this->getAvatar($player)); |
151 | 151 | $gamercard->copyResized($avatar, 9, 30, 0, 0, 64, 64); |
152 | 152 | |
153 | - $playerGames = $this->playerGameRepository->findBy( ['player' => $player],['lastUpdate' => 'DESC'],5); |
|
153 | + $playerGames = $this->playerGameRepository->findBy(['player' => $player], ['lastUpdate' => 'DESC'], 5); |
|
154 | 154 | |
155 | 155 | $startX = 9; |
156 | 156 | foreach ($playerGames as $playerGame) { |