Completed
Push — jquery-cdn ( 400c4e...bf2c1a )
by Doğa
02:48
created
Components/BlockMediaText/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 use Flynt\Features\Components\Component;
6 6
 use Flynt\Utils\Oembed;
7 7
 
8
-add_action('wp_enqueue_scripts', function () {
8
+add_action('wp_enqueue_scripts', function() {
9 9
     Component::enqueueAssets('BlockMediaText');
10 10
 });
11 11
 
12
-add_filter('Flynt/addComponentData?name=BlockMediaText', function ($data) {
12
+add_filter('Flynt/addComponentData?name=BlockMediaText', function($data) {
13 13
     if ($data['mediaType'] === 'oembedVideo') {
14 14
         $data['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute(
15 15
             $data['oembed'],
Please login to merge, or discard this patch.
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['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute(
12 12
                 $item['oembed'],
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     return $data;
22 22
 });
23 23
 
24
-add_action('wp_enqueue_scripts', function () {
24
+add_action('wp_enqueue_scripts', function() {
25 25
     Component::enqueueAssets('SliderMedia', [
26 26
         [
27 27
             'name' => 'slick-carousel',
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,11 +5,11 @@
 block discarded – undo
5 5
 use Flynt\Features\Components\Component;
6 6
 use Flynt\Utils\Oembed;
7 7
 
8
-add_action('wp_enqueue_scripts', function () {
8
+add_action('wp_enqueue_scripts', function() {
9 9
     Component::enqueueAssets('BlockVideoOembed');
10 10
 });
11 11
 
12
-add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) {
12
+add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) {
13 13
     $data['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute(
14 14
         $data['oembed'],
15 15
         [
Please login to merge, or discard this patch.
lib/Utils/Asset.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         return self::add('enqueue', $options);
38 38
     }
39 39
 
40
+    /**
41
+     * @param string $returnType
42
+     */
40 43
     protected static function get($returnType, $asset)
41 44
     {
42 45
         $distPath = get_template_directory() . '/dist';
@@ -66,6 +69,9 @@  discard block
 block discarded – undo
66 69
         return false;
67 70
     }
68 71
 
72
+    /**
73
+     * @param string $funcType
74
+     */
69 75
     protected static function add($funcType, $options)
70 76
     {
71 77
         $options = array_merge(self::DEFAULT_OPTIONS, $options);
Please login to merge, or discard this patch.
Features/Jquery/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Flynt\Utils\Asset;
6 6
 use Flynt\Utils\Feature;
7 7
 
8
-add_action('wp_enqueue_scripts', function () {
8
+add_action('wp_enqueue_scripts', function() {
9 9
     $jqueryVersion = wp_scripts()->registered['jquery']->ver;
10 10
     wp_deregister_script('jquery');
11 11
 
Please login to merge, or discard this patch.