Passed
Push — master ( 143766...249a0e )
by Dev
12:51
created
src/Controller/PageController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
         $real = $request->getRequestUri();
61 61
 
62 62
         $expected = 'homepage' == $page->getSlug() ?
63
-            $this->get('piedweb.page_canonical')->generatePathForHomepage() :
64
-            $this->get('piedweb.page_canonical')->generatePathForPage($page->getRealSlug());
63
+            $this->get('piedweb.page_canonical')->generatePathForHomepage() : $this->get('piedweb.page_canonical')->generatePathForPage($page->getRealSlug());
65 64
 
66 65
         if ($real != $expected) {
67 66
             return [$request->getBasePath().$expected, 301];
Please login to merge, or discard this patch.
src/Admin/PageAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                     'property' => 'title', // or any field in your media entity
124 124
                     'label' => 'admin.page.relatedPage.label',
125 125
                     'btn_add' => false,
126
-                    'to_string_callback' => function ($entity) {
126
+                    'to_string_callback' => function($entity) {
127 127
                         return $entity->getTitle();
128 128
                     },
129 129
             ]);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             'label' => 'admin.page.translations.label',
183 183
             'help' => 'admin.page.translations.help',
184 184
             'btn_add' => false,
185
-            'to_string_callback' => function ($entity) {
185
+            'to_string_callback' => function($entity) {
186 186
                 return $entity->getLocale()
187 187
                     ? $entity->getLocale().' ('.$entity->getSlug().')'
188 188
                     : $entity->getSlug(); // switch for getLocale
Please login to merge, or discard this patch.
src/EventListener/MediaCacheGeneratorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $pathWebP = $this->projectDir.'/public/'.$media->getRelativeDir().'/'.$filter.'/'.$media->getSlug().'.webp';
106 106
         $webPConverterOptions = $this->webPConverterOptions;
107 107
 
108
-        $this->pool->add(function () use ($pathJpg, $pathWebP, $webPConverterOptions, $filter) {
108
+        $this->pool->add(function() use ($pathJpg, $pathWebP, $webPConverterOptions, $filter) {
109 109
             self::imgToWebPStatic($pathJpg, $pathWebP, $webPConverterOptions, $filter);
110 110
         });
111 111
     }
Please login to merge, or discard this patch.