Passed
Push — develop ( 8a7945...070db2 )
by BENARD
12:34
created
src/Controller/Player/GetRankingCup.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
         $this->playerRankingProvider = $playerRankingProvider;
17 17
     }
18 18
 
19
-     /**
20
-     * @param Request $request
21
-     * @return array
22
-     * @throws ORMException
23
-     */
19
+        /**
20
+         * @param Request $request
21
+         * @return array
22
+         * @throws ORMException
23
+         */
24 24
     public function __invoke(Request $request): array
25 25
     {
26 26
         return $this->playerRankingProvider->getRankingCup(
Please login to merge, or discard this patch.
src/Controller/Player/Gamercard/Mini.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
 
26 26
     private FilesystemOperator $appStorage;
27 27
 
28
-    public function __construct(FilesystemOperator $appStorage) {
28
+    public function __construct(FilesystemOperator $appStorage)
29
+    {
29 30
         $this->appStorage = $appStorage;
30 31
     }
31 32
 
Please login to merge, or discard this patch.
src/Controller/Player/Game/GetStats.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@
 block discarded – undo
33 33
         return $playerGames;
34 34
     }
35 35
 
36
-     /**
37
-     * Return data from player with game and platforms
38
-     *
39
-     * @param $player
40
-     * @return array
41
-     */
36
+        /**
37
+         * Return data from player with game and platforms
38
+         *
39
+         * @param $player
40
+         * @return array
41
+         */
42 42
     private function getPlayerGameStats($player): array
43 43
     {
44 44
         $qb = $this->em->createQueryBuilder()
Please login to merge, or discard this patch.
src/EventSubscriber/Badge/SetBadgeTitleSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         if ($method == Request::METHOD_GET
42 42
             && is_array($data)
43 43
             && count($data) > 0
44
-            && ($data[0] instanceof PlayerBadge || $data[0] instanceof TeamBadge) ) {
44
+            && ($data[0] instanceof PlayerBadge || $data[0] instanceof TeamBadge)) {
45 45
             foreach ($data as $userBadge) {
46 46
                 $userBadge->getBadge()->setTitle(
47 47
                     sprintf(
Please login to merge, or discard this patch.
src/Entity/Serie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
  *     arguments={"orderParameterName"="order"}
40 40
  * )
41 41
  */
42
-class Serie implements SluggableInterface,TranslatableInterface
42
+class Serie implements SluggableInterface, TranslatableInterface
43 43
 {
44 44
     use TimestampableEntity;
45 45
     use TranslatableTrait;
Please login to merge, or discard this patch.
src/Ranking/Provider/AbstractRankingProvider.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,9 @@  discard block
 block discarded – undo
28 28
      */
29 29
     protected function getPlayer($user = null): ?Player
30 30
     {
31
-        if ($user === null) return null;
31
+        if ($user === null) {
32
+            return null;
33
+        }
32 34
         return $this->userToPlayerTransformer->transform($user);
33 35
     }
34 36
 
@@ -37,7 +39,9 @@  discard block
 block discarded – undo
37 39
      */
38 40
     protected function getTeam($user = null): ?Team
39 41
     {
40
-        if ($user === null) return null;
42
+        if ($user === null) {
43
+            return null;
44
+        }
41 45
         $player = $this->userToPlayerTransformer->transform($user);
42 46
         return $player->getTeam();
43 47
     }
Please login to merge, or discard this patch.
src/Tools/Score.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,6 +145,6 @@
 block discarded – undo
145 145
             $result = $tmpValue . $suffixe . $result;
146 146
         }
147 147
 
148
-        return ($negative ? '-' : '') .  $result;
148
+        return ($negative ? '-' : '') . $result;
149 149
     }
150 150
 }
Please login to merge, or discard this patch.
src/Admin/PlayerChartAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
 
288 288
     public function postUpdate(object $object): void
289 289
     {
290
-        $event = new PlayerChartEvent($object, null , 0);
290
+        $event = new PlayerChartEvent($object, null, 0);
291 291
         $this->eventDispatcher->dispatch($event, VideoGamesRecordsCoreEvents::PLAYER_CHART_UPDATED);
292 292
         parent::postUpdate($object);
293 293
     }
Please login to merge, or discard this patch.
src/Controller/GetWebsiteStats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $teamStats = $teamRepository->getStats();
39 39
 
40 40
         return array(
41
-            'nbPlayer' => (int)$playerStats[1],
41
+            'nbPlayer' => (int) $playerStats[1],
42 42
             'nbChart' => (int) $playerStats[2],
43 43
             'nbChartProven' => (int) $playerStats[3],
44 44
             'nbGame' => (int) $gameStats[1],
Please login to merge, or discard this patch.