@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * @var Collection | array |
| 21 | 21 | */ |
| 22 | - public $posts = []; |
|
| 22 | + public $posts = [ ]; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * Reference to the page name for linking to posts |
@@ -130,11 +130,11 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | protected function prepareVars() |
| 132 | 132 | { |
| 133 | - $this->noPostsMessage = $this->page['noPostsMessage'] = $this->property('noPostsMessage'); |
|
| 134 | - $this->orderBy = $this->page['orderBy'] = $this->property('orderBy'); |
|
| 133 | + $this->noPostsMessage = $this->page[ 'noPostsMessage' ] = $this->property('noPostsMessage'); |
|
| 134 | + $this->orderBy = $this->page[ 'orderBy' ] = $this->property('orderBy'); |
|
| 135 | 135 | |
| 136 | 136 | // Page links |
| 137 | - $this->postPage = $this->page['postPage' ] = $this->property('postPage'); |
|
| 137 | + $this->postPage = $this->page[ 'postPage' ] = $this->property('postPage'); |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | public function getPostPageOptions() |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | select count(*) |
| 173 | 173 | from `ginopane_blogtaxonomy_post_tag` |
| 174 | 174 | where `ginopane_blogtaxonomy_post_tag`.`post_id` = `rainlab_blog_posts`.`id` |
| 175 | - and `ginopane_blogtaxonomy_post_tag`.`tag_id` in ('.implode(', ', $tagIds).') |
|
| 175 | + and `ginopane_blogtaxonomy_post_tag`.`tag_id` in ('.implode(', ', $tagIds) . ') |
|
| 176 | 176 | )'); |
| 177 | 177 | |
| 178 | 178 | $key = $this->property('orderBy') ?: $subQuery; |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | $posts->each( |
| 193 | 193 | function($post) |
| 194 | 194 | { |
| 195 | - $post->setUrl($this->postPage,$this->controller); |
|
| 195 | + $post->setUrl($this->postPage, $this->controller); |
|
| 196 | 196 | } |
| 197 | 197 | ); |
| 198 | 198 | |