@@ -71,7 +71,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -111,11 +111,11 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | $class = $this->isPublished() ? 'text-success' : 'text-error'; |
| 113 | 113 | |
| 114 | - $statusAsLabel = '<span class="'. $class .'"><em>' . $label . '</em></span>'; |
|
| 114 | + $statusAsLabel = '<span class="'.$class.'"><em>'.$label.'</em></span>'; |
|
| 115 | 115 | |
| 116 | - if(!$plain && $this->hasPreviewUrl()) |
|
| 116 | + if (!$plain && $this->hasPreviewUrl()) |
|
| 117 | 117 | { |
| 118 | - $statusAsLabel = '<a href="'.$this->previewUrl().'" target="_blank">'. $statusAsLabel .'</a>'; |
|
| 118 | + $statusAsLabel = '<a href="'.$this->previewUrl().'" target="_blank">'.$statusAsLabel.'</a>'; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | return $statusAsLabel; |
@@ -125,9 +125,9 @@ |
||
| 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 | |