Completed
Push — componentlibrary ( 772cab...91f640 )
by
unknown
02:01
created
Components/NavigationFooter/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 // NOTE: Datamodelling: done
3 3
 namespace Flynt\Components\NavigationFooter;
4 4
 
5
-add_action('init', function () {
5
+add_action('init', function() {
6 6
     register_nav_menus([
7 7
         'navigation_footer' => __('Navigation Footer', 'flynt-starter-theme')
8 8
     ]);
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
 use Flynt\Utils\Asset;
13 13
 use Timber\Menu;
14 14
 
15
-add_filter('Flynt/addComponentData?name=NavigationFooter', function ($data) {
16
-    add_action('wp_enqueue_scripts', function () {
15
+add_filter('Flynt/addComponentData?name=NavigationFooter', function($data) {
16
+    add_action('wp_enqueue_scripts', function() {
17 17
         Component::enqueueAssets('NavigationFooter');
18 18
     });
19 19
 
Please login to merge, or discard this patch.
Components/NavigationMain/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace Flynt\Components\NavigationMain;
4 4
 
5
-add_action('init', function () {
5
+add_action('init', function() {
6 6
     register_nav_menus([
7 7
         'navigation_main' => __('Navigation Main', 'flynt-starter-theme')
8 8
     ]);
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 use Flynt\Features\Components\Component;
12 12
 use Timber\Menu;
13 13
 
14
-add_action('wp_enqueue_scripts', function () {
14
+add_action('wp_enqueue_scripts', function() {
15 15
     Component::enqueueAssets('NavigationMain');
16 16
 });
17 17
 
18
-add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) {
18
+add_filter('Flynt/addComponentData?name=NavigationMain', function($data) {
19 19
     // set max level of the menu
20 20
     $data['maxLevel'] = 0;
21 21
     $data['menuSlug'] = !empty($data['menuSlug']) ? $data['menuSlug'] : '';
Please login to merge, or discard this patch.