Passed
Push — development ( 65a7cc...764dda )
by
unknown
10:32
created
inc/custom-comments.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
 		$fields    = array(
31 31
 			'author'  => '<div class="form-group comment-form-author"><label for="author">' . __( 'Name',
32 32
 					'spurs' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
33
-			             '<input class="form-control" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . '></div>',
33
+						 '<input class="form-control" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . '></div>',
34 34
 			'email'   => '<div class="form-group comment-form-email"><label for="email">' . __( 'Email',
35 35
 					'spurs' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
36
-			             '<input class="form-control" id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . '></div>',
36
+						 '<input class="form-control" id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . '></div>',
37 37
 			'url'     => '<div class="form-group comment-form-url"><label for="url">' . __( 'Website',
38 38
 					'spurs' ) . '</label> ' .
39
-			             '<input class="form-control" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></div>',
39
+						 '<input class="form-control" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></div>',
40 40
 			'cookies' => '<div class="form-group form-check comment-form-cookies-consent"><input class="form-check-input" id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' /> ' .
41
-			             '<label class="form-check-label" for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment', 'spurs' ) . '</label></div>',
41
+						 '<label class="form-check-label" for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment', 'spurs' ) . '</label></div>',
42 42
 		);
43 43
 
44 44
 		return $fields;
Please login to merge, or discard this patch.
comments.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -30,28 +30,28 @@  discard block
 block discarded – undo
30 30
             <h2 class="comments-title">
31 31
 
32 32
                 <?php
33
-                $comments_number = get_comments_number();
34
-                if ( 1 === (int) $comments_number ) {
35
-                    printf(
36
-                    /* translators: %s: post title */
37
-                        esc_html_x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'spurs' ),
38
-                        '<span>' . get_the_title() . '</span>'
39
-                    );
40
-                } else {
41
-                    printf( // WPCS: XSS OK.
42
-                    /* translators: 1: number of comments, 2: post title */
43
-                        esc_html( _nx(
44
-                            '%1$s thought on &ldquo;%2$s&rdquo;',
45
-                            '%1$s thoughts on &ldquo;%2$s&rdquo;',
46
-                            $comments_number,
47
-                            'comments title',
48
-                            'spurs'
49
-                        ) ),
50
-                        number_format_i18n( $comments_number ),
51
-                        '<span>' . get_the_title() . '</span>'
52
-                    );
53
-                }
54
-                ?>
33
+				$comments_number = get_comments_number();
34
+				if ( 1 === (int) $comments_number ) {
35
+					printf(
36
+					/* translators: %s: post title */
37
+						esc_html_x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'spurs' ),
38
+						'<span>' . get_the_title() . '</span>'
39
+					);
40
+				} else {
41
+					printf( // WPCS: XSS OK.
42
+					/* translators: 1: number of comments, 2: post title */
43
+						esc_html( _nx(
44
+							'%1$s thought on &ldquo;%2$s&rdquo;',
45
+							'%1$s thoughts on &ldquo;%2$s&rdquo;',
46
+							$comments_number,
47
+							'comments title',
48
+							'spurs'
49
+						) ),
50
+						number_format_i18n( $comments_number ),
51
+						'<span>' . get_the_title() . '</span>'
52
+					);
53
+				}
54
+				?>
55 55
 
56 56
             </h2><!-- .comments-title -->
57 57
 
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 
64 64
                     <?php if ( get_previous_comments_link() ) { ?>
65 65
                         <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments',
66
-                                'spurs' ) ); ?></div>
66
+								'spurs' ) ); ?></div>
67 67
                     <?php }
68
-                    if ( get_next_comments_link() ) { ?>
68
+					if ( get_next_comments_link() ) { ?>
69 69
                         <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;',
70
-                                'spurs' ) ); ?></div>
70
+								'spurs' ) ); ?></div>
71 71
                     <?php } ?>
72 72
 
73 73
                 </nav><!-- #comment-nav-above -->
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 
77 77
                 <ol class="comment-list" style="list-style: none">
78 78
                 <?php
79
-                wp_list_comments( array(
80
-                    'style'      => 'ol',
81
-                    'short_ping' => true,
82
-                ) );
83
-                ?>
79
+				wp_list_comments( array(
80
+					'style'      => 'ol',
81
+					'short_ping' => true,
82
+				) );
83
+				?>
84 84
             </ol><!-- .comment-list -->
85 85
 
86 86
             <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through. ?>
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
 
92 92
                     <?php if ( get_previous_comments_link() ) { ?>
93 93
                         <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments',
94
-                                'spurs' ) ); ?></div>
94
+								'spurs' ) ); ?></div>
95 95
                     <?php }
96
-                    if ( get_next_comments_link() ) { ?>
96
+					if ( get_next_comments_link() ) { ?>
97 97
                         <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;',
98
-                                'spurs' ) ); ?></div>
98
+								'spurs' ) ); ?></div>
99 99
                     <?php } ?>
100 100
 
101 101
                 </nav><!-- #comment-nav-below -->
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
         <?php endif; // endif have_comments(). ?>
106 106
 
107 107
         <?php
108
-        // If comments are closed and there are comments, let's leave a little note, shall we?
109
-        if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
108
+		// If comments are closed and there are comments, let's leave a little note, shall we?
109
+		if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
110 110
             <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'spurs' ); ?></p>
111 111
         <?php endif; ?>
112 112
 
Please login to merge, or discard this patch.
author.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -48,24 +48,24 @@
 block discarded – undo
48 48
     <ul>
49 49
         <!-- The Loop -->
50 50
         <?php if ( have_posts() ) :
51
-            while ( have_posts() ) : the_post(); ?>
51
+			while ( have_posts() ) : the_post(); ?>
52 52
                 <li>
53 53
                     <?php
54
-                    printf(
55
-                        '<a rel="bookmark" href="%1$s" title="%2$s %3$s">%3$s</a>',
56
-                        esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) ),
57
-                        esc_attr( __( 'Permanent Link:', 'spurs' ) ),
58
-                        the_title( '', '', false )
59
-                    );
60
-                    spurs_posted_on();
61
-                    esc_html_e( 'in', 'spurs' );
62
-                    the_category( '&' );
63
-                    ?>
54
+					printf(
55
+						'<a rel="bookmark" href="%1$s" title="%2$s %3$s">%3$s</a>',
56
+						esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) ),
57
+						esc_attr( __( 'Permanent Link:', 'spurs' ) ),
58
+						the_title( '', '', false )
59
+					);
60
+					spurs_posted_on();
61
+					esc_html_e( 'in', 'spurs' );
62
+					the_category( '&' );
63
+					?>
64 64
                 </li>
65 65
             <?php endwhile;
66
-        else :
67
-            get_template_part( 'templates/loop/content', 'none' );
68
-        endif; ?>
66
+		else :
67
+			get_template_part( 'templates/loop/content', 'none' );
68
+		endif; ?>
69 69
         <!-- End Loop -->
70 70
     </ul>
71 71
 </div>
Please login to merge, or discard this patch.
inc/template-tags.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@
 block discarded – undo
286 286
 			$html .= 'col-md-3 widget-area';
287 287
 			echo $html; // WPCS: XSS OK.
288 288
 		} elseif ( ( is_page_template( 'page-templates/sidebar-left.php' ) && is_active_sidebar( 'sidebar-left' ) ) ||
289
-		           ( is_page_template( 'page-templates/sidebar-right.php' ) && is_active_sidebar( 'sidebar-right' ) ) ) {
289
+				   ( is_page_template( 'page-templates/sidebar-right.php' ) && is_active_sidebar( 'sidebar-right' ) ) ) {
290 290
 			$html .= 'col-md-4 widget-area';
291 291
 			echo $html; // WPCS: XSS OK.
292 292
 		} elseif ( ( 'right' === $spurs_sidebar_position || 'left' === $spurs_sidebar_position ) && ( is_active_sidebar( 'sidebar-right' ) || is_active_sidebar( 'sidebar-left' ) ) ) {
Please login to merge, or discard this patch.
inc/extras.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
 
273 273
 function spurs_register_cpts(){
274 274
 
275
-    $cpts[] = array(
275
+	$cpts[] = array(
276 276
 		'name'  => 'report',
277 277
 		'names' => array(
278 278
 			'singular'      => 'report',
Please login to merge, or discard this patch.