Passed
Pull Request — master (#183)
by
unknown
04:15
created
Components/GridPostsLatest/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 const POST_TYPE = 'post';
10 10
 
11
-add_filter('Flynt/addComponentData?name=GridPostsLatest', function ($data) {
11
+add_filter('Flynt/addComponentData?name=GridPostsLatest', function($data) {
12 12
     $postType = POST_TYPE;
13 13
 
14 14
     $data['taxonomies'] = $data['taxonomies'] ?: [];
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $data['items'] = Timber::get_posts([
17 17
         'post_status' => 'publish',
18 18
         'post_type' => $postType,
19
-        'category' => join(',', array_map(function ($taxonomy) {
19
+        'category' => join(',', array_map(function($taxonomy) {
20 20
             return $taxonomy->term_id;
21 21
         }, $data['taxonomies'])),
22 22
         'posts_per_page' => $data['options']['columns'],
Please login to merge, or discard this patch.