Passed
Push — 0.3 ( 9cb195...9cd874 )
by Ben
69:50 queued 33:49
created
src/Management/Assistants/PublishAssistant.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function findAll(): Collection
73 73
     {
74
-        return $this->model->published()->get()->map(function ($model) {
74
+        return $this->model->published()->get()->map(function($model) {
75 75
             return $this->managers->findByModel($model);
76 76
         });
77 77
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     public function guard($verb): Assistant
95 95
     {
96
-        if (! $this->can($verb)) {
96
+        if (!$this->can($verb)) {
97 97
             NotAllowedManagerRoute::notAllowedVerb($verb, $this->manager);
98 98
         }
99 99
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $label = $this->publicationStatusAsPlainLabel();
111 111
 
112
-        if ($plain ||  ! $this->hasPreviewUrl()) {
112
+        if ($plain || !$this->hasPreviewUrl()) {
113 113
             return $label;
114 114
         }
115 115
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     public function previewUrl(): string
145 145
     {
146 146
         if (!$this->hasPreviewUrl()) {
147
-            throw new \Exception('Managed model ' . get_class($this->model) . ' should implement ' . ProvidesUrl::class);
147
+            throw new \Exception('Managed model '.get_class($this->model).' should implement '.ProvidesUrl::class);
148 148
         }
149 149
 
150 150
         return $this->model->previewUrl();
Please login to merge, or discard this patch.