Passed
Pull Request — master (#258)
by
unknown
03:57
created
inc/customizer-colors.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             'title' => __('Colors', 'flynt'),
126 126
             'description' => 'description', // Include html tags such as <p>.
127 127
             'priority' => 160, // Mixed with top-level-section hierarchy.
128
-         ]
128
+            ]
129 129
     );
130 130
 
131 131
     $wp_customize->add_section(
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
     //Return default if no color provided
279 279
     if (empty($color)) {
280
-          return $default;
280
+            return $default;
281 281
     }
282 282
 
283 283
     //Sanitize $color if "#" is provided
@@ -385,14 +385,14 @@  discard block
 block discarded – undo
385 385
                     };
386 386
                     echo (get_theme_mod('theme_colors_accent')) ? '--color-accent-alpha: ' . hex2rgba(get_theme_mod('theme_colors_accent'), $alphaColorAmount) . ';' : null;
387 387
                     echo (get_theme_mod('theme_colors_accent')) ? '--color-accent-hover: ' . colorBrightness(get_theme_mod('theme_colors_accent'), $darkenColorAmount) . ';' : null;
388
-               } ?>
388
+                } ?>
389 389
                <?php if ($hasChangedLight) {
390 390
                     foreach ($colorsLight as $name => $color) {
391 391
                         echo (get_theme_mod('theme_colors_' . $name)) ? '--color-' . $name . ': ' . get_theme_mod('theme_colors_' . $name) . ';' : null;
392 392
                     };
393 393
                     echo (get_theme_mod('theme_colors_accent-light')) ? '--color-accent-light-alpha: ' . hex2rgba(get_theme_mod('theme_colors_accent-light'), $alphaColorAmount) . ';' : null;
394 394
                     echo (get_theme_mod('theme_colors_accent-light')) ? '--color-accent-light-hover: ' . colorBrightness(get_theme_mod('theme_colors_accent-light'), $darkenColorAmount) . ';' : null;
395
-               } ?>
395
+                } ?>
396 396
                 <?php if ($hasChangedDark) {
397 397
                     foreach ($colorsDark as $name => $color) {
398 398
                         echo (get_theme_mod('theme_colors_' . $name)) ? '--color-' . $name . ': ' . get_theme_mod('theme_colors_' . $name) . ';' : null;
Please login to merge, or discard this patch.