Completed
Push — componentlibrary ( 33b120...76908a )
by
unknown
01:28
created
Components/GridDownloadPortrait/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('GridDownloadPortrait');
10 10
     });
11 11
 
12 12
     if (!empty($data['items'])) {
13
-        $data['items'] = array_map(function ($item) {
13
+        $data['items'] = array_map(function($item) {
14 14
             if ($item['itemType'] === 'itemFile') {
15 15
                 $fileSize = filesize(get_attached_file($item['file']['id']));
16 16
                 $item['file']['fileSize'] = size_format($fileSize);
Please login to merge, or discard this patch.