Passed
Pull Request — master (#258)
by
unknown
04:01
created
inc/customizer-colors.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     
180 180
     /**
181 181
     Section Title - Default
182
-    **/
182
+     **/
183 183
     $wp_customize->add_setting('section_title_default', array(
184 184
         'default'           => '',
185 185
         'sanitize_callback' => 'mytheme_text_sanitization',
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
     /**
220 220
     Separator 1
221
-    **/
221
+     **/
222 222
 
223 223
     $wp_customize->add_setting('separator_1', array(
224 224
         'default'           => '',
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
     /**
238 238
     Section Title - Theme Light
239
-    **/
239
+     **/
240 240
     $wp_customize->add_setting('section_title_light', array(
241 241
         'default'           => '',
242 242
         'sanitize_callback' => 'mytheme_text_sanitization',
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
     /**
276 276
     Separator 2
277
-    **/
277
+     **/
278 278
 
279 279
     $wp_customize->add_setting('separator_2', array(
280 280
         'default'           => '',
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 
293 293
     /**
294 294
     Section Title - Theme Dark
295
-    **/
295
+     **/
296 296
     $wp_customize->add_setting('section_title_dark', array(
297 297
         'default'           => '',
298 298
         'sanitize_callback' => 'mytheme_text_sanitization',
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
     /**
332 332
     Separator 3
333
-    **/
333
+     **/
334 334
 
335 335
     $wp_customize->add_setting('separator_3', array(
336 336
         'default'           => '',
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
     /**
350 350
     Section Title - Theme Hero
351
-    **/
351
+     **/
352 352
     $wp_customize->add_setting('section_title_hero', array(
353 353
         'default'           => '',
354 354
         'sanitize_callback' => 'mytheme_text_sanitization',
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
     //Return default if no color provided
403 403
     if (empty($color)) {
404
-          return $default;
404
+            return $default;
405 405
     }
406 406
 
407 407
     //Sanitize $color if "#" is provided
@@ -509,14 +509,14 @@  discard block
 block discarded – undo
509 509
                     };
510 510
                     echo (get_theme_mod('theme_colors_accent')) ? '--color-accent-alpha: ' . hex2rgba(get_theme_mod('theme_colors_accent'), $alphaColorAmount) . ';' : null;
511 511
                     echo (get_theme_mod('theme_colors_accent')) ? '--color-accent-hover: ' . colorBrightness(get_theme_mod('theme_colors_accent'), $darkenColorAmount) . ';' : null;
512
-               } ?>
512
+                } ?>
513 513
                <?php if ($hasChangedLight) {
514 514
                     foreach ($colorsLight as $name => $color) {
515 515
                         echo (get_theme_mod('theme_colors_' . $name)) ? '--color-' . $name . ': ' . get_theme_mod('theme_colors_' . $name) . ';' : null;
516 516
                     };
517 517
                     echo (get_theme_mod('theme_colors_accent-light')) ? '--color-accent-light-alpha: ' . hex2rgba(get_theme_mod('theme_colors_accent-light'), $alphaColorAmount) . ';' : null;
518 518
                     echo (get_theme_mod('theme_colors_accent-light')) ? '--color-accent-light-hover: ' . colorBrightness(get_theme_mod('theme_colors_accent-light'), $darkenColorAmount) . ';' : null;
519
-               } ?>
519
+                } ?>
520 520
                 <?php if ($hasChangedDark) {
521 521
                     foreach ($colorsDark as $name => $color) {
522 522
                         echo (get_theme_mod('theme_colors_' . $name)) ? '--color-' . $name . ': ' . get_theme_mod('theme_colors_' . $name) . ';' : null;
Please login to merge, or discard this patch.