Passed
Push — develop ( 4f7b5c...dc2d47 )
by Andrew
04:51
created
src/services/Redirects.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -986,12 +986,12 @@
 block discarded – undo
986 986
                 }
987 987
                 // Compare field value with starting slashes dropped to the redirectSrcUrl value as well as one with site URL removed, just in case
988 988
                 if (in_array(ltrim($fieldValue, '/'), [ltrim($srcUrl, '/'), ltrim($urlLess, '/')], true)) {
989
-                   $field = $layout->getFieldByHandle($fieldHandle);
989
+                    $field = $layout->getFieldByHandle($fieldHandle);
990 990
 
991
-                   if ($field instanceof ShortLink) {
992
-                       $element->setFieldValue($fieldHandle, null);
993
-                       $match = true;
994
-                   }
991
+                    if ($field instanceof ShortLink) {
992
+                        $element->setFieldValue($fieldHandle, null);
993
+                        $match = true;
994
+                    }
995 995
                 }
996 996
             }
997 997
 
Please login to merge, or discard this patch.
src/fields/ShortLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             }
99 99
         } else if (!empty($value) && !StringHelper::startsWith($value, 'http')) {
100 100
             $siteUrl = $element->getSite()->getBaseUrl();
101
-            $value = rtrim($siteUrl, '/') . '/' . ltrim($value, '/');
101
+            $value = rtrim($siteUrl, '/').'/'.ltrim($value, '/');
102 102
         }
103 103
 
104 104
         if (!empty($value)) {
Please login to merge, or discard this patch.