Completed
Push — master ( 7f0061...a30fc0 )
by Gino
01:53
created
components/RelatedPosts.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,9 @@
 block discarded – undo
121 121
             ->first();
122 122
 
123 123
         // Abort if there is no source, or it has no tags
124
-        if (!$post || (!$tagIds = $post->tags->lists('id')))
125
-            return;
124
+        if (!$post || (!$tagIds = $post->tags->lists('id'))) {
125
+                    return;
126
+        }
126 127
 
127 128
         // Start building our query for related posts
128 129
         $query = Post::isPublished()
Please login to merge, or discard this patch.
models/Tag.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      *
87 87
      * @var array
88 88
      */
89
-     public static $sortingOptions = [
89
+        public static $sortingOptions = [
90 90
         'name asc' => Plugin::LOCALIZATION_KEY . 'order_options.name_asc',
91 91
         'name desc' => Plugin::LOCALIZATION_KEY . 'order_options.name_desc',
92 92
         'created_at asc' => Plugin::LOCALIZATION_KEY . 'order_options.created_at_asc',
Please login to merge, or discard this patch.