@@ -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 |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | |
| 15 | 15 | public function __construct( |
| 16 | 16 | private readonly UpdateChartStatusHandler $updateChartStatusHandler |
| 17 | - ) {} |
|
| 17 | + ) {} |
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * @param Player $player |
|
| 22 | - * @param PreUpdateEventArgs $event |
|
| 23 | - */ |
|
| 20 | + /** |
|
| 21 | + * @param Player $player |
|
| 22 | + * @param PreUpdateEventArgs $event |
|
| 23 | + */ |
|
| 24 | 24 | public function preUpdate(Player $player, PreUpdateEventArgs $event): void |
| 25 | 25 | { |
| 26 | 26 | $this->changeSet = $event->getEntityChangeSet(); |
@@ -14,7 +14,8 @@ |
||
| 14 | 14 | |
| 15 | 15 | public function __construct( |
| 16 | 16 | private readonly UpdateChartStatusHandler $updateChartStatusHandler |
| 17 | - ) {} |
|
| 17 | + ) { |
|
| 18 | +} |
|
| 18 | 19 | |
| 19 | 20 | |
| 20 | 21 | /** |
@@ -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; |
@@ -551,12 +551,12 @@ |
||
| 551 | 551 | return $this->nbChartMax; |
| 552 | 552 | } |
| 553 | 553 | |
| 554 | - /** |
|
| 555 | - * Set nbChartWithPlatform |
|
| 556 | - * |
|
| 557 | - * @param integer $nbChartWithPlatform |
|
| 558 | - * @return Player |
|
| 559 | - */ |
|
| 554 | + /** |
|
| 555 | + * Set nbChartWithPlatform |
|
| 556 | + * |
|
| 557 | + * @param integer $nbChartWithPlatform |
|
| 558 | + * @return Player |
|
| 559 | + */ |
|
| 560 | 560 | public function setNbChartWithPlatform(int $nbChartWithPlatform): static |
| 561 | 561 | { |
| 562 | 562 | $this->nbChartWithPlatform = $nbChartWithPlatform; |
@@ -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 | )) |