Passed
Push — master ( 455573...24a91c )
by Dev
03:29
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.
src/Twig/AppExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
 
28 28
     public static function renderJavascriptLink($anchor, $path, $attr = [])
29 29
     {
30
-        if (strpos($path, 'http://')===0)        $path = '-'.substr($path, 7);
31
-        elseif (strpos($path, 'https://')===0)  $path = '_'.substr($path, 8);
32
-        elseif (strpos($path, 'mailto:')===0)   $path = '@'.substr($path, 7);
30
+        if (strpos($path, 'http://') === 0)        $path = '-'.substr($path, 7);
31
+        elseif (strpos($path, 'https://') === 0)  $path = '_'.substr($path, 8);
32
+        elseif (strpos($path, 'mailto:') === 0)   $path = '@'.substr($path, 7);
33 33
 
34 34
         return '<span'.self::mergeAndMapAttributes($attr, ['data-rot' => str_rot13($path)]).'>'.$anchor.'</span>';
35 35
     }
Please login to merge, or discard this patch.