@@ -48,8 +48,7 @@ |
||
| 48 | 48 | $real = $request->getRequestUri(); |
| 49 | 49 | |
| 50 | 50 | $expected = 'homepage' == $page->getSlug() ? |
| 51 | - $this->get('piedweb.page_canonical')->generatePathForHomepage() : |
|
| 52 | - $this->get('piedweb.page_canonical')->generatePathForPage($page->getRealSlug()) |
|
| 51 | + $this->get('piedweb.page_canonical')->generatePathForHomepage() : $this->get('piedweb.page_canonical')->generatePathForPage($page->getRealSlug()) |
|
| 53 | 52 | ; |
| 54 | 53 | |
| 55 | 54 | if ($real != $expected) { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | 'property' => 'question', // or any field in your media entity |
| 157 | 157 | 'label' => 'admin.page.faq.label', |
| 158 | 158 | 'btn_add' => true, |
| 159 | - 'to_string_callback' => function ($entity) { |
|
| 159 | + 'to_string_callback' => function($entity) { |
|
| 160 | 160 | return $entity->getQuestion(); |
| 161 | 161 | }, |
| 162 | 162 | ]); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | 'property' => 'title', // or any field in your media entity |
| 175 | 175 | 'label' => 'admin.page.relatedPage.label', |
| 176 | 176 | 'btn_add' => false, |
| 177 | - 'to_string_callback' => function ($entity) { |
|
| 177 | + 'to_string_callback' => function($entity) { |
|
| 178 | 178 | return $entity->getTitle(); |
| 179 | 179 | }, |
| 180 | 180 | ] |
@@ -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 | } |
@@ -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); |
@@ -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) { |