@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @var Collection | array |
| 31 | 31 | */ |
| 32 | - public $posts = []; |
|
| 32 | + public $posts = [ ]; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Reference to the page name for linking to posts |
@@ -132,10 +132,10 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | private function prepareVars() |
| 134 | 134 | { |
| 135 | - $this->orderBy = $this->page['orderBy'] = $this->property('orderBy'); |
|
| 135 | + $this->orderBy = $this->page[ 'orderBy' ] = $this->property('orderBy'); |
|
| 136 | 136 | |
| 137 | 137 | // Page links |
| 138 | - $this->postPage = $this->page['postPage' ] = $this->property('postPage'); |
|
| 138 | + $this->postPage = $this->page[ 'postPage' ] = $this->property('postPage'); |
|
| 139 | 139 | |
| 140 | 140 | // Exceptions |
| 141 | 141 | $this->populateFilters(); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | $query = Post::isPublished() |
| 178 | 178 | ->where('id', '<>', $post->id) |
| 179 | - ->whereHas('tags', function ($tag) use ($tagIds) { |
|
| 179 | + ->whereHas('tags', function($tag) use ($tagIds) { |
|
| 180 | 180 | $tag->whereIn('id', $tagIds); |
| 181 | 181 | }) |
| 182 | 182 | ->with('tags'); |