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