Passed
Push — master ( 229a61...a80c4f )
by Fernando
02:53 queued 31s
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
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/" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author">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.
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.
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.
woocommerce/single-product/tabs/tabs.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @version 2.4.0
17 17
  */
18 18
 
19
-if ( ! defined( 'ABSPATH' ) ) {
19
+if ( ! defined('ABSPATH')) {
20 20
 	exit;
21 21
 }
22 22
 
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
  * Each tab is an array containing title, callback and priority.
27 27
  * @see woocommerce_default_product_tabs()
28 28
  */
29
-$tabs = apply_filters( 'woocommerce_product_tabs', array() );
29
+$tabs = apply_filters('woocommerce_product_tabs', array());
30 30
 
31
-if ( ! empty( $tabs ) ) : ?>
31
+if ( ! empty($tabs)) : ?>
32 32
 
33 33
 	<div class="woocommerce-tabs wc-tabs-wrapper">
34 34
 		<ul class="nav nav-tabs wc-tabs" role="tablist">
35
-			<?php foreach ( $tabs as $key => $tab ) : ?>
36
-				<li class="<?php echo esc_attr( $key ); ?>_tab" id="tab-title-<?php echo esc_attr( $key ); ?>" role="tab" aria-controls="tab-<?php echo esc_attr( $key ); ?>">
37
-					<a href="#tab-<?php echo esc_attr( $key ); ?>"><?php echo apply_filters( 'woocommerce_product_' . $key . '_tab_title', esc_html( $tab['title'] ), $key ); ?></a>
35
+			<?php foreach ($tabs as $key => $tab) : ?>
36
+				<li class="<?php echo esc_attr($key); ?>_tab" id="tab-title-<?php echo esc_attr($key); ?>" role="tab" aria-controls="tab-<?php echo esc_attr($key); ?>">
37
+					<a href="#tab-<?php echo esc_attr($key); ?>"><?php echo apply_filters('woocommerce_product_' . $key . '_tab_title', esc_html($tab['title']), $key); ?></a>
38 38
 				</li>
39 39
 			<?php endforeach; ?>
40 40
 		</ul>
41
-		<?php foreach ( $tabs as $key => $tab ) : ?>
42
-			<div class="woocommerce-Tabs-panel woocommerce-Tabs-panel--<?php echo esc_attr( $key ); ?> panel entry-content wc-tab" id="tab-<?php echo esc_attr( $key ); ?>" role="tabpanel" aria-labelledby="tab-title-<?php echo esc_attr( $key ); ?>">
43
-				<?php call_user_func( $tab['callback'], $key, $tab ); ?>
41
+		<?php foreach ($tabs as $key => $tab) : ?>
42
+			<div class="woocommerce-Tabs-panel woocommerce-Tabs-panel--<?php echo esc_attr($key); ?> panel entry-content wc-tab" id="tab-<?php echo esc_attr($key); ?>" role="tabpanel" aria-labelledby="tab-title-<?php echo esc_attr($key); ?>">
43
+				<?php call_user_func($tab['callback'], $key, $tab); ?>
44 44
 			</div>
45 45
 		<?php endforeach; ?>
46 46
 	</div>
Please login to merge, or discard this patch.
woocommerce/loop/pagination.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,31 +16,31 @@
 block discarded – undo
16 16
  * @version     2.2.2
17 17
  */
18 18
 
19
-if ( ! defined( 'ABSPATH' ) ) {
19
+if ( ! defined('ABSPATH')) {
20 20
 	exit; // Exit if accessed directly
21 21
 }
22 22
 
23 23
 global $wp_query;
24 24
 
25
-if ( $wp_query->max_num_pages <= 1 ) {
25
+if ($wp_query->max_num_pages <= 1) {
26 26
 	return;
27 27
 }
28 28
 ?>
29 29
 <div class="lsx-pagination-wrapper">
30 30
 	<nav class="lsx-pagination">
31 31
 		<?php
32
-			echo paginate_links( apply_filters( 'woocommerce_pagination_args', array(
33
-				'base'         => esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ),
32
+			echo paginate_links(apply_filters('woocommerce_pagination_args', array(
33
+				'base'         => esc_url_raw(str_replace(999999999, '%#%', remove_query_arg('add-to-cart', get_pagenum_link(999999999, false)))),
34 34
 				'format'       => '',
35 35
 				'add_args'     => false,
36
-				'current'      => max( 1, get_query_var( 'paged' ) ),
36
+				'current'      => max(1, get_query_var('paged')),
37 37
 				'total'        => $wp_query->max_num_pages,
38
-				'prev_text'    => '<span class="meta-nav">&larr;</span> ' . esc_html__( 'Previous', 'lsx' ),
39
-				'next_text'    => esc_html__( 'Next', 'lsx' ) . ' <span class="meta-nav">&rarr;</span>',
38
+				'prev_text'    => '<span class="meta-nav">&larr;</span> ' . esc_html__('Previous', 'lsx'),
39
+				'next_text'    => esc_html__('Next', 'lsx') . ' <span class="meta-nav">&rarr;</span>',
40 40
 				// 'type'         => 'list',
41 41
 				'end_size'     => 3,
42 42
 				'mid_size'     => 3,
43
-			) ) );
43
+			)));
44 44
 		?>
45 45
 	</nav>
46 46
 </div>
Please login to merge, or discard this patch.
woocommerce/content-widget-product.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,36 +17,36 @@
 block discarded – undo
17 17
  */
18 18
 
19 19
 // Exit if accessed directly
20
-if ( ! defined( 'ABSPATH' ) ) {
20
+if ( ! defined('ABSPATH')) {
21 21
 	exit;
22 22
 }
23 23
 
24 24
 global $product; ?>
25 25
 
26 26
 <div class="lsx-woocommerce-slot">
27
-	<a href="<?php echo esc_url( $product->get_permalink() ); ?>">
27
+	<a href="<?php echo esc_url($product->get_permalink()); ?>">
28 28
 		<figure class="lsx-woocommerce-avatar">
29
-			<?php echo $product->get_image( 'lsx-thumbnail-square' ); ?>
29
+			<?php echo $product->get_image('lsx-thumbnail-square'); ?>
30 30
 		</figure>
31 31
 	</a>
32 32
 
33 33
 	<h5 class="lsx-woocommerce-title">
34
-		<a href="<?php echo esc_url( $product->get_permalink() ); ?>"><?php echo $product->get_name(); ?></a>
34
+		<a href="<?php echo esc_url($product->get_permalink()); ?>"><?php echo $product->get_name(); ?></a>
35 35
 	</h5>
36 36
 
37
-	<?php if ( ! empty( $show_rating ) ) : ?>
37
+	<?php if ( ! empty($show_rating)) : ?>
38 38
 		<div class="lsx-woocommerce-rating">
39
-			<?php echo wc_get_rating_html( $product->get_average_rating() ); ?>
39
+			<?php echo wc_get_rating_html($product->get_average_rating()); ?>
40 40
 		</div>
41 41
 	<?php endif; ?>
42 42
 
43
-	<?php if ( $price_html = $product->get_price_html() ) : ?>
43
+	<?php if ($price_html = $product->get_price_html()) : ?>
44 44
 		<div class="lsx-woocommerce-price">
45 45
 			<?php echo $price_html; ?>
46 46
 		</div>
47 47
 	<?php endif; ?>
48 48
 
49 49
 	<div class="lsx-woocommerce-content">
50
-		<a href="<?php echo esc_url( $product->get_permalink() ); ?>" class="moretag"><?php esc_attr_e( 'View more', 'lsx' ); ?></a>
50
+		<a href="<?php echo esc_url($product->get_permalink()); ?>" class="moretag"><?php esc_attr_e('View more', 'lsx'); ?></a>
51 51
 	</div>
52 52
 </div>
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.