Passed
Pull Request — master (#258)
by
unknown
03:28
created
inc/customizer-colors.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             'title' => __('Colors', 'flynt'),
154 154
             'description' => 'description', // Include html tags such as <p>.
155 155
             'priority' => 160, // Mixed with top-level-section hierarchy.
156
-         ]
156
+            ]
157 157
     );
158 158
 
159 159
     $wp_customize->add_section(
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         if ($name == 'background-light') {
243 243
             /**
244 244
             Separator 1
245
-            **/
245
+             **/
246 246
 
247 247
             $wp_customize->add_setting('separator_1', array(
248 248
                 'default'           => '',
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 
261 261
             /**
262 262
             Section Title - Theme Light
263
-            **/
263
+             **/
264 264
             $wp_customize->add_setting('section_title_light', array(
265 265
                 'default'           => '',
266 266
                 'sanitize_callback' => 'flynt_text_sanitization',
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
     //Return default if no color provided
341 341
     if (empty($color)) {
342
-          return $default;
342
+            return $default;
343 343
     }
344 344
 
345 345
     //Sanitize $color if "#" is provided
@@ -447,14 +447,14 @@  discard block
 block discarded – undo
447 447
                     };
448 448
                     echo (get_theme_mod('theme_colors_accent')) ? '--color-accent-alpha: ' . hex2rgba(get_theme_mod('theme_colors_accent'), $alphaColorAmount) . ';' : null;
449 449
                     echo (get_theme_mod('theme_colors_accent')) ? '--color-accent-hover: ' . colorBrightness(get_theme_mod('theme_colors_accent'), $darkenColorAmount) . ';' : null;
450
-               } ?>
450
+                } ?>
451 451
                <?php if ($hasChangedLight) {
452 452
                     foreach ($colorsLight as $name => $color) {
453 453
                         echo (get_theme_mod('theme_colors_' . $name)) ? '--color-' . $name . ': ' . get_theme_mod('theme_colors_' . $name) . ';' : null;
454 454
                     };
455 455
                     echo (get_theme_mod('theme_colors_accent-light')) ? '--color-accent-light-alpha: ' . hex2rgba(get_theme_mod('theme_colors_accent-light'), $alphaColorAmount) . ';' : null;
456 456
                     echo (get_theme_mod('theme_colors_accent-light')) ? '--color-accent-light-hover: ' . colorBrightness(get_theme_mod('theme_colors_accent-light'), $darkenColorAmount) . ';' : null;
457
-               } ?>
457
+                } ?>
458 458
                 <?php if ($hasChangedDark) {
459 459
                     foreach ($colorsDark as $name => $color) {
460 460
                         echo (get_theme_mod('theme_colors_' . $name)) ? '--color-' . $name . ': ' . get_theme_mod('theme_colors_' . $name) . ';' : null;
Please login to merge, or discard this patch.