Test Setup Failed
Push — dependabot/composer/phpstan/ph... ( d5666e )
by
unknown
06:49
created
src/States/Publishable/PreviewMode.php 1 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.