@@ -74,7 +74,7 @@ |
||
74 | 74 | $element = $this->getElement($encodedPath); |
75 | 75 | |
76 | 76 | $form = $this->createFormBuilder() |
77 | - ->add('delete', SubmitType::class, ['label' => 'Supprimer', 'attr' => ['class' => 'btn-danger']]) |
|
77 | + ->add('delete', SubmitType::class, ['label' => 'Supprimer', 'attr' => ['class' => 'btn-danger']]) |
|
78 | 78 | ->getForm(); |
79 | 79 | |
80 | 80 | $form->handleRequest($request); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | 'to_string_callback' => function ($entity) { |
109 | 109 | return $entity->getQuestion(); |
110 | 110 | }, |
111 | - ]); |
|
111 | + ]); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | if ($this->exists('relatedPages')) { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | 'choices' => [ |
229 | 229 | 'admin.page.metaRobots.choice.noIndex' => 'noindex', |
230 | 230 | ], |
231 | - 'label' => 'admin.page.metaRobots.label', |
|
231 | + 'label' => 'admin.page.metaRobots.label', |
|
232 | 232 | 'required' => false, |
233 | 233 | ]); |
234 | 234 | } |
@@ -246,16 +246,16 @@ discard block |
||
246 | 246 | |
247 | 247 | if ($this->exists('author')) { |
248 | 248 | $formMapper->add('author', EntityType::class, [ |
249 | - 'label' => 'admin.page.author.label', |
|
250 | - 'class' => $this->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur', |
|
251 | - 'required' => false, |
|
249 | + 'label' => 'admin.page.author.label', |
|
250 | + 'class' => $this->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur', |
|
251 | + 'required' => false, |
|
252 | 252 | ]); |
253 | 253 | } |
254 | 254 | |
255 | 255 | if ($this->exists('template')) { |
256 | 256 | $formMapper->add('template', null, [ |
257 | - 'label' => 'admin.page.template.label', |
|
258 | - 'required' => false, |
|
257 | + 'label' => 'admin.page.template.label', |
|
258 | + 'required' => false, |
|
259 | 259 | ]); |
260 | 260 | } |
261 | 261 | |
@@ -311,9 +311,9 @@ discard block |
||
311 | 311 | |
312 | 312 | if ($this->exists('author')) { |
313 | 313 | $formMapper->add('author', null, [ |
314 | - 'label' => 'admin.page.author.label', |
|
315 | - 'class' => $this->getContainer()->getParameter('app.entity_user'), |
|
316 | - 'required' => false, |
|
314 | + 'label' => 'admin.page.author.label', |
|
315 | + 'class' => $this->getContainer()->getParameter('app.entity_user'), |
|
316 | + 'required' => false, |
|
317 | 317 | ]); |
318 | 318 | } |
319 | 319 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | { |
87 | 87 | $qb = $this->em->getRepository($this->page_class)->getQueryToFindPublished('p'); |
88 | 88 | $qb->andWhere('p.metaRobots IS NULL OR p.metaRobots NOT LIKE :noi2') |
89 | - ->setParameter('noi2', '%noindex%'); |
|
89 | + ->setParameter('noi2', '%noindex%'); |
|
90 | 90 | $qb->andWhere('p.mainContent NOT LIKE :noi')->setParameter('noi', 'Location:%'); |
91 | 91 | |
92 | 92 | if (null !== $limit) { |