Passed
Pull Request — master (#703)
by
unknown
12:50 queued 07:36
created
single.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@  discard block
 block discarded – undo
20 20
 		<?php if ( have_posts() ) : ?>
21 21
 
22 22
 			<?php
23
-			while ( have_posts() ) :
24
-				the_post();
25
-			?>
23
+               while ( have_posts() ) :
24
+                    the_post();
25
+               ?>
26 26
 
27 27
 				<?php
28
-				if ( is_singular( 'post' ) ) {
29
-					get_template_part( 'partials/content', 'post' );
30
-				} else {
31
-					get_template_part( 'partials/content', 'custom' );
32
-				}
33
-				?>
28
+                    if ( is_singular( 'post' ) ) {
29
+                         get_template_part( 'partials/content', 'post' );
30
+                    } else {
31
+                         get_template_part( 'partials/content', 'custom' );
32
+                    }
33
+                    ?>
34 34
 
35 35
 			<?php endwhile; ?>
36 36
 
@@ -43,16 +43,16 @@  discard block
 block discarded – undo
43 43
 	<?php lsx_content_after(); ?>
44 44
 
45 45
 	<?php
46
-	if ( is_singular( 'post' ) ) {
47
-		lsx_post_nav();
48
-	}
49
-	?>
46
+     if ( is_singular( 'post' ) ) {
47
+          lsx_post_nav();
48
+     }
49
+     ?>
50 50
 
51 51
 	<?php
52
-	if ( comments_open() ) {
53
-		comments_template();
54
-	}
55
-	?>
52
+     if ( comments_open() ) {
53
+          comments_template();
54
+     }
55
+     ?>
56 56
 
57 57
 </div><!-- #primary -->
58 58
 
Please login to merge, or discard this patch.
comments.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( post_password_required() ) {
9
-	return;
9
+     return;
10 10
 }
11 11
 
12 12
 $commenter = wp_get_current_commenter();
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
 $html_req  = ( $req ? " required='required'" : '' );
16 16
 
17 17
 $comment_form_args = array(
18
-	'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
18
+     'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__( 'Comment', 'lsx' ) . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
19 19
 
20
-	'fields'        => array(
21
-		'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
-			( $req ? '<span class="required">*</span>' : '' ) .
23
-			'<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
20
+     'fields'        => array(
21
+          'author' => '<p class="comment-form-author"><label for="author">' . esc_html__( 'Name', 'lsx' ) . '</label> ' .
22
+               ( $req ? '<span class="required">*</span>' : '' ) .
23
+               '<input class="form-control" placeholder="' . esc_html__( 'Name', 'lsx' ) . '" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
24 24
 
25
-		'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
-			( $req ? '<span class="required">*</span>' : '' ) .
27
-			'<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
25
+          'email'  => '<p class="comment-form-email"><label for="email">' . esc_html__( 'Email', 'lsx' ) . '</label> ' .
26
+               ( $req ? '<span class="required">*</span>' : '' ) .
27
+               '<input class="form-control" placeholder="' . esc_html__( 'Email', 'lsx' ) . '" id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . $html_req . '></p>',
28 28
 
29
-		'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
-			'<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
31
-	),
29
+          'url'    => '<p class="comment-form-url"><label for="url">' . esc_html__( 'Website', 'lsx' ) . '</label>' .
30
+               '<input class="form-control" placeholder="' . esc_html__( 'Website', 'lsx' ) . '" id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></p>',
31
+     ),
32 32
 );
33 33
 
34 34
 comment_form( $comment_form_args );
@@ -40,47 +40,47 @@  discard block
 block discarded – undo
40 40
 	<section id="comments">
41 41
 		<h3>
42 42
 			<?php
43
-				$comments_number = get_comments_number();
44
-
45
-			if ( '1' === $comments_number ) {
46
-				printf(
47
-					/* Translators: %s: post title */
48
-					esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
49
-					get_the_title()
50
-				);
51
-			} else {
52
-				printf(
53
-					esc_html(
54
-						/* Translators: 1: number of comments, 2: post title */
55
-						_nx(
56
-							'%1$s Response to &ldquo;%2$s&rdquo;',
57
-							'%1$s Responses to &ldquo;%2$s&rdquo;',
58
-							$comments_number,
59
-							'comments.php',
60
-							'lsx'
61
-						)
62
-					),
63
-					esc_html( number_format_i18n( $comments_number ) ),
64
-					get_the_title()
65
-				);
66
-			}
67
-			?>
43
+                    $comments_number = get_comments_number();
44
+
45
+               if ( '1' === $comments_number ) {
46
+                    printf(
47
+                         /* Translators: %s: post title */
48
+                         esc_html_x( 'One Response to &ldquo;%s&rdquo;', 'comments.php', 'lsx' ),
49
+                         get_the_title()
50
+                    );
51
+               } else {
52
+                    printf(
53
+                         esc_html(
54
+                              /* Translators: 1: number of comments, 2: post title */
55
+                              _nx(
56
+                                   '%1$s Response to &ldquo;%2$s&rdquo;',
57
+                                   '%1$s Responses to &ldquo;%2$s&rdquo;',
58
+                                   $comments_number,
59
+                                   'comments.php',
60
+                                   'lsx'
61
+                              )
62
+                         ),
63
+                         esc_html( number_format_i18n( $comments_number ) ),
64
+                         get_the_title()
65
+                    );
66
+               }
67
+               ?>
68 68
 		</h3>
69 69
 
70 70
 		<ol class="media-list">
71 71
 			<?php
72
-				wp_list_comments(
73
-					array(
74
-						'walker' => new LSX_Walker_Comment(),
75
-					)
76
-				);
77
-			?>
72
+                    wp_list_comments(
73
+                         array(
74
+                              'walker' => new LSX_Walker_Comment(),
75
+                         )
76
+                    );
77
+               ?>
78 78
 		</ol>
79 79
 
80 80
 		<?php
81
-		$comment_pages_count = get_comment_pages_count();
82
-		if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
83
-			?>
81
+          $comment_pages_count = get_comment_pages_count();
82
+          if ( $comment_pages_count > 1 && get_option( 'page_comments' ) ) :
83
+               ?>
84 84
 			<nav>
85 85
 				<ul class="pager">
86 86
 					<?php if ( get_previous_comments_link() ) : ?>
@@ -116,5 +116,5 @@  discard block
 block discarded – undo
116 116
 	<?php lsx_comments_after(); ?>
117 117
 
118 118
 	<?php
119
-	endif;
119
+     endif;
120 120
 ?>
Please login to merge, or discard this patch.
sidebar-sitemap.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 $layout = apply_filters( 'lsx_layout', $layout );
12 12
 
13 13
 if ( 'posts' === $show_on_front && is_home() ) {
14
-	$sidebar = 'home';
14
+     $sidebar = 'home';
15 15
 } else {
16
-	$sidebar = 'sidebar-1';
16
+     $sidebar = 'sidebar-1';
17 17
 }
18 18
 
19 19
 if ( '1c' !== $layout ) : ?>
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 
29 29
 		<aside id="categories" class="widget widget_categories">
30 30
 			<?php
31
-				echo wp_tag_cloud( array(
32
-					'taxonomy' => 'category',
33
-				) );
34
-			?>
31
+                    echo wp_tag_cloud( array(
32
+                         'taxonomy' => 'category',
33
+                    ) );
34
+               ?>
35 35
 		</aside>
36 36
 
37 37
 		<?php lsx_sitemap_taxonomy_clouds(); ?>
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
 
22 22
 			<div class="post-wrapper <?php echo esc_attr( lsx_post_wrapper_class() ); ?>">
23 23
 				<?php
24
-				while ( have_posts() ) :
25
-					the_post();
26
-					lsx_get_template_part();
27
-				endwhile;
28
-				?>
24
+                    while ( have_posts() ) :
25
+                         the_post();
26
+                         lsx_get_template_part();
27
+                    endwhile;
28
+                    ?>
29 29
 			</div>
30 30
 
31 31
 			<?php lsx_paging_nav(); ?>
Please login to merge, or discard this patch.
searchform.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 $style = 'body #searchform { display: block; }';
9 9
 
10 10
 if ( is_customize_preview() ) {
11
-	$search_form = get_theme_mod( 'lsx_header_search', false );
11
+     $search_form = get_theme_mod( 'lsx_header_search', false );
12 12
 
13
-	if ( false === $search_form ) {
14
-		$style = 'body #searchform { display: none; }';
15
-	}
13
+     if ( false === $search_form ) {
14
+          $style = 'body #searchform { display: none; }';
15
+     }
16 16
 }
17 17
 ?>
18 18
 
Please login to merge, or discard this patch.
footer.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -22,49 +22,49 @@
 block discarded – undo
22 22
 
23 23
 						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>">
24 24
 							<?php
25
-								printf(
26
-									/* Translators: 1: current year, 2: blog name */
27
-									esc_html__( '&#169; %1$s %2$s All Rights Reserved', 'lsx' ),
28
-									esc_html( date_i18n( 'Y' ) ),
29
-									esc_html( get_bloginfo( 'name' ) )
30
-								);
31
-								?>
25
+                                        printf(
26
+                                             /* Translators: 1: current year, 2: blog name */
27
+                                             esc_html__( '&#169; %1$s %2$s All Rights Reserved', 'lsx' ),
28
+                                             esc_html( date_i18n( 'Y' ) ),
29
+                                             esc_html( get_bloginfo( 'name' ) )
30
+                                        );
31
+                                        ?>
32 32
 
33 33
 							<?php if ( apply_filters( 'lsx_credit_link', true ) ) : ?>
34 34
 								<?php
35
-									printf(
36
-										/* Translators: 1: theme name, 2: author name and link */
37
-										esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ),
38
-										'LSX',
39
-										'<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>'
40
-									);
41
-								?>
35
+                                             printf(
36
+                                                  /* Translators: 1: theme name, 2: author name and link */
37
+                                                  esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ),
38
+                                                  'LSX',
39
+                                                  '<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>'
40
+                                             );
41
+                                        ?>
42 42
 							<?php endif; ?>
43 43
 						</p>
44 44
 
45 45
 						<?php if ( has_nav_menu( 'social' ) ) : ?>
46 46
 							<nav id="social-navigation" class="social-navigation">
47 47
 								<?php
48
-									wp_nav_menu(
49
-										array(
50
-											'theme_location' => 'social',
51
-											'depth' => 1,
52
-										)
53
-									);
54
-								?>
48
+                                             wp_nav_menu(
49
+                                                  array(
50
+                                                       'theme_location' => 'social',
51
+                                                       'depth' => 1,
52
+                                                  )
53
+                                             );
54
+                                        ?>
55 55
 							</nav><!-- .social-navigation -->
56 56
 						<?php endif; ?>
57 57
 
58 58
 						<?php if ( has_nav_menu( 'footer' ) ) : ?>
59 59
 							<nav id="footer-navigation" class="footer-navigation">
60 60
 								<?php
61
-									wp_nav_menu(
62
-										array(
63
-											'theme_location' => 'footer',
64
-											'depth' => 1,
65
-										)
66
-									);
67
-								?>
61
+                                             wp_nav_menu(
62
+                                                  array(
63
+                                                       'theme_location' => 'footer',
64
+                                                       'depth' => 1,
65
+                                                  )
66
+                                             );
67
+                                        ?>
68 68
 							</nav><!-- .footer-navigation -->
69 69
 						<?php endif; ?>
70 70
 
Please login to merge, or discard this patch.
comment.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( isset( $GLOBALS['comment_depth'] ) ) {
9
-	$depth = intval( $GLOBALS['comment_depth'] );
9
+     $depth = intval( $GLOBALS['comment_depth'] );
10 10
 } else {
11
-	$depth = 1;
11
+     $depth = 1;
12 12
 }
13 13
 
14 14
 $max_depth = intval( get_option( 'thread_comments_depth' ) );
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 	<time datetime="<?php echo comment_date( 'c' ); ?>">
22 22
 		<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
23 23
 			<?php
24
-				printf(
25
-					/* Translators: 1: post date, 2: post time */
26
-					esc_html__( '%1$s on %2$s', 'lsx' ),
27
-					get_comment_date(),
28
-					get_comment_time()
29
-				);
30
-				?>
24
+                    printf(
25
+                         /* Translators: 1: post date, 2: post time */
26
+                         esc_html__( '%1$s on %2$s', 'lsx' ),
27
+                         get_comment_date(),
28
+                         get_comment_time()
29
+                    );
30
+                    ?>
31 31
 		</a>
32 32
 	</time>
33 33
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 comment_text();
44 44
 
45 45
 comment_reply_link(
46
-	array(
47
-		'depth'     => $depth,
48
-		'max_depth' => $max_depth,
49
-	)
46
+     array(
47
+          'depth'     => $depth,
48
+          'max_depth' => $max_depth,
49
+     )
50 50
 );
Please login to merge, or discard this patch.
partials/content-post.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<div class="entry-content">
17 17
 		<?php
18
-			the_content();
19
-
20
-			wp_link_pages( array(
21
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
-				'after'       => '</div></div>',
23
-				'link_before' => '<span>',
24
-				'link_after'  => '</span>',
25
-			) );
26
-		?>
18
+               the_content();
19
+
20
+               wp_link_pages( array(
21
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
+                    'after'       => '</div></div>',
23
+                    'link_before' => '<span>',
24
+                    'link_after'  => '</span>',
25
+               ) );
26
+          ?>
27 27
 	</div><!-- .entry-content -->
28 28
 
29 29
 	<footer class="footer-meta clearfix">
@@ -32,19 +32,19 @@  discard block
 block discarded – undo
32 32
 				<?php lsx_content_post_tags(); ?>
33 33
 
34 34
 				<?php
35
-				if ( class_exists( 'LSX_Sharing' ) ) {
36
-					lsx_content_sharing();
37
-				} else {
38
-					if ( function_exists( 'sharing_display' ) ) {
39
-						sharing_display( '', true );
40
-					}
41
-
42
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
-						$custom_likes = new Jetpack_Likes();
44
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
-					}
46
-				}
47
-				?>
35
+                    if ( class_exists( 'LSX_Sharing' ) ) {
36
+                         lsx_content_sharing();
37
+                    } else {
38
+                         if ( function_exists( 'sharing_display' ) ) {
39
+                              sharing_display( '', true );
40
+                         }
41
+
42
+                         if ( class_exists( 'Jetpack_Likes' ) ) {
43
+                              $custom_likes = new Jetpack_Likes();
44
+                              echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
+                         }
46
+                    }
47
+                    ?>
48 48
 		<?php endif ?>
49 49
 	</footer><!-- .footer-meta -->
50 50
 
Please login to merge, or discard this patch.
partials/content-widget-product.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
 
17 17
 // Exit if accessed directly.
18 18
 if ( ! defined( 'ABSPATH' ) ) {
19
-	exit;
19
+     exit;
20 20
 }
21 21
 
22 22
 global $product;
23 23
 
24 24
 if ( ! is_a( $product, 'WC_Product' ) ) {
25
-	return;
25
+     return;
26 26
 } ?>
27 27
 
28 28
 <div class="lsx-woocommerce-slot">
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	<?php endif; ?>
44 44
 
45 45
 	<?php
46
-	$price_html = $product->get_price_html();
47
-	if ( $price_html ) : ?>
46
+     $price_html = $product->get_price_html();
47
+     if ( $price_html ) : ?>
48 48
 		<div class="lsx-woocommerce-price">
49 49
 			<?php echo wp_kses_post( $price_html ); ?>
50 50
 		</div>
Please login to merge, or discard this patch.