Passed
Push — master ( e51c9a...41921a )
by Chris
04:16
created

page-templates/template-cover.php (10 issues)

1
<?php
2
/**
3
 * Cover Template.
4
 *
5
 * Template Name: Cover Template
6
 * Template Post Type: post, page
7
 *
8
 * @package    lsx
9
 * @subpackage template
10
 */
11
12
get_header(); ?>
13
14
<?php //lsx_content_wrap_before(); ?>
0 ignored issues
show
No space found before comment text; expected "// lsx_content_wrap_before();" but found "//lsx_content_wrap_before();"
Loading history...
Inline comments must end in full-stops, exclamation marks, or question marks
Loading history...
Unused Code Comprehensibility introduced by
75% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
15
16
<div id="primary" class="content-area col-sm-12">
17
18
	<?php lsx_content_before(); ?>
19
20
	<main id="main" class="site-main" role="main">
21
22
		<?php lsx_content_top(); ?>
23
24
		<?php if ( have_posts() ) : ?>
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
Blank line found at start of control structure
Loading history...
25
26
			<?php
27
			while ( have_posts() ) :
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
28
				the_post();
29
				?>
30
31
				<?php get_template_part( 'partials/content', 'page-cover' ); ?>
32
33
			<?php endwhile; ?>
34
35
		<?php endif; ?>
36
37
		<?php lsx_content_bottom(); ?>
38
39
		<?php
40
		if ( comments_open() ) {
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
41
			comments_template();
42
		}
43
		?>
44
45
	</main><!-- #main -->
46
47
	<?php lsx_content_after(); ?>
48
49
</div><!-- #primary -->
50
51
<?php lsx_content_wrap_after(); ?>
52
53
<?php
54
get_footer();
55