Passed
Push — master ( a86ce5...c34d7a )
by Dev
03:08
created
src/Admin/PageAdmin.php 1 patch
Indentation   +29 added lines, -29 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,21 +213,21 @@  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
 
219 219
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'getauthor')) {
220 220
             $formMapper->add('author', EntityType::class, [
221
-             'label' => 'admin.page.author.label',
222
-             'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur',
223
-             'required' => false,
221
+                'label' => 'admin.page.author.label',
222
+                'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur',
223
+                'required' => false,
224 224
         ]);
225 225
         }
226 226
 
227 227
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'gettemplate')) {
228 228
             $formMapper->add('template', null, [
229
-             'label' => 'admin.page.template.label',
230
-             'required' => false,
229
+                'label' => 'admin.page.template.label',
230
+                'required' => false,
231 231
             ]);
232 232
         }
233 233
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
             'choices' => [
260 260
                 'admin.page.metaRobots.choice.noIndex' => 'no-index, no-follow',
261 261
             ],
262
-             'label' => 'admin.page.metaRobots.label',
262
+                'label' => 'admin.page.metaRobots.label',
263 263
         ]);
264 264
         }
265 265
         /*
@@ -274,9 +274,9 @@  discard block
 block discarded – undo
274 274
 
275 275
         if (method_exists($this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), 'getauthor')) {
276 276
             $formMapper->add('author', null, [
277
-             'label' => 'admin.page.author.label',
278
-             'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'),
279
-             'required' => false,
277
+                'label' => 'admin.page.author.label',
278
+                'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_user'),
279
+                'required' => false,
280 280
             ]);
281 281
         }
282 282
     }
Please login to merge, or discard this patch.