Completed
Push — componentlibrary ( ab0661...d9b73c )
by
unknown
02:03 queued 11s
created
Components/ListSocial/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 use Flynt\Utils\Asset;
6 6
 use Flynt\Features\Components\Component;
7 7
 
8
-add_filter('Flynt/addComponentData?name=ListSocial', function ($data) {
9
-    add_action('wp_enqueue_scripts', function () {
8
+add_filter('Flynt/addComponentData?name=ListSocial', function($data) {
9
+    add_action('wp_enqueue_scripts', function() {
10 10
         Component::enqueueAssets('ListSocial');
11 11
     });
12 12
 
13 13
     if (!empty($data['social'])) {
14
-        $data['social'] = array_map(function ($item) {
14
+        $data['social'] = array_map(function($item) {
15 15
             $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg");
16 16
             return $item;
17 17
         }, $data['social']);
Please login to merge, or discard this patch.