Completed
Push — master ( b9ac9e...35a409 )
by Dev
03:48
created
src/Admin/PageAdmin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
             'required' => false,
147 147
              'multiple' => true,
148 148
              'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_faq'),
149
-             'property' => 'question',   // or any field in your media entity
149
+             'property' => 'question', // or any field in your media entity
150 150
              'label' => 'admin.page.faq.label',
151 151
              'btn_add' => true,
152
-             'to_string_callback' => function ($entity) {//, $property) {
152
+             'to_string_callback' => function($entity) {//, $property) {
153 153
                  return $entity->getQuestion();
154 154
              },
155 155
          ]);
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
             'required' => false,
162 162
              'multiple' => true,
163 163
              'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'),
164
-             'property' => 'title',   // or any field in your media entity
164
+             'property' => 'title', // or any field in your media entity
165 165
              'label' => 'admin.page.relatedPage.label',
166 166
              'btn_add' => false,
167
-             'to_string_callback' => function ($entity) { //, $property) {
167
+             'to_string_callback' => function($entity) { //, $property) {
168 168
                  return $entity->getTitle();
169 169
              },
170 170
          ]);
Please login to merge, or discard this patch.
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.