Passed
Branch develop (a12b9d)
by BENARD
04:39
created
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.
src/EventSubscriber/TeamRequestSubscriber.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
         $method = $event->getRequest()->getMethod();
42 42
 
43 43
         if (($requestA instanceof TeamRequest) && ($method == Request::METHOD_POST)) {
44
-            $requestB =  $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\TeamRequest')
44
+            $requestB = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\TeamRequest')
45 45
                 ->findOneBy(
46 46
                     array(
47 47
                         'player' => $requestA->getPlayer(),
Please login to merge, or discard this patch.
src/Service/Ranking/Write/ScoringPlayerRankingHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
     private function getChartsToUpdate()
77 77
     {
78
-         $query = $this->em->createQueryBuilder()
78
+            $query = $this->em->createQueryBuilder()
79 79
             ->select('ch')
80 80
             ->from('VideoGamesRecords\CoreBundle\Entity\Chart', 'ch')
81 81
             ->join('ch.group', 'gr')
Please login to merge, or discard this patch.
src/Service/Ranking/Write/TeamRankingHandler.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             $query->setParameter('rank', $i);
112 112
             $row = $query->getOneOrNullResult();
113 113
             if ($row) {
114
-                $data["gameRank$i"] = $row['nb'];
114
+                $data["gamerank$i"] = $row['nb'];
115 115
             }
116 116
         }
117 117
 
Please login to merge, or discard this patch.