@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * |
| 153 | 153 | * If trash is disabled, the post or page is permanently deleted. |
| 154 | 154 | * |
| 155 | - * @return false|array|WP_Post|null Post data array, otherwise false. |
|
| 155 | + * @return Model Post data array, otherwise false. |
|
| 156 | 156 | */ |
| 157 | 157 | public function trash() |
| 158 | 158 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | /** |
| 167 | 167 | * Restore a post or page from the Trash |
| 168 | 168 | * |
| 169 | - * @return WP_Post|false WP_Post object. False on failure. |
|
| 169 | + * @return Model WP_Post object. False on failure. |
|
| 170 | 170 | */ |
| 171 | 171 | public function untrash() |
| 172 | 172 | { |
@@ -47,10 +47,10 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * Render the shortcode to string |
|
| 51 | - * |
|
| 52 | - * @return string |
|
| 53 | - */ |
|
| 50 | + * Render the shortcode to string |
|
| 51 | + * |
|
| 52 | + * @return string |
|
| 53 | + */ |
|
| 54 | 54 | public function render() |
| 55 | 55 | { |
| 56 | 56 | $dedicated_method = "{$this->tag}_handler"; |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | protected function handler() |
| 71 | 71 | { |
| 72 | - return ''; // Override this in a sub-class |
|
| 72 | + return ''; // Override this in a sub-class |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | $modelClass = $this->model ? get_class($this->model) : Post::class; |
| 74 | 74 | |
| 75 | 75 | return Collection::make($this->query->get_posts()) |
| 76 | - ->map(function ($post) use ($modelClass) { |
|
| 76 | + ->map(function($post) use ($modelClass) { |
|
| 77 | 77 | return new $modelClass($post); |
| 78 | 78 | }); |
| 79 | 79 | } |