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