Completed
Push — constructionplanless ( 5132cc...04f264 )
by Dominik
01:57
created
Components/BlockMediaText/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\Features\Components\Component;
6 6
 use Flynt\Utils\Oembed;
7 7
 
8
-add_filter('Flynt/addComponentData?name=BlockMediaText', function ($data) {
8
+add_filter('Flynt/addComponentData?name=BlockMediaText', function($data) {
9 9
     Component::enqueueAssets('BlockMediaText');
10 10
     if ($data['mediaType'] === 'oembedVideo') {
11 11
         $data['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute(
Please login to merge, or discard this patch.
Components/SliderMedia/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  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) {
8
+add_filter('Flynt/addComponentData?name=SliderMedia', function($data) {
9 9
     Component::enqueueAssets('SliderMedia', [
10 10
         [
11 11
             'name' => 'slick-carousel',
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         ]
20 20
     ]);
21 21
 
22
-    $data['mediaSlides'] = array_map(function ($item) {
22
+    $data['mediaSlides'] = array_map(function($item) {
23 23
         if ($item['mediaType'] == 'oembed') {
24 24
             $item['image'] = $item['posterImage'];
25 25
             $item['oembedLazyLoad'] = Oembed::setSrcAsDataAttribute(
Please login to merge, or discard this patch.
Components/BlockImage/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=BlockImage', function ($data) {
7
+add_filter('Flynt/addComponentData?name=BlockImage', function($data) {
8 8
     Component::enqueueAssets('BlockImage');
9 9
 
10 10
     return $data;
Please login to merge, or discard this patch.
Components/SliderImages/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=SliderImages', function ($data) {
7
+add_filter('Flynt/addComponentData?name=SliderImages', function($data) {
8 8
     Component::enqueueAssets('SliderImages', [
9 9
         [
10 10
             'name' => 'slick-carousel',
Please login to merge, or discard this patch.
Components/SliderImageGallery/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=SliderImageGallery', function ($data) {
7
+add_filter('Flynt/addComponentData?name=SliderImageGallery', function($data) {
8 8
     Component::enqueueAssets('SliderImageGallery', [
9 9
         [
10 10
             'name' => 'slick-carousel',
Please login to merge, or discard this patch.
Components/BlockBaseStyle/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_filter('Flynt/addComponentData?name=BlockBaseStyle', function ($data) {
7
+add_filter('Flynt/addComponentData?name=BlockBaseStyle', function($data) {
8 8
     Component::enqueueAssets('BlockBaseStyle');
9 9
     return $data;
10 10
 });
Please login to merge, or discard this patch.
Components/NavigationFooter/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 use Flynt\Features\Components\Component;
6 6
 use Timber\Menu;
7 7
 
8
-add_action('init', function () {
8
+add_action('init', function() {
9 9
     register_nav_menus([
10 10
         'navigation_footer' => __('Navigation Footer', 'flynt-starter-theme')
11 11
     ]);
12 12
 });
13 13
 
14
-add_filter('Flynt/addComponentData?name=NavigationFooter', function ($data) {
14
+add_filter('Flynt/addComponentData?name=NavigationFooter', function($data) {
15 15
     Component::enqueueAssets('NavigationFooter');
16 16
 
17 17
     // set max level of the menu
Please login to merge, or discard this patch.
Components/BlockCookieNotice/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 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) {
7
+add_filter('Flynt/addComponentData?name=BlockCookieNotice', function($data) {
8 8
     Component::enqueueAssets('BlockCookieNotice');
9 9
 
10 10
     return $data;
Please login to merge, or discard this patch.
inc/Utils/FileLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         if (count($files) === 0) {
45 45
             $dir = get_template_directory() . '/' . $dir;
46 46
 
47
-            self::iterateDir($dir, function ($file) {
47
+            self::iterateDir($dir, function($file) {
48 48
                 if ($file->isDir()) {
49 49
                     $dirPath = trim(str_replace(get_template_directory(), '', $file->getPathname()), '/');
50 50
                     self::loadPhpFiles($dirPath);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 }
55 55
             });
56 56
         } else {
57
-            array_walk($files, function ($file) use ($dir) {
57
+            array_walk($files, function($file) use ($dir) {
58 58
                 $filePath = $dir . '/' . ltrim($file, '/');
59 59
 
60 60
                 if (!locate_template($filePath, true, true)) {
Please login to merge, or discard this patch.