Passed
Pull Request — master (#258)
by
unknown
05:18
created
inc/customizerLogo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 use WP_Customize_Image_Control;
10 10
 
11
-add_action('customize_register', function ($wp_customize) {
11
+add_action('customize_register', function($wp_customize) {
12 12
     // Add option to replace header logo
13 13
     $wp_customize->add_setting(
14 14
         'custom_header_logo',
Please login to merge, or discard this patch.
lib/Utils/ColorHelpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             $b = hexdec(substr($color, 4, 2));
30 30
         }
31 31
 
32
-        $rgba = [ $r, $g, $b, $opacity ];
32
+        $rgba = [$r, $g, $b, $opacity];
33 33
 
34 34
         if ($returnType === 'string') {
35 35
             return 'rgba(' . implode(',', $rgba) . ')';
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $s = round($s * 100, 1);
86 86
         $l = round($l * 100, 1);
87 87
 
88
-        $hsla = [ $h, "$s%", "$l%", $opacity ];
88
+        $hsla = [$h, "$s%", "$l%", $opacity];
89 89
 
90 90
         if ($returnType === 'string') {
91 91
             return 'hsla(' . implode(',', $hsla) . ')';
Please login to merge, or discard this patch.
Components/BlockPostFooter/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\Utils\Options;
6 6
 
7
-add_filter('Flynt/addComponentData?name=BlockPostFooter', function ($data) {
7
+add_filter('Flynt/addComponentData?name=BlockPostFooter', function($data) {
8 8
 
9 9
     return $data;
10 10
 });
Please login to merge, or discard this patch.
lib/Utils/ArrayHelpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
     public static function indexedValuesToAssocKeys(array $array)
37 37
     {
38 38
         _deprecated_function(__METHOD__, '%%NEXT_VERSION%%');
39
-        $values = array_map(function ($value) {
39
+        $values = array_map(function($value) {
40 40
             return is_array($value) ? $value : [];
41 41
         }, $array);
42 42
 
43
-        $keys = array_map(function ($key) use ($array) {
43
+        $keys = array_map(function($key) use ($array) {
44 44
             return is_int($key) ? $array[$key] : $key;
45 45
         }, array_keys($array));
46 46
 
Please login to merge, or discard this patch.
Components/NavigationBurger/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 Timber;
6 6
 use Flynt\Utils\Asset;
7 7
 
8
-add_action('init', function () {
8
+add_action('init', function() {
9 9
     register_nav_menus([
10 10
         'navigation_burger' => __('Navigation Burger', 'flynt')
11 11
     ]);
12 12
 });
13 13
 
14
-add_filter('Flynt/addComponentData?name=NavigationBurger', function ($data) {
14
+add_filter('Flynt/addComponentData?name=NavigationBurger', function($data) {
15 15
     $data['menu'] = new Timber\Menu('navigation_burger');
16 16
     $data['logo'] = [
17 17
         'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('../assets/images/logo.svg'),
Please login to merge, or discard this patch.
Components/NavigationMain/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 Timber;
6 6
 use Flynt\Utils\Asset;
7 7
 
8
-add_action('init', function () {
8
+add_action('init', function() {
9 9
     register_nav_menus([
10 10
         'navigation_main' => __('Navigation Main', 'flynt')
11 11
     ]);
12 12
 });
13 13
 
14
-add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) {
14
+add_filter('Flynt/addComponentData?name=NavigationMain', function($data) {
15 15
     $data['menu'] = new Timber\Menu('navigation_main');
16 16
     $data['logo'] = [
17 17
         'src' => get_theme_mod('custom_header_logo') ? get_theme_mod('custom_header_logo') : Asset::requireUrl('../assets/images/logo.svg'),
Please login to merge, or discard this patch.
inc/customizer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,21 +11,21 @@  discard block
 block discarded – undo
11 11
 use WP_Customize_Color_Control;
12 12
 use Flynt\Variables;
13 13
 
14
-add_action('acf/init', function () {
14
+add_action('acf/init', function() {
15 15
     $options = Options::getGlobal('Customizer');
16 16
     if ($options['enabled']) {
17
-        add_action('customize_register', function ($wp_customize) {
17
+        add_action('customize_register', function($wp_customize) {
18 18
             $wp_customize->register_control_type('Flynt\Customizer\RangeControl');
19 19
 
20 20
             addSizesSettings($wp_customize);
21 21
             addColorsSettings($wp_customize);
22 22
         });
23 23
 
24
-        add_action('customize_controls_enqueue_scripts', function () {
24
+        add_action('customize_controls_enqueue_scripts', function() {
25 25
             wp_enqueue_script(
26 26
                 'Flynt/customizerControls',
27 27
                 Asset::requireUrl('assets/customizerControls.js'),
28
-                ['jquery','customize-preview']
28
+                ['jquery', 'customize-preview']
29 29
             );
30 30
             wp_enqueue_style(
31 31
                 'Flynt/customizerControls',
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
             );
34 34
         });
35 35
 
36
-        add_action('customize_preview_init', function () {
36
+        add_action('customize_preview_init', function() {
37 37
             wp_enqueue_script(
38 38
                 'Flynt/customizerPreview',
39 39
                 Asset::requireUrl('assets/customizerPreview.js'),
40
-                ['jquery','customize-preview']
40
+                ['jquery', 'customize-preview']
41 41
             );
42 42
             $themes = Variables\getColors();
43
-            $config = array_map(function ($theme) {
43
+            $config = array_map(function($theme) {
44 44
                 return $theme['colors'];
45 45
             }, $themes);
46 46
             wp_localize_script('Flynt/customizerPreview', 'FlyntCustomizerData', $config);
Please login to merge, or discard this patch.
inc/cssVariables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Flynt\Utils\ColorHelpers;
10 10
 use Flynt\Variables;
11 11
 
12
-add_action('wp_head', function () {
12
+add_action('wp_head', function() {
13 13
     $themes = Variables\getColors();
14 14
     $sizes = Variables\getSizes();
15 15
     ?>
Please login to merge, or discard this patch.