Passed
Push — master ( 5de87e...6b755c )
by Warwick
08:03 queued 03:05
created
sidebar.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -8,23 +8,23 @@
 block discarded – undo
8 8
 $sidebar_enabled = apply_filters( 'lsx_sidebar_enable', true );
9 9
 
10 10
 if ( true !== $sidebar_enabled ) {
11
-	return true;
11
+     return true;
12 12
 }
13 13
 
14 14
 $show_on_front = get_option( 'show_on_front' );
15 15
 
16 16
 if ( 'page' === $show_on_front && is_front_page() ) {
17
-	$layout  = '1c';
18
-	$sidebar = 'home';
17
+     $layout  = '1c';
18
+     $sidebar = 'home';
19 19
 } else {
20
-	$layout = get_theme_mod( 'lsx_layout', '2cr' );
21
-	$layout = apply_filters( 'lsx_layout', $layout );
22
-
23
-	if ( 'posts' === $show_on_front && is_home() ) {
24
-		$sidebar = 'home';
25
-	} else {
26
-		$sidebar = 'sidebar-1';
27
-	}
20
+     $layout = get_theme_mod( 'lsx_layout', '2cr' );
21
+     $layout = apply_filters( 'lsx_layout', $layout );
22
+
23
+     if ( 'posts' === $show_on_front && is_home() ) {
24
+          $sidebar = 'home';
25
+     } else {
26
+          $sidebar = 'sidebar-1';
27
+     }
28 28
 }
29 29
 
30 30
 if ( '1c' !== $layout ) : ?>
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,35 +5,35 @@
 block discarded – undo
5 5
  * @package lsx
6 6
  */
7 7
 
8
-$sidebar_enabled = apply_filters( 'lsx_sidebar_enable', true );
8
+$sidebar_enabled = apply_filters('lsx_sidebar_enable', true);
9 9
 
10
-if ( true !== $sidebar_enabled ) {
10
+if (true !== $sidebar_enabled) {
11 11
 	return true;
12 12
 }
13 13
 
14
-$show_on_front = get_option( 'show_on_front' );
14
+$show_on_front = get_option('show_on_front');
15 15
 
16
-if ( 'page' === $show_on_front && is_front_page() ) {
16
+if ('page' === $show_on_front && is_front_page()) {
17 17
 	$layout  = '1c';
18 18
 	$sidebar = 'home';
19 19
 } else {
20
-	$layout = get_theme_mod( 'lsx_layout', '2cr' );
21
-	$layout = apply_filters( 'lsx_layout', $layout );
20
+	$layout = get_theme_mod('lsx_layout', '2cr');
21
+	$layout = apply_filters('lsx_layout', $layout);
22 22
 
23
-	if ( 'posts' === $show_on_front && is_home() ) {
23
+	if ('posts' === $show_on_front && is_home()) {
24 24
 		$sidebar = 'home';
25 25
 	} else {
26 26
 		$sidebar = 'sidebar-1';
27 27
 	}
28 28
 }
29 29
 
30
-if ( '1c' !== $layout ) : ?>
30
+if ('1c' !== $layout) : ?>
31 31
 	<?php lsx_sidebars_before(); ?>
32
-	<div id="secondary" class="widget-area <?php echo esc_attr( lsx_sidebar_class() ); ?>" role="complementary">
32
+	<div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary">
33 33
 
34 34
 		<?php lsx_sidebar_top(); ?>
35 35
 
36
-		<?php if ( ! dynamic_sidebar( $sidebar ) ) : ?>
36
+		<?php if ( ! dynamic_sidebar($sidebar)) : ?>
37 37
 
38 38
 		<?php endif; ?>
39 39
 
Please login to merge, or discard this patch.