Passed
Pull Request — master (#60)
by Markus
04:19
created
Components/SliderImageGallery/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Flynt\Api;
6 6
 use Flynt\Utils\Options;
7 7
 
8
-add_filter('Flynt/addComponentData?name=SliderImageGallery', function ($data) {
8
+add_filter('Flynt/addComponentData?name=SliderImageGallery', function($data) {
9 9
     $data['jsonData'] = [
10 10
         'options' => Options::get('translatableOptions', 'feature', 'SliderOptions')
11 11
     ];
Please login to merge, or discard this patch.
Components/GridPostsArchive/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 const POST_TYPE = 'post';
10 10
 const FILTER_BY_TAXONOMY = 'category';
11 11
 
12
-add_filter('Flynt/addComponentData?name=GridPostsArchive', function ($data) {
12
+add_filter('Flynt/addComponentData?name=GridPostsArchive', function($data) {
13 13
     $postType = POST_TYPE;
14 14
     $taxonomy = FILTER_BY_TAXONOMY;
15 15
     $terms = get_terms([
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     ]);
19 19
     $queriedObject = get_queried_object();
20 20
     if (count($terms) > 1) {
21
-        $data['terms'] = array_map(function ($term) use ($queriedObject) {
21
+        $data['terms'] = array_map(function($term) use ($queriedObject) {
22 22
             $timberTerm = new Term($term);
23 23
             if ($queriedObject) {
24 24
                 $timberTerm->isActive = $queriedObject->taxonomy === $term->taxonomy && $queriedObject->term_id === $term->term_id;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $data['isHome'] = true;
38 38
         $data['title'] = $queriedObject->post_title ?? get_bloginfo('name');
39 39
     } else {
40
-        $data['title'] =  get_the_archive_title();
40
+        $data['title'] = get_the_archive_title();
41 41
         $data['description'] = get_the_archive_description();
42 42
     }
43 43
 
Please login to merge, or discard this patch.
Components/ListIcons/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 function createFeatherIconSelectChoices($iconKeys = [])
8 8
 {
9
-    return array_reduce($iconKeys, function ($acc, $iconKey) {
9
+    return array_reduce($iconKeys, function($acc, $iconKey) {
10 10
         $acc[$iconKey] = "<i style='width: 16px; height: 16px; vertical-align: middle; position: relative; top: -2px;margin-right: 5px' data-feather='{$iconKey}'></i> {$iconKey}";
11 11
         return $acc;
12 12
     }, []);
Please login to merge, or discard this patch.