Passed
Push — master ( edd4d5...f30d20 )
by Warwick
03:01
created
single.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22
-			<?php while ( have_posts() ) : the_post(); ?>
22
+			<?php while (have_posts()) : the_post(); ?>
23 23
 
24 24
 				<?php
25
-					if ( is_singular( 'post' ) ) {
26
-						get_template_part( 'partials/content', 'post' );
25
+					if (is_singular('post')) {
26
+						get_template_part('partials/content', 'post');
27 27
 					} else {
28
-						get_template_part( 'partials/content', 'custom' );
28
+						get_template_part('partials/content', 'custom');
29 29
 					}
30 30
 				?>
31 31
 
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
 	<?php lsx_content_after(); ?>
41 41
 
42 42
 	<?php
43
-		if ( is_singular( 'post' ) ) {
43
+		if (is_singular('post')) {
44 44
 			lsx_post_nav();
45 45
 		}
46 46
 	?>
47 47
 
48 48
 	<?php
49
-		if ( comments_open() ) {
49
+		if (comments_open()) {
50 50
 			comments_template();
51 51
 		}
52 52
 	?>
Please login to merge, or discard this patch.
page.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22
-			<?php while ( have_posts() ) : the_post(); ?>
22
+			<?php while (have_posts()) : the_post(); ?>
23 23
 
24
-				<?php get_template_part( 'partials/content', 'page' ); ?>
24
+				<?php get_template_part('partials/content', 'page'); ?>
25 25
 
26 26
 			<?php endwhile; ?>
27 27
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	<?php lsx_content_after(); ?>
35 35
 
36 36
 	<?php
37
-		if ( comments_open() ) {
37
+		if (comments_open()) {
38 38
 			comments_template();
39 39
 		}
40 40
 	?>
Please login to merge, or discard this patch.
footer.php 2 patches
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,10 @@
 block discarded – undo
20 20
 					<div class="col-sm-12">
21 21
 						<?php lsx_footer_top(); ?>
22 22
 
23
-						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>">
23
+						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) {
24
+	echo 'credit-float';
25
+}
26
+?>">
24 27
 							<?php
25 28
 								printf(
26 29
 									/* Translators: 1: current year, 2: blog name */
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,21 +20,21 @@  discard block
 block discarded – undo
20 20
 					<div class="col-sm-12">
21 21
 						<?php lsx_footer_top(); ?>
22 22
 
23
-						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>">
23
+						<p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) echo 'credit-float'; ?>">
24 24
 							<?php
25 25
 								printf(
26 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' ) )
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 30
 								);
31 31
 							?>
32 32
 
33
-							<?php if ( apply_filters( 'lsx_credit_link', true ) ) : ?>
33
+							<?php if (apply_filters('lsx_credit_link', true)) : ?>
34 34
 								<?php
35 35
 									printf(
36 36
 										/* Translators: 1: theme name, 2: author name and link */
37
-										esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ),
37
+										esc_html__(' | %1$s is a WordPress theme developed by %2$s.', 'lsx'),
38 38
 										'LSX',
39 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 40
 									);
@@ -42,24 +42,24 @@  discard block
 block discarded – undo
42 42
 							<?php endif; ?>
43 43
 						</p>
44 44
 
45
-						<?php if ( has_nav_menu( 'social' ) ) : ?>
45
+						<?php if (has_nav_menu('social')) : ?>
46 46
 							<nav id="social-navigation" class="social-navigation">
47 47
 								<?php
48
-									wp_nav_menu( array(
48
+									wp_nav_menu(array(
49 49
 										'theme_location' => 'social',
50 50
 										'depth'          => 1,
51
-									) );
51
+									));
52 52
 								?>
53 53
 							</nav><!-- .social-navigation -->
54 54
 						<?php endif; ?>
55 55
 
56
-						<?php if ( has_nav_menu( 'footer' ) ) : ?>
56
+						<?php if (has_nav_menu('footer')) : ?>
57 57
 							<nav id="footer-navigation" class="footer-navigation">
58 58
 								<?php
59
-									wp_nav_menu( array(
59
+									wp_nav_menu(array(
60 60
 										'theme_location' => 'footer',
61 61
 										'depth'          => 1,
62
-									) );
62
+									));
63 63
 								?>
64 64
 							</nav><!-- .footer-navigation -->
65 65
 						<?php endif; ?>
Please login to merge, or discard this patch.
index.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 			<div class="post-wrapper">
23 23
 
24
-				<?php while ( have_posts() ) : the_post(); ?>
24
+				<?php while (have_posts()) : the_post(); ?>
25 25
 
26
-					<?php get_template_part( 'partials/content', get_post_format() ); ?>
26
+					<?php get_template_part('partials/content', get_post_format()); ?>
27 27
 
28 28
 				<?php endwhile; ?>
29 29
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 		<?php else : ?>
35 35
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
36
+			<?php get_template_part('partials/content', 'none'); ?>
37 37
 
38 38
 		<?php endif; ?>
39 39
 
@@ -47,6 +47,6 @@  discard block
 block discarded – undo
47 47
 
48 48
 <?php lsx_content_wrap_after(); ?>
49 49
 
50
-<?php get_sidebar( 'sidebar' ); ?>
50
+<?php get_sidebar('sidebar'); ?>
51 51
 
52 52
 <?php get_footer();
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
 			<?php lsx_paging_nav(); ?>
33 33
 
34
-		<?php else : ?>
34
+		<?php else {
35
+	: ?>
35 36
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
37
+			<?php get_template_part( 'partials/content', 'none' );
38
+}
39
+?>
37 40
 
38 41
 		<?php endif; ?>
39 42
 
Please login to merge, or discard this patch.
comment.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,25 +5,25 @@  discard block
 block discarded – undo
5 5
  * @package lsx
6 6
  */
7 7
 
8
-if ( isset( $GLOBALS['comment_depth'] ) ) {
9
-	$depth = intval( $GLOBALS['comment_depth'] );
8
+if (isset($GLOBALS['comment_depth'])) {
9
+	$depth = intval($GLOBALS['comment_depth']);
10 10
 } else {
11 11
 	$depth = 1;
12 12
 }
13 13
 
14
-$max_depth = intval( get_option( 'thread_comments_depth' ) );
14
+$max_depth = intval(get_option('thread_comments_depth'));
15 15
 
16
-echo get_avatar( $comment, '128' );
16
+echo get_avatar($comment, '128');
17 17
 ?>
18 18
 <div class="media-body">
19 19
 	<h4 class="media-heading"><?php echo get_comment_author_link(); ?></h4>
20 20
 
21
-	<time datetime="<?php echo comment_date( 'c' ); ?>">
22
-		<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
21
+	<time datetime="<?php echo comment_date('c'); ?>">
22
+		<a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>">
23 23
 			<?php
24 24
 				printf(
25 25
 					/* Translators: 1: post date, 2: post time */
26
-					esc_html__( '%1$s on %2$s', 'lsx' ),
26
+					esc_html__('%1$s on %2$s', 'lsx'),
27 27
 					get_comment_date(),
28 28
 					get_comment_time()
29 29
 				);
@@ -31,18 +31,18 @@  discard block
 block discarded – undo
31 31
 		</a>
32 32
 	</time>
33 33
 
34
-	<?php edit_comment_link( esc_html__( '(Edit)', 'lsx' ), '', '' ); ?>
34
+	<?php edit_comment_link(esc_html__('(Edit)', 'lsx'), '', ''); ?>
35 35
 
36
-	<?php if ( ! $comment->comment_approved ) : ?>
36
+	<?php if ( ! $comment->comment_approved) : ?>
37 37
 		<div class="alert alert-info">
38
-			<?php esc_html_e( 'Your comment is awaiting moderation.', 'lsx' ); ?>
38
+			<?php esc_html_e('Your comment is awaiting moderation.', 'lsx'); ?>
39 39
 		</div>
40 40
 	<?php endif; ?>
41 41
 
42 42
 <?php
43 43
 comment_text();
44 44
 
45
-comment_reply_link( array(
45
+comment_reply_link(array(
46 46
 	'depth'     => $depth,
47 47
 	'max_depth' => $max_depth,
48
-) );
48
+));
Please login to merge, or discard this patch.
archive.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 			<div class="post-wrapper">
23 23
 
24
-				<?php while ( have_posts() ) : the_post(); ?>
24
+				<?php while (have_posts()) : the_post(); ?>
25 25
 
26
-					<?php get_template_part( 'partials/content', get_post_format() ); ?>
26
+					<?php get_template_part('partials/content', get_post_format()); ?>
27 27
 
28 28
 				<?php endwhile; ?>
29 29
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 		<?php else : ?>
35 35
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
36
+			<?php get_template_part('partials/content', 'none'); ?>
37 37
 
38 38
 		<?php endif; ?>
39 39
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
 			<?php lsx_paging_nav(); ?>
33 33
 
34
-		<?php else : ?>
34
+		<?php else {
35
+	: ?>
35 36
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
37
+			<?php get_template_part( 'partials/content', 'none' );
38
+}
39
+?>
37 40
 
38 41
 		<?php endif; ?>
39 42
 
Please login to merge, or discard this patch.
searchform.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,28 +7,28 @@
 block discarded – undo
7 7
 
8 8
 $style = 'body #searchform { display: block; }';
9 9
 
10
-if ( is_customize_preview() ) {
11
-	$search_form = get_theme_mod( 'lsx_header_search', false );
10
+if (is_customize_preview()) {
11
+	$search_form = get_theme_mod('lsx_header_search', false);
12 12
 
13
-	if ( false === $search_form ) {
13
+	if (false === $search_form) {
14 14
 		$style = 'body #searchform { display: none; }';
15 15
 	}
16 16
 }
17 17
 ?>
18 18
 
19
-<form role="search" method="get" class="search-form form-inline" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
19
+<form role="search" method="get" class="search-form form-inline" id="searchform" action="<?php echo esc_url(home_url('/')); ?>">
20 20
 	<div class="input-group">
21
-		<input type="search" value="<?php if ( is_search() ) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e( 'Search', 'lsx' ); ?> <?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
22
-		<label class="hide"><?php esc_attr_e( 'Search for:', 'lsx' ); ?></label>
21
+		<input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e('Search', 'lsx'); ?> <?php echo esc_attr(get_bloginfo('name')); ?>">
22
+		<label class="hide"><?php esc_attr_e('Search for:', 'lsx'); ?></label>
23 23
 
24 24
 		<span class="input-group-btn">
25 25
 			<button type="submit" class="search-submit btn btn-default"><span class="fa fa-search"></span></button>
26 26
 		</span>
27 27
 	</div>
28 28
 
29
-	<?php if ( is_customize_preview() ) : ?>
29
+	<?php if (is_customize_preview()) : ?>
30 30
 		<style id="lsx-header-search-css">
31
-			<?php echo esc_attr( $style ); ?>
31
+			<?php echo esc_attr($style); ?>
32 32
 		</style>
33 33
 	<?php endif; ?>
34 34
 </form>
Please login to merge, or discard this patch.
page-templates/template-archives.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php lsx_content_wrap_before(); ?>
14 14
 
15
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
15
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
16 16
 
17 17
 	<?php lsx_content_before(); ?>
18 18
 
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27 27
 				<?php lsx_entry_before(); ?>
28 28
 
@@ -31,25 +31,25 @@  discard block
 block discarded – undo
31 31
 					<?php lsx_entry_top(); ?>
32 32
 
33 33
 					<div class="entry-content">
34
-						<h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2>
34
+						<h2><?php esc_html_e('The Last 30 Posts', 'lsx'); ?></h2>
35 35
 
36 36
 						<ul>
37 37
 							<?php
38
-								$loop = new WP_Query( array(
38
+								$loop = new WP_Query(array(
39 39
 									'posts_per_page' => 30,
40
-								) );
40
+								));
41 41
 							?>
42 42
 
43
-							<?php if ( $loop->have_posts() ) : ?>
43
+							<?php if ($loop->have_posts()) : ?>
44 44
 
45
-								<?php while ( $loop->have_posts() ) : ?>
45
+								<?php while ($loop->have_posts()) : ?>
46 46
 
47 47
 									<?php
48 48
 										$loop->the_post();
49 49
 										$loop->is_home = false;
50 50
 									?>
51 51
 
52
-									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
52
+									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo esc_html($post->comment_count); ?> <?php esc_html_e('comments', 'lsx'); ?></li>
53 53
 
54 54
 								<?php endwhile; ?>
55 55
 
@@ -58,20 +58,20 @@  discard block
 block discarded – undo
58 58
 							<?php wp_reset_postdata(); ?>
59 59
 						</ul>
60 60
 
61
-						<h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2>
61
+						<h2><?php esc_html_e('Categories', 'lsx'); ?></h2>
62 62
 
63 63
 						<ul>
64
-							<?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
64
+							<?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?>
65 65
 						</ul>
66 66
 
67
-						<h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2>
67
+						<h2><?php esc_html_e('Monthly Archives', 'lsx'); ?></h2>
68 68
 
69 69
 						<ul>
70
-							<?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
70
+							<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
71 71
 						</ul>
72 72
 					</div><!-- .entry-content -->
73 73
 
74
-					<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
74
+					<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
75 75
 
76 76
 					<?php lsx_entry_bottom(); ?>
77 77
 
Please login to merge, or discard this patch.
page-templates/template-full-width.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'partials/content', 'page' ); ?>
27
+				<?php get_template_part('partials/content', 'page'); ?>
28 28
 
29 29
 			<?php endwhile; ?>
30 30
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		<?php lsx_content_bottom(); ?>
34 34
 
35 35
 		<?php
36
-			if ( comments_open() ) {
36
+			if (comments_open()) {
37 37
 				comments_template();
38 38
 			}
39 39
 		?>
Please login to merge, or discard this patch.