Completed
Push — master ( 93f930...9a8fbb )
by Dev
08:26
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
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Service/FeedDumpService.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
         $links = [];
104 104
         foreach ($pages as $key => $page) {
105 105
             $links[$key] = 'homepage' == $page->getSlug() ?
106
-                $this->pc->generatePathForHomepage() :
107
-                $this->pc->generatePathForPage($page->getRealSlug())
106
+                $this->pc->generatePathForHomepage() : $this->pc->generatePathForPage($page->getRealSlug())
108 107
             ;
109 108
         }
110 109
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 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 :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) {
Please login to merge, or discard this patch.