Passed
Push — master ( 95f6ae...aca519 )
by Dev
09:10
created
src/Controller/PageController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Admin/PageAdmin.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 ]
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/TemplateEditor/ElementAdmin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Service/FeedDumpService.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.