Completed
Push — master ( 7cc19c...938308 )
by Doğa
02:42
created
Components/SliderMedia/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 use Flynt\Features\Components\Component;
6 6
 use Flynt\Utils\Oembed;
7 7
 
8
-add_filter('Flynt/addComponentData?name=SliderMedia', function ($data) {
9
-    $data['mediaSlides'] = array_map(function ($item) {
8
+add_filter('Flynt/addComponentData?name=SliderMedia', function($data) {
9
+    $data['mediaSlides'] = array_map(function($item) {
10 10
         if ($item['mediaType'] == 'oembed') {
11 11
             $item['image'] = $item['posterImage'];
12 12
             $item['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute(
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     return $data;
23 23
 });
24 24
 
25
-add_action('wp_enqueue_scripts', function () {
25
+add_action('wp_enqueue_scripts', function() {
26 26
     Component::enqueueAssets('SliderMedia', [
27 27
         [
28 28
             'name' => 'slick-carousel',
Please login to merge, or discard this patch.