Completed
Push — master ( 7f0061...a30fc0 )
by Gino
01:53
created
components/UrlHelperTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $post->setUrl($this->postPage, $this->controller);
50 50
 
51 51
         if ($post && $post->categories->count()) {
52
-            $post->categories->each(function ($category) {
52
+            $post->categories->each(function($category) {
53 53
                 $category->setUrl($this->categoryPage, $this->controller);
54 54
             });
55 55
         }
Please login to merge, or discard this patch.
components/TagList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var Collection | array
23 23
      */
24
-    public $tags = [];
24
+    public $tags = [ ];
25 25
 
26 26
     /**
27 27
      * Reference to the page name for linking to tags page
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $this->tagsPage = $this->property('tagsPage', '');
128 128
         $this->orderBy = $this->property('orderBy', 'name asc');
129 129
         $this->displayEmpty = $this->property('displayEmpty', false);
130
-        $this->limit =  $this->property('limit', 0);
130
+        $this->limit = $this->property('limit', 0);
131 131
 
132 132
         $this->tags = $this->listTags();
133 133
     }
Please login to merge, or discard this patch.
components/SeriesPosts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     protected function getPostsQuery()
64 64
     {
65
-        $query = Post::whereHas('series', function ($query) {
65
+        $query = Post::whereHas('series', function($query) {
66 66
             $query->where('slug', $this->series->slug);
67 67
         })->isPublished();
68 68
 
Please login to merge, or discard this patch.
components/RelatedPosts.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.