Completed
Push — master ( dec10e...6c3469 )
by Gino
01:25
created
components/RelatedPosts.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.