Passed
Push — master ( 86dfed...3aa001 )
by Warwick
05:45
created
partials/content-related.php 1 patch
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -10,34 +10,34 @@  discard block
 block discarded – undo
10 10
 <?php lsx_entry_before(); ?>
11 11
 
12 12
 <?php
13
-	$no_thumb_post_types   = array(
14
-		'audio'   => 'audio',
15
-		'gallery' => 'gallery',
16
-		'image'   => 'image',
17
-		'link'    => 'link',
18
-		'quote'   => 'quote',
19
-		'video'   => 'video',
20
-	);
21
-	$no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
22
-
23
-	$has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
24
-
25
-	if ( $has_thumb ) {
26
-		$thumb_class = 'has-thumb';
27
-	} else {
28
-		$thumb_class = 'no-thumb';
29
-	}
30
-
31
-	$blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
32
-
33
-	$image_class = '';
34
-
35
-	$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
-	$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
37
-
38
-	if ( is_array( $image_arr ) ) {
39
-		$image_src = $image_arr[0];
40
-	}
13
+     $no_thumb_post_types   = array(
14
+          'audio'   => 'audio',
15
+          'gallery' => 'gallery',
16
+          'image'   => 'image',
17
+          'link'    => 'link',
18
+          'quote'   => 'quote',
19
+          'video'   => 'video',
20
+     );
21
+     $no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
22
+
23
+     $has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
24
+
25
+     if ( $has_thumb ) {
26
+          $thumb_class = 'has-thumb';
27
+     } else {
28
+          $thumb_class = 'no-thumb';
29
+     }
30
+
31
+     $blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
32
+
33
+     $image_class = '';
34
+
35
+     $thumbnail_id = get_post_thumbnail_id( get_the_ID() );
36
+     $image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
37
+
38
+     if ( is_array( $image_arr ) ) {
39
+          $image_src = $image_arr[0];
40
+     }
41 41
 ?>
42 42
 
43 43
 <article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>>
@@ -55,23 +55,23 @@  discard block
 block discarded – undo
55 55
 				<?php endif; ?>
56 56
 
57 57
 				<?php
58
-				$format = get_post_format();
58
+                    $format = get_post_format();
59 59
 
60
-				if ( false === $format ) {
61
-					$format        = 'standard';
62
-					$show_on_front = get_option( 'show_on_front', 'posts' );
60
+                    if ( false === $format ) {
61
+                         $format        = 'standard';
62
+                         $show_on_front = get_option( 'show_on_front', 'posts' );
63 63
 
64
-					if ( 'page' === $show_on_front ) {
65
-						$archive_link = get_permalink( get_option( 'page_for_posts' ) );
66
-					} else {
67
-						$archive_link = home_url();
68
-					}
69
-				} else {
70
-					$archive_link = get_post_format_link( $format );
71
-				}
64
+                         if ( 'page' === $show_on_front ) {
65
+                              $archive_link = get_permalink( get_option( 'page_for_posts' ) );
66
+                         } else {
67
+                              $archive_link = home_url();
68
+                         }
69
+                    } else {
70
+                         $archive_link = get_post_format_link( $format );
71
+                    }
72 72
 
73
-				$format = lsx_translate_format_to_fontawesome( $format );
74
-				?>
73
+                    $format = lsx_translate_format_to_fontawesome( $format );
74
+                    ?>
75 75
 
76 76
 				<h2 class="entry-title">
77 77
 					<?php if ( has_post_thumbnail() ) : ?>
@@ -104,16 +104,16 @@  discard block
 block discarded – undo
104 104
 
105 105
 					<div class="entry-summary">
106 106
 					<?php
107
-					if ( ! has_excerpt() ) {
108
-
109
-						$excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
110
-						$content      = wp_trim_words( get_the_content(), 50 );
111
-						$content      = '<p>' . $content . '</p>' . $excerpt_more;
112
-						echo wp_kses_post( $content );
113
-					} else {
114
-						the_excerpt();
115
-					}
116
-					?>
107
+                         if ( ! has_excerpt() ) {
108
+
109
+                              $excerpt_more = '<p><a class="moretag" href="' . esc_url( get_permalink() ) . '">' . esc_html__( 'Read More', 'lsx' ) . '</a></p>';
110
+                              $content      = wp_trim_words( get_the_content(), 50 );
111
+                              $content      = '<p>' . $content . '</p>' . $excerpt_more;
112
+                              echo wp_kses_post( $content );
113
+                         } else {
114
+                              the_excerpt();
115
+                         }
116
+                         ?>
117 117
 					</div><!-- .entry-summary -->
118 118
 
119 119
 				<?php elseif ( has_post_format( array( 'link' ) ) ) : ?>
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
 
129 129
 					<div class="entry-content">
130 130
 						<?php
131
-							the_content();
132
-
133
-							wp_link_pages( array(
134
-								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
135
-								'after'       => '</div></div>',
136
-								'link_before' => '<span>',
137
-								'link_after'  => '</span>',
138
-							) );
139
-						?>
131
+                                   the_content();
132
+
133
+                                   wp_link_pages( array(
134
+                                        'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
135
+                                        'after'       => '</div></div>',
136
+                                        'link_before' => '<span>',
137
+                                        'link_after'  => '</span>',
138
+                                   ) );
139
+                              ?>
140 140
 					</div><!-- .entry-content -->
141 141
 
142 142
 				<?php endif; ?>
@@ -155,22 +155,22 @@  discard block
 block discarded – undo
155 155
 					<div class="post-comments">
156 156
 						<a href="<?php the_permalink(); ?>#comments">
157 157
 							<?php
158
-							if ( '1' === $comments_number ) {
159
-								echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
160
-							} else {
161
-								printf(
162
-									/* Translators: %s: number of comments */
163
-									esc_html( _nx(
164
-										'%s Comment',
165
-										'%s Comments',
166
-										$comments_number,
167
-										'content.php',
168
-										'lsx'
169
-									) ),
170
-									esc_html( number_format_i18n( $comments_number ) )
171
-								);
172
-							}
173
-							?>
158
+                                   if ( '1' === $comments_number ) {
159
+                                        echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
160
+                                   } else {
161
+                                        printf(
162
+                                             /* Translators: %s: number of comments */
163
+                                             esc_html( _nx(
164
+                                                  '%s Comment',
165
+                                                  '%s Comments',
166
+                                                  $comments_number,
167
+                                                  'content.php',
168
+                                                  'lsx'
169
+                                             ) ),
170
+                                             esc_html( number_format_i18n( $comments_number ) )
171
+                                        );
172
+                                   }
173
+                                   ?>
174 174
 						</a>
175 175
 					</div>
176 176
 				<?php endif ?>
Please login to merge, or discard this patch.
partials/content-custom.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 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
 	<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.
partials/content-page.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
18 18
 		<?php lsx_entry_inside_top(); ?>
19 19
 
20 20
 		<?php
21
-			the_content();
22
-
23
-			wp_link_pages( array(
24
-				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
25
-				'after'       => '</div></div>',
26
-				'link_before' => '<span>',
27
-				'link_after'  => '</span>',
28
-			) );
29
-		?>
21
+               the_content();
22
+
23
+               wp_link_pages( array(
24
+                    'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
25
+                    'after'       => '</div></div>',
26
+                    'link_before' => '<span>',
27
+                    'link_after'  => '</span>',
28
+               ) );
29
+          ?>
30 30
 	</div><!-- .entry-content -->
31 31
 
32 32
 	<?php lsx_entry_bottom(); ?>
Please login to merge, or discard this patch.
partials/content-widget-review.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 if ( ! defined( 'ABSPATH' ) ) {
9
-	exit;
9
+     exit;
10 10
 }
11 11
 global $comment, $stored_comment, $_product, $rating;
12 12
 $the_comment = $comment;
13 13
 if ( null !== $stored_comment ) {
14
-	$the_comment = $stored_comment;
14
+     $the_comment = $stored_comment;
15 15
 }
16 16
 ?>
17 17
 <div class="lsx-woocommerce-review-slot">
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 
34 34
 			<p class="lsx-woocommerce-reviewer">
35 35
 				<?php
36
-					/* translators: %s: review author */
37
-					echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) );
38
-				?>
36
+                         /* translators: %s: review author */
37
+                         echo wp_kses_post( esc_html__( 'by ', 'lsx' ) . get_comment_author( $the_comment->comment_ID ) );
38
+                    ?>
39 39
 			</p>
40 40
 
41 41
 			<div class="lsx-woocommerce-content">
Please login to merge, or discard this patch.
page.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  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 get_template_part( 'partials/content', 'page' ); ?>
28 28
 
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 	<?php lsx_content_after(); ?>
38 38
 
39 39
 	<?php
40
-	if ( comments_open() ) {
41
-		comments_template();
42
-	}
43
-	?>
40
+     if ( comments_open() ) {
41
+          comments_template();
42
+     }
43
+     ?>
44 44
 
45 45
 </div><!-- #primary -->
46 46
 
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
 		<?php if ( have_posts() ) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
27
-				the_post();
28
-				?>
26
+               while ( have_posts() ) :
27
+                    the_post();
28
+                    ?>
29 29
 
30 30
 				<?php lsx_entry_before(); ?>
31 31
 
Please login to merge, or discard this patch.
page-templates/template-archives.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 		<?php if ( have_posts() ) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
27
-				the_post();
28
-				?>
26
+               while ( have_posts() ) :
27
+                    the_post();
28
+                    ?>
29 29
 
30 30
 				<?php lsx_entry_before(); ?>
31 31
 
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
 
39 39
 						<ul>
40 40
 							<?php
41
-								$loop = new WP_Query(
42
-									array(
43
-										'posts_per_page' => 30,
44
-									)
45
-								);
46
-							?>
41
+                                        $loop = new WP_Query(
42
+                                             array(
43
+                                                  'posts_per_page' => 30,
44
+                                             )
45
+                                        );
46
+                                   ?>
47 47
 
48 48
 							<?php if ( $loop->have_posts() ) : ?>
49 49
 
50 50
 								<?php while ( $loop->have_posts() ) : ?>
51 51
 
52 52
 									<?php
53
-										$loop->the_post();
54
-										$loop->is_home = false;
55
-									?>
53
+                                                  $loop->the_post();
54
+                                                  $loop->is_home = false;
55
+                                             ?>
56 56
 
57 57
 									<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>
58 58
 
Please login to merge, or discard this patch.
archive.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
 			<div class="post-wrapper">
23 23
 
24 24
 				<?php
25
-				while ( have_posts() ) :
26
-					the_post();
27
-					?>
25
+                    while ( have_posts() ) :
26
+                         the_post();
27
+                         ?>
28 28
 
29 29
 					<?php get_template_part( 'partials/content', get_post_format() ); ?>
30 30
 
Please login to merge, or discard this patch.
includes/bbpress/bbpress.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 global $bbpress;
14 14
 
15 15
 if ( ! function_exists( 'lsx_bbpress_scripts_add_styles' ) ) :
16 16
 
17
-	/**
18
-	 * bbPress enqueue styles.
19
-	 *
20
-	 * @package    lsx
21
-	 * @subpackage bbpress
22
-	 */
23
-	function lsx_bbpress_scripts_add_styles() {
24
-		wp_enqueue_style( 'bbpress-lsx', get_template_directory_uri() . '/assets/css/bb-press/bb-press.css', array( 'lsx_main' ), LSX_VERSION );
25
-		wp_style_add_data( 'bbpress-lsx', 'rtl', 'replace' );
26
-	}
17
+     /**
18
+      * bbPress enqueue styles.
19
+      *
20
+      * @package    lsx
21
+      * @subpackage bbpress
22
+      */
23
+     function lsx_bbpress_scripts_add_styles() {
24
+          wp_enqueue_style( 'bbpress-lsx', get_template_directory_uri() . '/assets/css/bb-press/bb-press.css', array( 'lsx_main' ), LSX_VERSION );
25
+          wp_style_add_data( 'bbpress-lsx', 'rtl', 'replace' );
26
+     }
27 27
 
28
-	add_action( 'wp_enqueue_scripts', 'lsx_bbpress_scripts_add_styles' );
28
+     add_action( 'wp_enqueue_scripts', 'lsx_bbpress_scripts_add_styles' );
29 29
 
30 30
 endif;
31 31
 
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 add_filter( 'get_the_archive_title', 'modify_archive_title', 10, 1 );
35 35
 
36 36
 function modify_archive_title( $title ) {
37
-	if ( ! is_post_type_archive( 'forum' ) ) {
38
-		return $title;
39
-	}
40
-	$title = __( 'Forums', 'lsx' );
41
-	return $title;
37
+     if ( ! is_post_type_archive( 'forum' ) ) {
38
+          return $title;
39
+     }
40
+     $title = __( 'Forums', 'lsx' );
41
+     return $title;
42 42
 }
Please login to merge, or discard this patch.