Completed
Push — constructionplanless ( c6433a...a84d3d )
by Dominik
01:33
created
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/timber.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 use Flynt\Utils\Asset;
5 5
 use function Flynt\Features\TimberLoader\renderTwigIndex;
6 6
 
7
-add_filter('get_twig', function ($twig) {
7
+add_filter('get_twig', function($twig) {
8 8
     $twig->addFunction(new Twig_SimpleFunction('renderComponent', 'renderComponent'));
9 9
 
10
-    $twig->addFunction(new Twig_SimpleFunction('renderFlexibleContent', function ($fcField) {
11
-        return implode('', array_map(function ($field) {
10
+    $twig->addFunction(new Twig_SimpleFunction('renderFlexibleContent', function($fcField) {
11
+        return implode('', array_map(function($field) {
12 12
             return renderComponent(ucfirst($field['acf_fc_layout']), $field);
13 13
         }, $fcField));
14 14
     }));
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     return $twig;
17 17
 });
18 18
 
19
-function renderComponent ($name, $data = [])
19
+function renderComponent($name, $data = [])
20 20
 {
21 21
     $data = apply_filters(
22 22
         'Flynt/addComponentData',
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
     return renderTwigIndex(null, $name, $data, null);
39 39
 };
40 40
 
41
-add_action('after_setup_theme', function () {
41
+add_action('after_setup_theme', function() {
42 42
     new Timber\Timber();
43 43
 });
44 44
 
45
-add_action('Flynt\afterRegisterFeatures', function () {
45
+add_action('Flynt\afterRegisterFeatures', function() {
46 46
     Component::enqueueAssets('DocumentDefault', [
47 47
         [
48 48
           'name' => 'console-polyfill',
Please login to merge, or discard this patch.