Completed
Push — master ( 74410c...455573 )
by Dev
06:45 queued 03:15
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 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
                 'required' => false,
143 143
                  'multiple' => true,
144 144
                  'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_faq'),
145
-                 'property' => 'question',   // or any field in your media entity
145
+                 'property' => 'question', // or any field in your media entity
146 146
                  'label' => 'admin.page.faq.label',
147 147
                  'btn_add' => true,
148
-                 'to_string_callback' => function ($entity) {//, $property) {
148
+                 'to_string_callback' => function($entity) {//, $property) {
149 149
                      return $entity->getQuestion();
150 150
                  },
151 151
              ]);
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
                 'required' => false,
158 158
                  'multiple' => true,
159 159
                  'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'),
160
-                 'property' => 'title',   // or any field in your media entity
160
+                 'property' => 'title', // or any field in your media entity
161 161
                  'label' => 'admin.page.relatedPage.label',
162 162
                  'btn_add' => false,
163
-                 'to_string_callback' => function ($entity) { //, $property) {
163
+                 'to_string_callback' => function($entity) { //, $property) {
164 164
                      return $entity->getTitle();
165 165
                  },
166 166
              ]);
Please login to merge, or discard this patch.