Completed
Push — dev ( db2001...df383e )
by Eric
01:31
created

single.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * The template for displaying all single posts.
4
 *
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
6
 *
7
 * @package bitsy
8
 */
9
10 View Code Duplication
while ( have_posts() ) : the_post();
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Please always use braces to surround the code block of WHILE statements.
Loading history...
11
12
	get_template_part( 'components/post/content', get_post_format() );
13
14
	the_post_navigation();
15
16
	// If comments are open or we have at least one comment, load up the comment template.
17
	if ( comments_open() || get_comments_number() ) :
0 ignored issues
show
Please always use braces to surround the code block of IF statements.
Loading history...
18
		comments_template();
19
	endif;
20
21
endwhile; // End of the loop.
22