@@ -28,7 +28,8 @@ |
||
28 | 28 | private EntityManagerInterface $em; |
29 | 29 | private $game; |
30 | 30 | |
31 | - public function __construct(UserToPlayerTransformer $userToPlayerTransformer, EntityManagerInterface $em) { |
|
31 | + public function __construct(UserToPlayerTransformer $userToPlayerTransformer, EntityManagerInterface $em) |
|
32 | + { |
|
32 | 33 | $this->userToPlayerTransformer = $userToPlayerTransformer; |
33 | 34 | $this->em = $em; |
34 | 35 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function loadByGame() |
21 | 21 | { |
22 | - $query = $this->em->createQueryBuilder() |
|
22 | + $query = $this->em->createQueryBuilder() |
|
23 | 23 | ->from('VideoGamesRecords\CoreBundle\Entity\Game', 'gam') |
24 | 24 | ->select('gam') |
25 | 25 | ->addSelect('COUNT(proof) as nb') |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | private EntityManagerInterface $em; |
11 | 11 | |
12 | - public function __construct(EntityManagerInterface $em ) |
|
12 | + public function __construct(EntityManagerInterface $em) |
|
13 | 13 | { |
14 | 14 | $this->em = $em; |
15 | 15 | } |
@@ -114,7 +114,7 @@ |
||
114 | 114 | */ |
115 | 115 | public function getRankingDisabled(Chart $chart): array |
116 | 116 | { |
117 | - $queryBuilder = $this->getRankingBaseQuery($chart, self::ORDER_BY_SCORE); |
|
117 | + $queryBuilder = $this->getRankingBaseQuery($chart, self::ORDER_BY_SCORE); |
|
118 | 118 | $queryBuilder |
119 | 119 | ->andWhere('status.boolRanking = 0'); |
120 | 120 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | public function __construct( |
17 | 17 | private readonly UpdateChartStatusHandler $updateChartStatusHandler |
18 | - ) {} |
|
18 | + ) {} |
|
19 | 19 | |
20 | 20 | |
21 | 21 | /** |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | $em = $event->getObjectManager(); |
29 | 29 | $player->setStatus($em->getReference('VideoGamesRecords\CoreBundle\Entity\PlayerStatus', 1)); |
30 | 30 | } |
31 | - /** |
|
32 | - * @param Player $player |
|
33 | - * @param PreUpdateEventArgs $event |
|
34 | - */ |
|
31 | + /** |
|
32 | + * @param Player $player |
|
33 | + * @param PreUpdateEventArgs $event |
|
34 | + */ |
|
35 | 35 | public function preUpdate(Player $player, PreUpdateEventArgs $event): void |
36 | 36 | { |
37 | 37 | $this->changeSet = $event->getEntityChangeSet(); |
@@ -15,7 +15,8 @@ |
||
15 | 15 | |
16 | 16 | public function __construct( |
17 | 17 | private readonly UpdateChartStatusHandler $updateChartStatusHandler |
18 | - ) {} |
|
18 | + ) { |
|
19 | +} |
|
19 | 20 | |
20 | 21 | |
21 | 22 | /** |
@@ -73,7 +73,7 @@ |
||
73 | 73 | return [ |
74 | 74 | self::STATUS_CREATED => self::STATUS_CREATED . ' (1)', |
75 | 75 | self::STATUS_ADD_SCORE => self::STATUS_ADD_SCORE . ' (2)', |
76 | - self::STATUS_ADD_PICTURE => self::STATUS_ADD_PICTURE. ' (3)', |
|
76 | + self::STATUS_ADD_PICTURE => self::STATUS_ADD_PICTURE . ' (3)', |
|
77 | 77 | self::STATUS_COMPLETED => self::STATUS_COMPLETED . ' (4)', |
78 | 78 | self::STATUS_ACTIVE => self::STATUS_ACTIVE . ' (5)', |
79 | 79 | self::STATUS_INACTIVE => self::STATUS_INACTIVE, |
@@ -91,9 +91,9 @@ discard block |
||
91 | 91 | use PlayerCommunicationDataTrait; |
92 | 92 | use PlayerPersonalDataTrait; |
93 | 93 | |
94 | - /** |
|
95 | - * @ORM\Column(name="user_id", type="integer") |
|
96 | - */ |
|
94 | + /** |
|
95 | + * @ORM\Column(name="user_id", type="integer") |
|
96 | + */ |
|
97 | 97 | private $user_id; |
98 | 98 | |
99 | 99 | /** |
@@ -457,12 +457,12 @@ discard block |
||
457 | 457 | return $this->nbChartMax; |
458 | 458 | } |
459 | 459 | |
460 | - /** |
|
461 | - * Set nbChartWithPlatform |
|
462 | - * |
|
463 | - * @param integer $nbChartWithPlatform |
|
464 | - * @return Player |
|
465 | - */ |
|
460 | + /** |
|
461 | + * Set nbChartWithPlatform |
|
462 | + * |
|
463 | + * @param integer $nbChartWithPlatform |
|
464 | + * @return Player |
|
465 | + */ |
|
466 | 466 | public function setNbChartWithPlatform(int $nbChartWithPlatform): Player |
467 | 467 | { |
468 | 468 | $this->nbChartWithPlatform = $nbChartWithPlatform; |
@@ -702,9 +702,9 @@ discard block |
||
702 | 702 | return $this->status; |
703 | 703 | } |
704 | 704 | |
705 | - /** |
|
706 | - * @return int |
|
707 | - */ |
|
705 | + /** |
|
706 | + * @return int |
|
707 | + */ |
|
708 | 708 | public function getNbConnexion(): int |
709 | 709 | { |
710 | 710 | return $this->nbConnexion; |
@@ -104,7 +104,7 @@ |
||
104 | 104 | */ |
105 | 105 | public function setValue($value = null): PlayerChartLib |
106 | 106 | { |
107 | - if ($value !=null) { |
|
107 | + if ($value != null) { |
|
108 | 108 | $this->value = (string) $value; |
109 | 109 | } |
110 | 110 |
@@ -105,8 +105,8 @@ |
||
105 | 105 | */ |
106 | 106 | class PlayerChart |
107 | 107 | { |
108 | - use PlayerTrait; |
|
109 | - use TimestampableEntity; |
|
108 | + use PlayerTrait; |
|
109 | + use TimestampableEntity; |
|
110 | 110 | |
111 | 111 | /** |
112 | 112 | * @ORM\Column(name="id", type="integer") |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | private bool $displayPersonalInfos = false; |
43 | 43 | |
44 | 44 | |
45 | - /** |
|
46 | - * Set presentation |
|
47 | - * |
|
48 | - * @param string|null $presentation |
|
49 | - * @return $this |
|
50 | - */ |
|
45 | + /** |
|
46 | + * Set presentation |
|
47 | + * |
|
48 | + * @param string|null $presentation |
|
49 | + * @return $this |
|
50 | + */ |
|
51 | 51 | public function setPresentation(string $presentation = null): static |
52 | 52 | { |
53 | 53 | $this->presentation = $presentation; |
@@ -97,9 +97,9 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | |
100 | - /** |
|
101 | - * @return DateTime|null |
|
102 | - */ |
|
100 | + /** |
|
101 | + * @return DateTime|null |
|
102 | + */ |
|
103 | 103 | public function getBirthDate(): ?DateTime |
104 | 104 | { |
105 | 105 | return $this->birthDate; |
@@ -157,9 +157,9 @@ discard block |
||
157 | 157 | return $this; |
158 | 158 | } |
159 | 159 | |
160 | - /** |
|
161 | - * @return Country|null |
|
162 | - */ |
|
160 | + /** |
|
161 | + * @return Country|null |
|
162 | + */ |
|
163 | 163 | public function getCountry(): ?Country |
164 | 164 | { |
165 | 165 | return $this->country; |