Passed
Branch develop (226e06)
by BENARD
09:42
created
src/Controller/GamercardController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             ->copyResized($sprite, 164, 8, 126, 160, 16, 16, 16, 16) //Platinium
49 49
             ->copyResized($sprite, 211, 8, 108, 160, 16, 16, 16, 16)       //Gold
50 50
             ->copyResized($sprite, 258, 8, 92, 160, 16, 16, 16, 16)       //Silver
51
-            ->copyResized($sprite, 305, 8, 74, 160, 16, 16, 16, 16);      //Bronze
51
+            ->copyResized($sprite, 305, 8, 74, 160, 16, 16, 16, 16); //Bronze
52 52
 
53 53
         $gamercard->getColor('lightBrown');
54 54
         $gamercard
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             ->copyResized($sprite, 78, 59, 126, 160, 16, 16, 16, 16) //Platinium
137 137
             ->copyResized($sprite, 127, 59, 108, 160, 16, 16, 16, 16)       //Gold
138 138
             ->copyResized($sprite, 78, 79, 92, 160, 16, 16, 16, 16)       //Silver
139
-            ->copyResized($sprite, 127, 79, 74, 160, 16, 16, 16, 16);      //Bronze
139
+            ->copyResized($sprite, 127, 79, 74, 160, 16, 16, 16, 16); //Bronze
140 140
 
141 141
         // Add avatar
142 142
         try {
Please login to merge, or discard this patch.
src/Controller/Admin/GameAdminController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         return new RedirectResponse($this->admin->generateUrl('list'));
33 33
     }
34 34
 
35
-     /**
36
-     * @param $id
37
-     * @return RedirectResponse
38
-     */
35
+        /**
36
+         * @param $id
37
+         * @return RedirectResponse
38
+         */
39 39
     public function majAction($id): RedirectResponse
40 40
     {
41 41
         $game = $this->admin->getSubject();
Please login to merge, or discard this patch.
src/Controller/Admin/ProofAdminController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 
28 28
         return $this->renderWithExtraParams(
29 29
             'VideoGamesRecordsCoreBundle:Admin:proof.stats.html.twig',
30
-               [
31
-                   'stats' => $months,
32
-               ]);
30
+                [
31
+                    'stats' => $months,
32
+                ]);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Controller/PlayerController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
      */
37 37
     public function stats(): array
38 38
     {
39
-        $playerStats =  $this->getDoctrine()->getRepository('VideoGamesRecords\CoreBundle\Entity\Player')->getStats();
40
-        $gameStats =  $this->getDoctrine()->getRepository('VideoGamesRecords\CoreBundle\Entity\Game')->getStats();
41
-        $teamStats =  $this->getDoctrine()->getRepository('VideoGamesRecords\CoreBundle\Entity\Team')->getStats();
39
+        $playerStats = $this->getDoctrine()->getRepository('VideoGamesRecords\CoreBundle\Entity\Player')->getStats();
40
+        $gameStats = $this->getDoctrine()->getRepository('VideoGamesRecords\CoreBundle\Entity\Game')->getStats();
41
+        $teamStats = $this->getDoctrine()->getRepository('VideoGamesRecords\CoreBundle\Entity\Team')->getStats();
42 42
 
43 43
         return array(
44 44
             'nbPlayer' => $playerStats[1],
Please login to merge, or discard this patch.
src/Controller/DefaultController.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
     public function getTeam(): ?Team
39 39
     {
40 40
         if ($this->getUser() !== null) {
41
-            $player =  $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\Player')
41
+            $player = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\Player')
42 42
                 ->getPlayerFromUser($this->getUser());
43 43
             return $player->getTeam();
44 44
         }
Please login to merge, or discard this patch.
src/Controller/PlayerChartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                 'idplayer' => $idPlayer,
106 106
                 'idgame' => $idGame,
107 107
             ];
108
-            $key = $idPlayer . '/' . $idGame . '/'. uniqid() . $this->extensions[$meta['mediatype']];
108
+            $key = $idPlayer . '/' . $idGame . '/' . uniqid() . $this->extensions[$meta['mediatype']];
109 109
 
110 110
             $this->s3client->putObject([
111 111
                 'Bucket' => $_ENV['AWS_BUCKET_PROOF'],
Please login to merge, or discard this patch.
src/Controller/Ranking/PlayerChartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             }
63 63
         }
64 64
 
65
-        for ($i=0; $i<=count($ranking)-1; $i++) {
65
+        for ($i = 0; $i <= count($ranking) - 1; $i++) {
66 66
             foreach ($chart->getLibs() as $lib) {
67 67
                 $key = $lib->getIdLibChart();
68 68
                 // format value
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $ranking = $this->playerChartRankingQuery->getRankingDisabled($chart);
85 85
 
86
-        for ($i=0; $i<=count($ranking)-1; $i++) {
86
+        for ($i = 0; $i <= count($ranking) - 1; $i++) {
87 87
             foreach ($chart->getLibs() as $lib) {
88 88
                 $key = $lib->getIdLibChart();
89 89
                 // format value
Please login to merge, or discard this patch.
src/Admin/PlayerAdmin.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
                 ->add('gameRank1', null, ['label' => 'label.gameRank1'])
137 137
                 ->add('gameRank2', null, ['label' => 'label.gameRank2'])
138 138
                 ->add('gameRank3', null, ['label' => 'label.gameRank3'])
139
-           ->end()
140
-           ;
139
+            ->end()
140
+            ;
141 141
     }
142 142
 }
Please login to merge, or discard this patch.
src/Admin/PlayerChartAdmin.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             ->innerJoin('grp.game', 'game')
78 78
             ->addSelect('game');
79 79
 
80
-         return $query;
80
+            return $query;
81 81
     }
82 82
 
83 83
 
@@ -132,19 +132,19 @@  discard block
 block discarded – undo
132 132
             ->add('id', null, ['label' => 'label.id'])
133 133
             ->add('status', null, ['label' => 'label.status'])
134 134
             ->add('player', ModelFilter::class, [
135
-                 'label' => 'label.player',
136
-                 'field_type' => ModelAutocompleteType::class,
137
-                 'field_options' => ['property'=>'pseudo'],
135
+                    'label' => 'label.player',
136
+                    'field_type' => ModelAutocompleteType::class,
137
+                    'field_options' => ['property'=>'pseudo'],
138 138
             ])
139 139
             ->add('chart.group.game', ModelFilter::class, [
140
-                 'label' => 'label.game',
141
-                 'field_type' => ModelAutocompleteType::class,
142
-                 'field_options' => ['property'=>'libGameEn'],
140
+                    'label' => 'label.game',
141
+                    'field_type' => ModelAutocompleteType::class,
142
+                    'field_options' => ['property'=>'libGameEn'],
143 143
             ])
144 144
             ->add('chart.group', ModelFilter::class, [
145
-                 'label' => 'label.group',
146
-                 'field_type' => ModelAutocompleteType::class,
147
-                 'field_options' => ['property'=>'libGroupEn'],
145
+                    'label' => 'label.group',
146
+                    'field_type' => ModelAutocompleteType::class,
147
+                    'field_options' => ['property'=>'libGroupEn'],
148 148
             ])
149 149
             ->add('chart.id', null, ['label' => 'label.chart.id'])
150 150
             ->add('chart.libChartEn', null, ['label' => 'label.name.en'])
Please login to merge, or discard this patch.