@@ -16,7 +16,7 @@ |
||
| 16 | 16 | try { |
| 17 | 17 | DB::beginTransaction(); |
| 18 | 18 | |
| 19 | - $invitation = Invitation::make((string) $invitee->id, (string) $inviter->id); |
|
| 19 | + $invitation = Invitation::make((string)$invitee->id, (string)$inviter->id); |
|
| 20 | 20 | |
| 21 | 21 | InvitationState::make($invitation)->apply('invite'); |
| 22 | 22 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | ->performedOn($this->manager->existingModel()) |
| 60 | 60 | ->log('published'); |
| 61 | 61 | |
| 62 | - return redirect()->to($this->manager->route('edit'))->with('messages.success', $this->manager->details()->title . ' is online gezet.'); |
|
| 62 | + return redirect()->to($this->manager->route('edit'))->with('messages.success', $this->manager->details()->title.' is online gezet.'); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | public function unpublish() |
@@ -73,12 +73,12 @@ discard block |
||
| 73 | 73 | ->performedOn($this->manager->existingModel()) |
| 74 | 74 | ->log('unpublished'); |
| 75 | 75 | |
| 76 | - return redirect()->to($this->manager->route('edit'))->with('messages.success', $this->manager->details()->title . ' is offline gehaald.'); |
|
| 76 | + return redirect()->to($this->manager->route('edit'))->with('messages.success', $this->manager->details()->title.' is offline gehaald.'); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | public function findAll(): Collection |
| 80 | 80 | { |
| 81 | - return $this->manager->existingModel()->published()->get()->map(function ($model) { |
|
| 81 | + return $this->manager->existingModel()->published()->get()->map(function($model) { |
|
| 82 | 82 | return $this->managers->findByModel($model); |
| 83 | 83 | }); |
| 84 | 84 | } |
@@ -129,10 +129,10 @@ discard block |
||
| 129 | 129 | $class = 'text-warning'; |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - $statusAsLabel = '<span class="' . $class . '">' . $label . '</span>'; |
|
| 132 | + $statusAsLabel = '<span class="'.$class.'">'.$label.'</span>'; |
|
| 133 | 133 | |
| 134 | 134 | if (!$plain && $this->hasPreviewUrl()) { |
| 135 | - $statusAsLabel = '<a href="' . $this->previewUrl() . '" target="_blank">' . $statusAsLabel . '</a>'; |
|
| 135 | + $statusAsLabel = '<a href="'.$this->previewUrl().'" target="_blank">'.$statusAsLabel.'</a>'; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | return $statusAsLabel; |