Completed
Pull Request — master (#223)
by Philippe
93:49 queued 48:07
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.