Test Setup Failed
Push — dependabot/composer/maennchen/... ( 24f9c3...cf82e5 )
by
unknown
184:27 queued 177:04
created
src/States/Publishable/PreviewMode.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public static function fromRequest()
22 22
     {
23
-        if(Str::startsWith(request()->path(), 'admin/')) return new static(false);
23
+        if (Str::startsWith(request()->path(), 'admin/')) return new static(false);
24 24
 
25 25
         $active = (session()->get('preview-mode', static::DEFAULT) === true && auth()->guard('chief')->check());
26 26
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,9 @@
 block discarded – undo
20 20
 
21 21
     public static function fromRequest()
22 22
     {
23
-        if(Str::startsWith(request()->path(), 'admin/')) return new static(false);
23
+        if(Str::startsWith(request()->path(), 'admin/')) {
24
+            return new static(false);
25
+        }
24 26
 
25 27
         $active = (session()->get('preview-mode', static::DEFAULT) === true && auth()->guard('chief')->check());
26 28
 
Please login to merge, or discard this patch.