Passed
Push — master ( 003142...671e26 )
by Dev
03:37
created
src/Controller/PageController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
         $defaultLocale = $this->container->getParameter('locale');
56 56
 
57 57
         $expected = 'homepage' == $page->getSlug() && $defaultLocale == $request->getLocale() ?
58
-            $this->get('router')->generate('piedweb_cms_homepage') :
59
-            $this->get('router')->generate('piedweb_cms_page', ['slug' => $page->getRealSlug()])
58
+            $this->get('router')->generate('piedweb_cms_homepage') : $this->get('router')->generate('piedweb_cms_page', ['slug' => $page->getRealSlug()])
60 59
         ;
61 60
 
62 61
         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
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
             'required' => false,
147 147
              'multiple' => true,
148 148
              'class' => Faq::class,
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.