Passed
Branch develop (226e06)
by BENARD
09:42
created
src/Admin/GameDayAdmin.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@
 block discarded – undo
73 73
         $filter
74 74
             ->add('day')
75 75
             ->add('game', ModelFilter::class, [
76
-                 'field_type' => ModelAutocompleteType::class,
77
-                 'field_options' => ['property'=>'libGameEn'],
76
+                    'field_type' => ModelAutocompleteType::class,
77
+                    'field_options' => ['property'=>'libGameEn'],
78 78
             ]);
79 79
     }
80 80
 
Please login to merge, or discard this patch.
src/Admin/RuleAdmin.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 'label' => 'label.name',
50 50
                 'required' => true,
51 51
             ])
52
-             ->add(
52
+                ->add(
53 53
                 'player',
54 54
                 ModelListType::class,
55 55
                 [
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $list
107 107
             ->addIdentifier('id', null, ['label' => 'label.id'])
108 108
             ->add('name', null, ['label' => 'label.name'])
109
-             ->add('player', null, [
109
+                ->add('player', null, [
110 110
                 'associated_property' => 'pseudo',
111 111
                 'label' => 'label.player',
112 112
             ])
Please login to merge, or discard this 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/Admin/GroupAdmin.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         (strpos($this->getRequest()->getPathInfo(), 'videogamesrecords/core/group')
136 136
             ||
137 137
              (
138
-               ($this->getRequest()->getPathInfo() == '/admin/core/append-form-field-element')
138
+                ($this->getRequest()->getPathInfo() == '/admin/core/append-form-field-element')
139 139
                &&
140 140
                ($this->getRequest()->query->get('_sonata_admin') == 'sonata.admin.vgr.group')
141 141
             ))
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
             ->add('libGroupEn', null, ['label' => 'label.name.en'])
183 183
             ->add('libGroupFr', null, ['label' => 'label.name.fr'])
184 184
             ->add('game', ModelFilter::class, [
185
-                 'field_type' => ModelAutocompleteType::class,
186
-                 'field_options' => ['property'=>$this->getLibGame()],
187
-                 'label' => 'label.game'
185
+                    'field_type' => ModelAutocompleteType::class,
186
+                    'field_options' => ['property'=>$this->getLibGame()],
187
+                    'label' => 'label.game'
188 188
             ])
189 189
         ;
190 190
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $collection
47 47
             ->remove('export')
48
-            ->add('copy', $this->getRouterIdParameter().'/copy')
49
-            ->add('copy-with-lib-chart', $this->getRouterIdParameter().'/copy-with-lib-chart')
50
-            ->add('add-lib-chart', $this->getRouterIdParameter().'/add-lib-chart');
48
+            ->add('copy', $this->getRouterIdParameter() . '/copy')
49
+            ->add('copy-with-lib-chart', $this->getRouterIdParameter() . '/copy-with-lib-chart')
50
+            ->add('add-lib-chart', $this->getRouterIdParameter() . '/add-lib-chart');
51 51
     }
52 52
 
53 53
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             }
80 80
 
81 81
             if ($this->getRequest()->getSession()->has('vgrcorebundle_admin_group.idGame')) {
82
-                $idGame= $this->getRequest()->getSession()->get('vgrcorebundle_admin_group.idGame');
82
+                $idGame = $this->getRequest()->getSession()->get('vgrcorebundle_admin_group.idGame');
83 83
                 $entityManager = $this->getModelManager()
84 84
                     ->getEntityManager('VideoGamesRecords\CoreBundle\Entity\Game');
85 85
                 $game = $entityManager->getReference('VideoGamesRecords\CoreBundle\Entity\Game', $idGame);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             ]);
105 105
 
106 106
         if ($this->isCurrentRoute('create') || $this->isCurrentRoute('edit')) {
107
-            $btnCalalogue = (bool)$this->isCurrentRoute('create');
107
+            $btnCalalogue = (bool) $this->isCurrentRoute('create');
108 108
             $form->
109 109
                 add(
110 110
                     'game',
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
 
212 212
         $list
213 213
             ->addIdentifier('id', null, ['label' => 'label.id'])
214
-            ->add('libGroupEn', null, ['label' => 'label.group.en','editable' => true])
215
-            ->add('libGroupFr', null, ['label' => 'label.group.fr','editable' => true])
214
+            ->add('libGroupEn', null, ['label' => 'label.group.en', 'editable' => true])
215
+            ->add('libGroupFr', null, ['label' => 'label.group.fr', 'editable' => true])
216 216
             //->add('slug', null, ['label' => 'label.slug'])
217 217
             ->add('game', null, [
218 218
                 'associated_property' => $this->getLibGame(),
Please login to merge, or discard this patch.
src/Admin/GameAdmin.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@
 block discarded – undo
246 246
                         ],
247 247
                         $btns
248 248
                     )
249
-             ]);
249
+                ]);
250 250
     }
251 251
 
252 252
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $collection
40 40
             ->remove('export')
41
-            ->add('copy', $this->getRouterIdParameter().'/copy')
42
-            ->add('maj', $this->getRouterIdParameter().'/maj');
41
+            ->add('copy', $this->getRouterIdParameter() . '/copy')
42
+            ->add('maj', $this->getRouterIdParameter() . '/maj');
43 43
     }
44 44
 
45 45
     protected function configureDefaultSortValues(array &$sortValues): void
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
 
198 198
         $list
199 199
             ->addIdentifier('id', null, ['label' => 'label.id'])
200
-            ->add('libGameEn', null, ['label' => 'label.game.en','editable' => true])
201
-            ->add('libGameFr', null, ['label' => 'label.game.fr','editable' => true])
200
+            ->add('libGameEn', null, ['label' => 'label.game.en', 'editable' => true])
201
+            ->add('libGameFr', null, ['label' => 'label.game.fr', 'editable' => true])
202 202
             //->add('slug', null, ['label' => 'label.slug'])
203 203
             ->add(
204 204
                 'picture',
Please login to merge, or discard this patch.
src/Admin/VideoAdmin.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,9 +97,9 @@
 block discarded – undo
97 97
             ->add('boolActive', null, ['label' => 'label.boolActive'])
98 98
             ->add('type', null, ['label' => 'label.type'])
99 99
             ->add('player', ModelFilter::class, [
100
-                 'field_type' => ModelAutocompleteType::class,
101
-                 'field_options' => ['property'=>'pseudo'],
102
-                 'label' => 'label.player',
100
+                    'field_type' => ModelAutocompleteType::class,
101
+                    'field_options' => ['property'=>'pseudo'],
102
+                    'label' => 'label.player',
103 103
             ]);
104 104
     }
105 105
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -144,11 +144,11 @@
 block discarded – undo
144 144
     protected function configureShowFields(ShowMapper $show): void
145 145
     {
146 146
         $show
147
-            ->add('id',null, ['label' => 'label.id'])
148
-            ->add('boolActive',null, ['label' => 'label.boolActive'])
149
-            ->add('libVideo',null, ['label' => 'label.name'])
150
-            ->add('player',null, ['label' => 'label.player'])
151
-            ->add('game',null, ['label' => 'label.game'])
152
-            ->add('url',null, ['label' => 'label.url']);
147
+            ->add('id', null, ['label' => 'label.id'])
148
+            ->add('boolActive', null, ['label' => 'label.boolActive'])
149
+            ->add('libVideo', null, ['label' => 'label.name'])
150
+            ->add('player', null, ['label' => 'label.player'])
151
+            ->add('game', null, ['label' => 'label.game'])
152
+            ->add('url', null, ['label' => 'label.url']);
153 153
     }
154 154
 }
Please login to merge, or discard this patch.
src/Admin/ProofAdmin.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
         $filter
163 163
             ->add('id', null, ['label' => 'label.id'])
164 164
             ->add('player', ModelFilter::class, [
165
-                 'field_type' => ModelAutocompleteType::class,
166
-                 'field_options' => ['property'=>'pseudo'],
167
-                 'label' => 'label.player'
165
+                    'field_type' => ModelAutocompleteType::class,
166
+                    'field_options' => ['property'=>'pseudo'],
167
+                    'label' => 'label.player'
168 168
             ])
169 169
             ->add('player.pseudo', null, ['label' => 'label.pseudo'])
170 170
             ->add('chart.group.game', ModelFilter::class, [
171
-                 'field_type' => ModelAutocompleteType::class,
172
-                 'field_options' => ['property'=>$this->getLibGame()],
173
-                 'label' => 'label.game'
171
+                    'field_type' => ModelAutocompleteType::class,
172
+                    'field_options' => ['property'=>$this->getLibGame()],
173
+                    'label' => 'label.game'
174 174
             ])
175 175
             ->add('chart.group.game.libGameEn', null, ['label' => 'label.game.en'])
176 176
             ->add('chart.group.game.libGameFr', null, ['label' => 'label.game.fr'])
@@ -184,9 +184,9 @@  discard block
 block discarded – undo
184 184
             ])
185 185
             ->add('playerChart.status', null, ['label' => 'label.playerChart.status'])
186 186
             ->add('playerResponding', ModelFilter::class, [
187
-                 'field_type' => ModelAutocompleteType::class,
188
-                 'field_options' => ['property'=>'pseudo'],
189
-                 'label' => 'label.player.responding'
187
+                    'field_type' => ModelAutocompleteType::class,
188
+                    'field_options' => ['property'=>'pseudo'],
189
+                    'label' => 'label.player.responding'
190 190
             ]);
191 191
     }
192 192
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $this->messager = $messager;
42 42
     }
43 43
 
44
-    public function setContainer (ContainerInterface $container)
44
+    public function setContainer(ContainerInterface $container)
45 45
     {
46 46
         $this->container = $container;
47 47
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $query = parent::configureQuery($query);
83 83
         $query
84
-            ->innerJoin($query->getRootAliases()[0]  . '.chart', 'chr')
84
+            ->innerJoin($query->getRootAliases()[0] . '.chart', 'chr')
85 85
             ->addSelect('chr')
86 86
             ->innerJoin('chr.group', 'grp')
87 87
             ->addSelect('grp')
Please login to merge, or discard this patch.
src/Admin/ChartAdmin.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@
 block discarded – undo
160 160
             ->add('id', null, ['label' => 'label.id'])
161 161
             ->add($this->getLibChart(), null, ['label' => 'label.name'])
162 162
             ->add('group', ModelFilter::class, [
163
-                 'field_type' => ModelAutocompleteType::class,
164
-                 'field_options' => ['property'=>$this->getLibGroup()],
165
-                 'label' => 'label.group',
163
+                    'field_type' => ModelAutocompleteType::class,
164
+                    'field_options' => ['property'=>$this->getLibGroup()],
165
+                    'label' => 'label.group',
166 166
             ])
167 167
             ->add(
168 168
                 'statusPlayer',
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             ));
83 83
 
84 84
         if ($this->isCurrentRoute('create') || $this->isCurrentRoute('edit')) {
85
-            $btnCalalogue = (bool)$this->isCurrentRoute('create');
85
+            $btnCalalogue = (bool) $this->isCurrentRoute('create');
86 86
             $form->
87 87
                 add(
88 88
                     'group', ModelListType::class, array_merge(
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             ])
167 167
             ->add(
168 168
                 'statusPlayer',
169
-                ChoiceFilter::class,[
169
+                ChoiceFilter::class, [
170 170
                     'label' => 'label.chart.statusPlayer',
171 171
                     'field_type' => ChoiceType::class,
172 172
                     'field_options' => [
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             )
181 181
             ->add(
182 182
                 'statusTeam',
183
-                ChoiceFilter::class,[
183
+                ChoiceFilter::class, [
184 184
                     'label' => 'label.chart.statusTeam',
185 185
                     'field_type' => ChoiceType::class,
186 186
                     'field_options' => [
@@ -201,8 +201,8 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $list
203 203
             ->addIdentifier('id', null, ['label' => 'label.id'])
204
-            ->add('libChartEn', null, ['label' => 'label.chart.en','editable' => true])
205
-            ->add('libChartFr', null, ['label' => 'label.chart.fr','editable' => true])
204
+            ->add('libChartEn', null, ['label' => 'label.chart.en', 'editable' => true])
205
+            ->add('libChartFr', null, ['label' => 'label.chart.fr', 'editable' => true])
206 206
             //->add('slug', null, ['label' => 'label.slug'])
207 207
             ->add('group', null, array(
208 208
                 'associated_property' => $this->getLibGroup(),
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
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface
33 33
     {
34 34
         $query = parent::configureQuery($query);
35
-        $query->leftJoin($query->getRootAliases()[0]  . '.translations', 't')
35
+        $query->leftJoin($query->getRootAliases()[0] . '.translations', 't')
36 36
             ->addSelect('t');
37 37
         return $query;
38 38
     }
Please login to merge, or discard this patch.
src/Admin/BadgeAdmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,9 +76,9 @@
 block discarded – undo
76 76
      */
77 77
     protected function configureShowFields(ShowMapper $show): void
78 78
     {
79
-        $show->add('id',null, ['label' => 'label.id'])
80
-            ->add('type',null, ['label' => 'label.type'])
81
-            ->add('picture',null, ['label' => 'label.picture'])
79
+        $show->add('id', null, ['label' => 'label.id'])
80
+            ->add('type', null, ['label' => 'label.type'])
81
+            ->add('picture', null, ['label' => 'label.picture'])
82 82
             ->add('value', null, ['label' => 'label.value']);
83 83
     }
84 84
 }
Please login to merge, or discard this patch.