Passed
Push — master ( 838f20...a86ce5 )
by Dev
03:52
created
src/Admin/PageAdmin.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -140,30 +140,30 @@  discard block
 block discarded – undo
140 140
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'getfaq')) {
141 141
             $formMapper->add('faq', ModelAutocompleteType::class, [
142 142
                 'required' => false,
143
-                 'multiple' => true,
144
-                 'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_faq'),
145
-                 'property' => 'question',   // or any field in your media entity
146
-                 'label' => 'admin.page.faq.label',
147
-                 'btn_add' => true,
148
-                 'to_string_callback' => function ($entity) {//, $property) {
149
-                     return $entity->getQuestion();
150
-                 },
151
-             ]);
143
+                    'multiple' => true,
144
+                    'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_faq'),
145
+                    'property' => 'question',   // or any field in your media entity
146
+                    'label' => 'admin.page.faq.label',
147
+                    'btn_add' => true,
148
+                    'to_string_callback' => function ($entity) {//, $property) {
149
+                        return $entity->getQuestion();
150
+                    },
151
+                ]);
152 152
         }
153 153
 
154 154
         //var_dump($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page')); exit;
155 155
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'getrelatedPages')) {
156 156
             $formMapper->add('relatedPages', ModelAutocompleteType::class, [
157 157
                 'required' => false,
158
-                 'multiple' => true,
159
-                 'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'),
160
-                 'property' => 'title',   // or any field in your media entity
161
-                 'label' => 'admin.page.relatedPage.label',
162
-                 'btn_add' => false,
163
-                 'to_string_callback' => function ($entity) { //, $property) {
164
-                     return $entity->getTitle();
165
-                 },
166
-             ]);
158
+                    'multiple' => true,
159
+                    'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'),
160
+                    'property' => 'title',   // or any field in your media entity
161
+                    'label' => 'admin.page.relatedPage.label',
162
+                    'btn_add' => false,
163
+                    'to_string_callback' => function ($entity) { //, $property) {
164
+                        return $entity->getTitle();
165
+                    },
166
+                ]);
167 167
         }
168 168
         $formMapper->end();
169 169
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             'choices' => [
200 200
                 'admin.page.metaRobots.choice.noIndex' => 'no-index, no-follow',
201 201
             ],
202
-             'label' => 'admin.page.metaRobots.label',
202
+                'label' => 'admin.page.metaRobots.label',
203 203
             'required' => false,
204 204
         ]);
205 205
         }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             'dp_calendar_weeks' => false,
214 214
             'dp_view_mode' => 'days',
215 215
             'dp_min_view_mode' => 'days',
216
-             'label' => 'admin.page.createdAt.label',
216
+                'label' => 'admin.page.createdAt.label',
217 217
         ]);
218 218
         $formMapper->add('updatedAt', DateTimePickerType::class, [
219 219
             //'date_format' => 'd MMMM y H:mm',
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             'dp_calendar_weeks' => false,
226 226
             'dp_view_mode' => 'days',
227 227
             'dp_min_view_mode' => 'days',
228
-             'label' => 'admin.page.updatedAt.label',
228
+                'label' => 'admin.page.updatedAt.label',
229 229
             'attr' => [
230 230
                 ($this->getSubject()->getSlug() ? 'disabled' : 't') => '',
231 231
             ],
@@ -233,16 +233,16 @@  discard block
 block discarded – undo
233 233
 
234 234
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'getauthor')) {
235 235
             $formMapper->add('author', EntityType::class, [
236
-             'label' => 'admin.page.author.label',
237
-             'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur',
238
-             'required' => false,
236
+                'label' => 'admin.page.author.label',
237
+                'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur',
238
+                'required' => false,
239 239
         ]);
240 240
         }
241 241
 
242 242
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'gettemplate')) {
243 243
             $formMapper->add('template', null, [
244
-             'label' => 'admin.page.template.label',
245
-             'required' => false,
244
+                'label' => 'admin.page.template.label',
245
+                'required' => false,
246 246
             ]);
247 247
         }
248 248
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             'choices' => [
275 275
                 'admin.page.metaRobots.choice.noIndex' => 'no-index, no-follow',
276 276
             ],
277
-             'label' => 'admin.page.metaRobots.label',
277
+                'label' => 'admin.page.metaRobots.label',
278 278
         ]);
279 279
         }
280 280
         /*
@@ -289,9 +289,9 @@  discard block
 block discarded – undo
289 289
 
290 290
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'getauthor')) {
291 291
             $formMapper->add('author', null, [
292
-             'label' => 'admin.page.author.label',
293
-             'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'),
294
-             'required' => false,
292
+                'label' => 'admin.page.author.label',
293
+                'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'),
294
+                'required' => false,
295 295
             ]);
296 296
         }
297 297
     }
Please login to merge, or discard this patch.