Passed
Pull Request — master (#87)
by
unknown
11:31 queued 06:52
created
Components/GridPostsTeaser/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=GridPostsTeaser', function ($data) {
11
+add_filter('Flynt/addComponentData?name=GridPostsTeaser', function($data) {
12 12
     $postType = POST_TYPE;
13 13
 
14 14
     $data['items'] = Timber::get_posts([
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     ]);
21 21
 
22 22
     if (!empty($data['items'])) {
23
-        $data['items'] = array_map(function ($item) {
23
+        $data['items'] = array_map(function($item) {
24 24
             $item->category = get_the_category($item)[0];
25 25
             return $item;
26 26
         }, $data['items']);
Please login to merge, or discard this patch.