@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Flynt\Features\Navigation; |
4 | 4 | |
5 | -add_action('init', function () { |
|
5 | +add_action('init', function() { |
|
6 | 6 | register_nav_menus([ |
7 | 7 | 'navigation_main' => __('Navigation Main', 'flynt-theme'), |
8 | 8 | 'navigation_footer' => __('Navigation Footer', 'flynt-theme') |
@@ -3,7 +3,7 @@ |
||
3 | 3 | use Flynt\Features\Acf\OptionPages; |
4 | 4 | use Flynt\Features\AdminNotices\AdminNoticeManager; |
5 | 5 | |
6 | -add_action('init', function () { |
|
6 | +add_action('init', function() { |
|
7 | 7 | $someFeatureNumber = OptionPages::getOption('globalOptions', 'feature', 'someProductFeature', 'someFeatureNumber'); |
8 | 8 | if (!$someFeatureNumber) { |
9 | 9 | $manager = AdminNoticeManager::getInstance(); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | if (is_array($value)) { |
53 | 53 | // Loop through array and apply translations while keeping keys intact |
54 | 54 | // NOTE: assuming it's a single dimensional array |
55 | - return array_reduce(array_keys($value), function ($carry, $key) use ($value) { |
|
55 | + return array_reduce(array_keys($value), function($carry, $key) use ($value) { |
|
56 | 56 | return array_merge($carry, [ |
57 | 57 | $key => _x($value[$key], $key, 'flynt-theme') |
58 | 58 | ]); |