Passed
Branch develop (e24c32)
by BENARD
04:32
created
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.
src/Admin/CountryAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface
35 35
     {
36 36
         $query = parent::configureQuery($query);
37
-        $query->leftJoin($query->getRootAliases()[0]  . '.translations', 't')
37
+        $query->leftJoin($query->getRootAliases()[0] . '.translations', 't')
38 38
             ->addSelect('t');
39 39
         return $query;
40 40
     }
Please login to merge, or discard this patch.
src/Service/Article/PostTopWeekHandler.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
         $this->writer = $writer;
27 27
     }
28 28
 
29
-     /**
30
-     * @param $day
31
-     * @throws Exception
32
-     */
29
+        /**
30
+         * @param $day
31
+         * @throws Exception
32
+         */
33 33
     public function handle($day): void
34 34
     {
35 35
         $date1Begin = new DateTime($day);
Please login to merge, or discard this patch.