Passed
Push — develop ( 80a5ee...faff8c )
by BENARD
04:29
created
src/Controller/Chart/FormDataController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Service/Proof/ProofInProgressProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Service/Ranking/Read/PlayerChartRankingQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/EventListener/Entity/PlayerListener.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,8 @@
 block discarded – undo
15 15
 
16 16
     public function __construct(
17 17
         private readonly UpdateChartStatusHandler $updateChartStatusHandler
18
-     ) {}
18
+     ) {
19
+}
19 20
 
20 21
 
21 22
     /**
Please login to merge, or discard this patch.
src/ValueObject/GameStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Entity/Player.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Entity/PlayerChartLib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Entity/PlayerChart.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@
 block discarded – undo
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")
Please login to merge, or discard this patch.
src/Model/Entity/Player/PlayerPersonalDataTrait.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.