Completed
Push — componentlibrary-svgplaceholde... ( e44b76 )
by
unknown
01:18
created
Components/ListPostCards/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Timber\Timber;
6 6
 use Timber\Post;
7 7
 
8
-add_filter('Flynt/addComponentData?name=ListPostCards', function ($data) {
9
-    add_action('wp_enqueue_scripts', function () {
8
+add_filter('Flynt/addComponentData?name=ListPostCards', function($data) {
9
+    add_action('wp_enqueue_scripts', function() {
10 10
         Component::enqueueAssets('ListPostCards');
11 11
     });
12 12
 
Please login to merge, or discard this patch.
Components/HeroCta/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=HeroCta', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=HeroCta', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('HeroCta');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/HeroImageText/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=HeroImageText', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=HeroImageText', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('HeroImageText');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/LayoutMultiplePosts/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 use Flynt\Features\Components\Component;
7 7
 use WP_Query;
8 8
 
9
-add_action('wp_enqueue_scripts', function () {
9
+add_action('wp_enqueue_scripts', function() {
10 10
     Component::enqueueAssets('LayoutMultiplePosts');
11 11
 });
12 12
 
13
-add_filter('Flynt/addComponentData?name=LayoutMultiplePosts', function ($data) {
13
+add_filter('Flynt/addComponentData?name=LayoutMultiplePosts', function($data) {
14 14
     $query = !empty($data['query']) ? $data['query'] : false;
15 15
     $posts = Timber::get_posts($query);
16 16
     if (!empty($posts)) {
17
-        $posts = array_map(function ($post) {
17
+        $posts = array_map(function($post) {
18 18
             $fields = get_fields($post->id);
19 19
             $post->fields = $fields === false ? [] : $fields;
20 20
             return $post;
Please login to merge, or discard this patch.
Components/GridContentLists/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=GridContentLists', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=GridContentLists', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('GridContentLists');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/BlockCookieNotice/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 use Flynt\Features\Acf\OptionPages;
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=BlockCookieNotice', function ($data) {
8
-    add_action('wp_enqueue_scripts', function () {
7
+add_filter('Flynt/addComponentData?name=BlockCookieNotice', function($data) {
8
+    add_action('wp_enqueue_scripts', function() {
9 9
         Component::enqueueAssets('BlockCookieNotice');
10 10
     });
11 11
 
Please login to merge, or discard this patch.
Components/BlockVideoOembed/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Flynt\Features\Components\Component;
6 6
 use Flynt\Utils\Oembed;
7 7
 
8
-add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) {
9
-    add_action('wp_enqueue_scripts', function () {
8
+add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) {
9
+    add_action('wp_enqueue_scripts', function() {
10 10
         Component::enqueueAssets('BlockVideoOembed');
11 11
     });
12 12
 
Please login to merge, or discard this patch.
Components/DocumentDefault/functions.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
 add_action('wp_enqueue_scripts', function () {
10 10
     Component::enqueueAssets('DocumentDefault', [
11 11
     [
12
-      'name' => 'console-polyfill',
13
-      'type' => 'script',
14
-      'path' => 'vendor/console.js'
12
+        'name' => 'console-polyfill',
13
+        'type' => 'script',
14
+        'path' => 'vendor/console.js'
15 15
     ],
16 16
     [
17
-      'name' => 'babel-polyfill',
18
-      'type' => 'script',
19
-      'path' => 'vendor/babel-polyfill.js'
17
+        'name' => 'babel-polyfill',
18
+        'type' => 'script',
19
+        'path' => 'vendor/babel-polyfill.js'
20 20
     ],
21 21
     [
22
-      'name' => 'document-register-element',
23
-      'type' => 'script',
24
-      'path' => 'vendor/document-register-element.js'
22
+        'name' => 'document-register-element',
23
+        'type' => 'script',
24
+        'path' => 'vendor/document-register-element.js'
25 25
     ],
26 26
     [
27
-      'name' => 'normalize',
28
-      'path' => 'vendor/normalize.css',
29
-      'type' => 'style'
27
+        'name' => 'normalize',
28
+        'path' => 'vendor/normalize.css',
29
+        'type' => 'style'
30 30
     ]
31 31
     ]);
32 32
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Flynt\Features\Components\Component;
7 7
 use Flynt\Utils\Asset;
8 8
 
9
-add_action('wp_enqueue_scripts', function () {
9
+add_action('wp_enqueue_scripts', function() {
10 10
     Component::enqueueAssets('DocumentDefault', [
11 11
     [
12 12
       'name' => 'console-polyfill',
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     ]);
38 38
 }, 0);
39 39
 
40
-add_filter('Flynt/addComponentData?name=DocumentDefault', function ($data) {
40
+add_filter('Flynt/addComponentData?name=DocumentDefault', function($data) {
41 41
     $context = Timber::get_context();
42 42
 
43 43
     $output = [
Please login to merge, or discard this patch.
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.