|
@@ -61,7 +61,7 @@ discard block |
|
|
block discarded – undo |
|
61
|
61
|
->performedOn($this->manager->existingModel()) |
|
62
|
62
|
->log('published'); |
|
63
|
63
|
|
|
64
|
|
- return redirect()->back()->with('messages.success', $this->manager->details()->title . ' is online gezet.'); |
|
|
64
|
+ return redirect()->back()->with('messages.success', $this->manager->details()->title.' is online gezet.'); |
|
65
|
65
|
} |
|
66
|
66
|
|
|
67
|
67
|
public function unpublish() |
|
@@ -75,12 +75,12 @@ discard block |
|
|
block discarded – undo |
|
75
|
75
|
->performedOn($this->manager->existingModel()) |
|
76
|
76
|
->log('unpublished'); |
|
77
|
77
|
|
|
78
|
|
- return redirect()->back()->with('messages.success', $this->manager->details()->title . ' is offline gehaald.'); |
|
|
78
|
+ return redirect()->back()->with('messages.success', $this->manager->details()->title.' is offline gehaald.'); |
|
79
|
79
|
} |
|
80
|
80
|
|
|
81
|
81
|
public function findAll(): Collection |
|
82
|
82
|
{ |
|
83
|
|
- return $this->manager->existingModel()->published()->get()->map(function ($model) { |
|
|
83
|
+ return $this->manager->existingModel()->published()->get()->map(function($model) { |
|
84
|
84
|
return $this->managers->findByModel($model); |
|
85
|
85
|
}); |
|
86
|
86
|
} |
|
@@ -137,10 +137,10 @@ discard block |
|
|
block discarded – undo |
|
137
|
137
|
$class = 'text-warning'; |
|
138
|
138
|
} |
|
139
|
139
|
|
|
140
|
|
- $statusAsLabel = '<span class="' . $class . '">' . $label . '</span>'; |
|
|
140
|
+ $statusAsLabel = '<span class="'.$class.'">'.$label.'</span>'; |
|
141
|
141
|
|
|
142
|
142
|
if (!$plain && $this->hasPreviewUrl()) { |
|
143
|
|
- $statusAsLabel = '<a href="' . $this->previewUrl() . '" target="_blank">' . $statusAsLabel . '</a>'; |
|
|
143
|
+ $statusAsLabel = '<a href="'.$this->previewUrl().'" target="_blank">'.$statusAsLabel.'</a>'; |
|
144
|
144
|
} |
|
145
|
145
|
|
|
146
|
146
|
return $statusAsLabel; |
Please login to merge, or discard this patch.