Completed
Push — componentlibrary_streamline-ph... ( d7b4f6 )
by Doğa
01:42
created
Components/GridDownloadPortrait/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Api;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) {
7
+add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) {
8 8
     if (!empty($data['items'])) {
9
-        $data['items'] = array_map(function ($item) {
9
+        $data['items'] = array_map(function($item) {
10 10
             if ($item['itemType'] === 'itemFile') {
11 11
                 $fileSize = filesize(get_attached_file($item['file']['id']));
12 12
                 $item['file']['fileSize'] = size_format($fileSize);
Please login to merge, or discard this patch.