@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | 'to_string_callback' => function ($entity) { |
| 111 | 111 | return $entity->getQuestion(); |
| 112 | 112 | }, |
| 113 | - ]); |
|
| 113 | + ]); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | //var_dump($this->getContainer()->getParameter('app.entity_page')); exit; |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | 'choices' => [ |
| 232 | 232 | 'admin.page.metaRobots.choice.noIndex' => 'noindex', |
| 233 | 233 | ], |
| 234 | - 'label' => 'admin.page.metaRobots.label', |
|
| 234 | + 'label' => 'admin.page.metaRobots.label', |
|
| 235 | 235 | 'required' => false, |
| 236 | 236 | ]); |
| 237 | 237 | } |
@@ -250,16 +250,16 @@ discard block |
||
| 250 | 250 | |
| 251 | 251 | if ($this->exists('author')) { |
| 252 | 252 | $formMapper->add('author', EntityType::class, [ |
| 253 | - 'label' => 'admin.page.author.label', |
|
| 254 | - 'class' => $this->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur', |
|
| 255 | - 'required' => false, |
|
| 253 | + 'label' => 'admin.page.author.label', |
|
| 254 | + 'class' => $this->getContainer()->getParameter('app.entity_user'), 'label' => 'Auteur', |
|
| 255 | + 'required' => false, |
|
| 256 | 256 | ]); |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | if ($this->exists('template')) { |
| 260 | 260 | $formMapper->add('template', null, [ |
| 261 | - 'label' => 'admin.page.template.label', |
|
| 262 | - 'required' => false, |
|
| 261 | + 'label' => 'admin.page.template.label', |
|
| 262 | + 'required' => false, |
|
| 263 | 263 | ]); |
| 264 | 264 | } |
| 265 | 265 | |
@@ -324,9 +324,9 @@ discard block |
||
| 324 | 324 | |
| 325 | 325 | if ($this->exists('author')) { |
| 326 | 326 | $formMapper->add('author', null, [ |
| 327 | - 'label' => 'admin.page.author.label', |
|
| 328 | - 'class' => $this->getContainer()->getParameter('app.entity_user'), |
|
| 329 | - 'required' => false, |
|
| 327 | + 'label' => 'admin.page.author.label', |
|
| 328 | + 'class' => $this->getContainer()->getParameter('app.entity_user'), |
|
| 329 | + 'required' => false, |
|
| 330 | 330 | ]); |
| 331 | 331 | } |
| 332 | 332 | } |
@@ -86,8 +86,8 @@ |
||
| 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 :noi OR p.metaRobots NOT LIKE :noi2') |
| 89 | - ->setParameter('noi', '%no-index%') |
|
| 90 | - ->setParameter('noi2', '%noindex%'); |
|
| 89 | + ->setParameter('noi', '%no-index%') |
|
| 90 | + ->setParameter('noi2', '%noindex%'); |
|
| 91 | 91 | $qb->andWhere('p.mainContent NOT LIKE :noi')->setParameter('noi', 'Location:%'); |
| 92 | 92 | |
| 93 | 93 | if (null !== $limit) { |