Passed
Branch develop (226e06)
by BENARD
09:42
created
src/Service/Ranking/Read/DefaultRankingQuery.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
 
41 41
     }
42 42
 
43
-     /**
44
-     * @throws ORMException
45
-     */
43
+        /**
44
+         * @throws ORMException
45
+         */
46 46
     protected function getTeam(): ?Team
47 47
     {
48 48
         return $this->tokenStorageToTeamTransformer->transform($this->tokenStorage->getToken());
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         TokenStorageToPlayerTransformer $tokenStorageToPlayerTransformer,
24 24
         TokenStorageToTeamTransformer $tokenStorageToTeamTransformer,
25 25
         TokenStorageInterface $tokenStorage
26
-    )
27
-    {
26
+    ) {
28 27
         $this->em = $em;
29 28
         $this->tokenStorageToPlayerTransformer = $tokenStorageToPlayerTransformer;
30 29
         $this->tokenStorageToTeamTransformer = $tokenStorageToTeamTransformer;
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
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 
180 180
         try {
181 181
             return $query->getQuery()->getSingleScalarResult();
182
-        } catch (NoResultException|NonUniqueResultException $e) {
182
+        } catch (NoResultException | NonUniqueResultException $e) {
183 183
             return null;
184 184
         }
185 185
     }
Please login to merge, or discard this patch.
src/Service/DataService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
     public function __construct(
15 15
         DataRepository $dataRepository,
16 16
         UserService $userService
17
-    )
18
-    {
17
+    ) {
19 18
         $this->dataRepository = $dataRepository;
20 19
         $this->userService = $userService;
21 20
     }
Please login to merge, or discard this patch.
src/Form/Type/ChartTypeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
                 'type', EntityType::class,
20 20
                 [
21 21
                     'class' => ChartType::class,
22
-                    'query_builder' => function (EntityRepository $er) {
22
+                    'query_builder' => function(EntityRepository $er) {
23 23
                         return $er->createQueryBuilder('ct')
24 24
                             ->orderBy('ct.name', 'ASC');
25 25
                     },
Please login to merge, or discard this patch.
src/EventListener/Entity/PlayerChartListener.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         }
82 82
     }
83 83
 
84
-     /**
85
-     * @param PlayerChart              $playerChart
86
-     * @param LifecycleEventArgs $event
87
-     * @throws ORMException
88
-     */
84
+        /**
85
+         * @param PlayerChart              $playerChart
86
+         * @param LifecycleEventArgs $event
87
+         * @throws ORMException
88
+         */
89 89
     public function postUpdate(PlayerChart $playerChart, LifecycleEventArgs $event): void
90 90
     {
91 91
         $em = $event->getObjectManager();
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function preRemove(PlayerChart $playerChart,  LifecycleEventArgs $event): void
127 127
     {
128
-         // Chart
128
+            // Chart
129 129
         $chart = $playerChart->getChart();
130 130
         $chart->setNbPost($chart->getNbPost() - 1);
131 131
         $chart->setStatusPlayer(Chart::STATUS_MAJ);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      * @param PlayerChart            $playerChart
124 124
      * @param LifecycleEventArgs $event
125 125
      */
126
-    public function preRemove(PlayerChart $playerChart,  LifecycleEventArgs $event): void
126
+    public function preRemove(PlayerChart $playerChart, LifecycleEventArgs $event): void
127 127
     {
128 128
          // Chart
129 129
         $chart = $playerChart->getChart();
Please login to merge, or discard this patch.
src/EventListener/Entity/GroupListener.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
         }
21 21
     }
22 22
 
23
-     /**
24
-     * @param Group       $group
25
-     * @param PreUpdateEventArgs $event
26
-     */
23
+        /**
24
+         * @param Group       $group
25
+         * @param PreUpdateEventArgs $event
26
+         */
27 27
     public function preUpdate(Group $group, PreUpdateEventArgs $event)
28 28
     {
29 29
         if ($group->getLibGroupFr() == null) {
Please login to merge, or discard this patch.
src/Command/GameOfDayAddCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
     private GameOfDayManager $gameOfDayManager;
16 16
 
17
-    public function __construct( GameOfDayManager $gameOfDayManager)
17
+    public function __construct(GameOfDayManager $gameOfDayManager)
18 18
     {
19 19
         $this->gameOfDayManager = $gameOfDayManager;
20 20
         parent::__construct();
Please login to merge, or discard this patch.
src/File/Picture.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
      */
35 35
     public function __construct($width, $height, $trueColor = true)
36 36
     {
37
-        $width = (int)$width;
38
-        $height = (int)$height;
37
+        $width = (int) $width;
38
+        $height = (int) $height;
39 39
 
40 40
         if ($trueColor) {
41 41
             $this->picture = imagecreatetruecolor($width, $height);
Please login to merge, or discard this patch.
src/EventSubscriber/ProofRequestSubscriber.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
             $nbRequest = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\ProofRequest')->getNbRequestFromToDay($player);
53 53
             if ($nbRequest >= $nb) {
54
-                 throw new PostException(sprintf($this->translator->trans('proof.request.send.refuse'), $nb));
54
+                    throw new PostException(sprintf($this->translator->trans('proof.request.send.refuse'), $nb));
55 55
             }
56 56
             $request->setPlayerRequesting($player);
57 57
         }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     private EntityManagerInterface $em;
20 20
     private TranslatorInterface $translator;
21 21
 
22
-    public function __construct(TokenStorageInterface $tokenStorage, EntityManagerInterface $em,  TranslatorInterface $translator)
22
+    public function __construct(TokenStorageInterface $tokenStorage, EntityManagerInterface $em, TranslatorInterface $translator)
23 23
     {
24 24
         $this->tokenStorage = $tokenStorage;
25 25
         $this->em = $em;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         if (($request instanceof ProofRequest) && ($method == Request::METHOD_POST)) {
48 48
             $token = $this->tokenStorage->getToken();
49
-            $player =  $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\Player')
49
+            $player = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\Player')
50 50
                 ->getPlayerFromUser($token->getUser());
51 51
 
52 52
             $nbRequest = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\ProofRequest')->getNbRequestFromToDay($player);
Please login to merge, or discard this patch.