Passed
Push — ft/fields-refactor ( 34e13a...220f3b )
by Ben
81:47
created
src/Urls/UrlSlugField.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,9 @@
 block discarded – undo
39 39
 
40 40
         // If this is a '/' slug, it indicates the homepage for this locale. In this case,
41 41
         // we wont be trimming the slash
42
-        if($slug === '/') return $slug;
42
+        if($slug === '/') {
43
+            return $slug;
44
+        }
43 45
 
44 46
         if ($this->startsWithBaseUrlSegment($slug)) {
45 47
             $slug = trim(substr($slug, strlen($this->baseUrlSegment)), '/');
Please login to merge, or discard this patch.
src/Management/Assistants/PublishAssistant.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,9 +125,9 @@
 block discarded – undo
125 125
     {
126 126
         if ($this->isPublished()) {
127 127
             return 'online';
128
-        }elseif ($this->isDraft()) {
128
+        } elseif ($this->isDraft()) {
129 129
             return 'offline';
130
-        }elseif ($this->manager->isAssistedBy('archive') && $this->manager->assistant('archive')->isArchived()) {
130
+        } elseif ($this->manager->isAssistedBy('archive') && $this->manager->assistant('archive')->isArchived()) {
131 131
             return 'gearchiveerd';
132 132
         }
133 133
 
Please login to merge, or discard this patch.
src/Common/Helpers/Memoize.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@
 block discarded – undo
36 36
     private function convertToCachableParameters(array $parameters)
37 37
     {
38 38
         foreach($parameters as $key => $value) {
39
-            if($value instanceof Model) $parameters[$key] = get_class($value) . '@' . $value->id;
39
+            if($value instanceof Model) {
40
+                $parameters[$key] = get_class($value) . '@' . $value->id;
41
+            }
40 42
         }
41 43
 
42 44
         return $parameters;
Please login to merge, or discard this patch.
src/Settings/Settings.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
22 22
 
23 23
         if (is_array($this->items[$key])) {
24 24
 
25
-            if(!$locale) $locale = app()->getLocale();
25
+            if(!$locale) {
26
+                $locale = app()->getLocale();
27
+            }
26 28
 
27 29
             if ($this->items[$key] == null || !isset($this->items[$key][$locale])) {
28 30
                 return $default;
Please login to merge, or discard this patch.
src/Urls/Application/SaveUrlSlugs.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,9 @@
 block discarded – undo
140 140
 
141 141
     private function deleteIdenticalRecords($existingRecords): void
142 142
     {
143
-        if($this->strict) return;
143
+        if($this->strict) {
144
+            return;
145
+        }
144 146
 
145 147
         // The old homepage url should be removed since this is no longer in effect.
146 148
         // In case of any redirect to this old homepage, the last used redirect is now back in effect.
Please login to merge, or discard this patch.
src/Urls/Application/RevertUrlSlug.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
 
34 34
                 $currentUrlRecord->replaceAndRedirect(['slug' => $recentRedirectSlug]);
35 35
             }
36
-        }
37
-        catch(UrlRecordNotFound $e)
36
+        } catch(UrlRecordNotFound $e)
38 37
         {
39 38
             // No url present so nothing to do here...
40 39
         }
Please login to merge, or discard this patch.