Passed
Branch master (c0b965)
by SILENT
02:18
created
sidebar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * @subpackage Strip
7 7
  */
8 8
 
9
-if ( ! is_active_sidebar( 'sidebar' ) ) {
9
+if ( ! is_active_sidebar('sidebar')) {
10 10
 	return;
11 11
 }
12 12
 ?>
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<div class="main-sidebar">
19 19
 
20
-	<?php dynamic_sidebar( 'sidebar' ); ?>
20
+	<?php dynamic_sidebar('sidebar'); ?>
21 21
 
22 22
 		</div>
23 23
 	</div><!-- .widget-wrap -->
Please login to merge, or discard this patch.
taxonomy-story-draft.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@  discard block
 block discarded – undo
16 16
 	<div id="primary"
17 17
 		<main id="content" class="wrap" role="main">
18 18
 
19
-	<?php if ( have_posts() ) : ?>
19
+	<?php if (have_posts()) : ?>
20 20
 	<header class="page-header">
21 21
 		</br>
22 22
 			<?php
23 23
 						// Show an optional term description.
24 24
 						$term_description = term_description();
25
-			if ( ! empty( $term_description ) ) :
26
-				printf( '<div class="taxonomy-description">%s</div>', $term_description, 'strip' ); // WPCS: XSS OK.
25
+			if ( ! empty($term_description)) :
26
+				printf('<div class="taxonomy-description">%s</div>', $term_description, 'strip'); // WPCS: XSS OK.
27 27
 						endif; ?>
28 28
 			<h4 class="comic-blurb">Here are your uncategorized comics. To order them, go to Add New Comic, then + Add New Story and write a series title of your choice, or check an existing series box, if you had one. To write your own custom taxonomies, clone taxonomy-story-draft.php and replace "draft" by your own story name.</h4>
29 29
 	</header><!-- .page-header -->
30 30
 
31 31
 <?php // Create and run first loop in reverse order.
32 32
 		$comic = new WP_Query();
33
-		$comic->query( array(
33
+		$comic->query(array(
34 34
 			'post_type'  => 'comic',
35 35
 			'showposts'	 => -1,
36 36
 			'story'      => 'draft',
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 			)
40 40
 		);
41 41
 
42
-while ( $comic->have_posts() ) : $comic->the_post();
42
+while ($comic->have_posts()) : $comic->the_post();
43 43
 
44
-	get_template_part( 'content-comic' ); ?>
44
+	get_template_part('content-comic'); ?>
45 45
 
46 46
 			<?php endwhile; ?>
47 47
 <?php
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 ?>
50 50
 		<?php else : ?>
51 51
 
52
-			<?php get_template_part( 'no-results', 'archive-comic' ); ?>
52
+			<?php get_template_part('no-results', 'archive-comic'); ?>
53 53
 
54 54
 		<?php endif; ?>
55 55
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,9 +47,12 @@
 block discarded – undo
47 47
 <?php
48 48
 	wp_reset_postdata();
49 49
 ?>
50
-		<?php else : ?>
50
+		<?php else {
51
+	: ?>
51 52
 
52
-			<?php get_template_part( 'no-results', 'archive-comic' ); ?>
53
+			<?php get_template_part( 'no-results', 'archive-comic' );
54
+}
55
+?>
53 56
 
54 57
 		<?php endif; ?>
55 58
 
Please login to merge, or discard this patch.
content-audio.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 				if ( ! is_single() ) :
23 23
 					the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
24
-				else :
24
+				else {
25
+					:
25 26
 						the_title( '<h1 class="entry-title">', '</h1>' );
27
+				}
26 28
 				endif;
27 29
 				?>
28 30
 			</header><!-- .entry-header -->
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,27 +14,27 @@
 block discarded – undo
14 14
 		<div class="entry-info">
15 15
 			<header class="entry-header">
16 16
 				<?php
17
-					$categories_list = get_the_category_list( __( ', ', 'strip' ) );
17
+					$categories_list = get_the_category_list(__(', ', 'strip'));
18 18
 
19
-				if ( ! is_single() ) :
20
-					the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
19
+				if ( ! is_single()) :
20
+					the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
21 21
 				else :
22
-						the_title( '<h1 class="entry-title">', '</h1>' );
22
+						the_title('<h1 class="entry-title">', '</h1>');
23 23
 				endif;
24 24
 				?>
25 25
 			</header><!-- .entry-header -->
26 26
 
27 27
 			<footer class="entry-meta">
28 28
 
29
-				<span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'audio' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'audio' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'audio' ) ); ?></a></span>
29
+				<span class="entry-format"><a href="<?php echo esc_url(get_post_format_link('audio')); ?>" title="<?php echo esc_attr(sprintf(__('All %s posts', 'strip'), get_post_format_string('audio'))); ?>"><?php echo esc_html(get_post_format_string('audio')); ?></a></span>
30 30
 
31
-				<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
31
+				<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?>
32 32
 			</footer><!-- .entry-meta -->
33 33
 
34 34
 		</div><!-- .entry-info -->
35 35
 
36 36
 		<div class="entry-content clear">
37
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
37
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'strip')); ?>
38 38
 
39 39
 		</div><!-- .entry-content -->
40 40
 	</div><!-- .entry-wrap -->
Please login to merge, or discard this patch.
archive-story.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,8 +96,10 @@
 block discarded – undo
96 96
 wp_reset_postdata();
97 97
 ?>
98 98
 		<?php
99
-		else :
99
+		else {
100
+			:
100 101
 			get_template_part( 'no-results', 'archive-comic' );
102
+		}
101 103
 		endif; ?>
102 104
 
103 105
 				</div><!-- .wrap -->
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 		<div class="wrap">
18 18
 			<header class="entry-header">
19 19
 				<h3 class="taxonomy-description">
20
-					<?php printf( '<a href="%s" class="post-parent-title">%s</a>',
21
-						esc_url( get_post_type_archive_link( 'comic' ) ),
22
-						esc_html( get_the_title() )
20
+					<?php printf('<a href="%s" class="post-parent-title">%s</a>',
21
+						esc_url(get_post_type_archive_link('comic')),
22
+						esc_html(get_the_title())
23 23
 					); ?>
24 24
 					</a></h3>
25 25
 				<h1 class="page-title"><?php the_title(); ?></h1>
@@ -28,28 +28,28 @@  discard block
 block discarded – undo
28 28
 		<div class="columns">
29 29
 
30 30
 		<?php
31
-		if ( get_query_var( 'paged' ) ) {
31
+		if (get_query_var('paged')) {
32 32
 			$paged = 1;
33 33
 		}
34 34
 
35 35
 					// Call and run loop in descending order.
36
-					$loop = new WP_Query( array(
36
+					$loop = new WP_Query(array(
37 37
 						'post_type'			     => 'comic',
38 38
 						'story'              => '', // add story term here if you want this template to only archive a specific story.
39 39
 						'posts_per_page'     => 12, // changes default Blog pages number "reading settings" set in dashboard.
40 40
 						'paged'              => $paged, // you absolutely need this.
41 41
 						'orderby'            => 'title', // order by title or date.
42 42
 						'order'              => 'DESC',
43
-					) );
43
+					));
44 44
 
45 45
 					// Start the loop.
46
-					if ( $loop->have_posts() ) :
47
-						while ( $loop->have_posts() ) :
46
+					if ($loop->have_posts()) :
47
+						while ($loop->have_posts()) :
48 48
 							$loop->the_post();
49 49
 			?>
50 50
 			<div class="column">
51
-				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ),the_title_attribute( 'echo=0' ) ); ?>"></a>
52
-				<?php if ( get_the_post_thumbnail() !== '' ) {
51
+				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"></a>
52
+				<?php if (get_the_post_thumbnail() !== '') {
53 53
 
54 54
 					echo '<a href="';
55 55
 					the_permalink();
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
 	the_permalink();
65 65
 	echo '" class="thumbnail-wrapper">';
66 66
 	echo '<img src="';
67
-	echo esc_html( get_first_image() );
67
+	echo esc_html(get_first_image());
68 68
 	echo '" alt="" />';
69 69
 	echo '</a>';
70 70
 } ?>
71 71
 
72
-<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_html__( 'Permanent Link to %s', 'strip' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2>
72
+<h2 class="series-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(esc_html__('Permanent Link to %s', 'strip'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
73 73
 
74 74
 			</div><!-- .column -->
75 75
 			<?php endwhile; ?>
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 // get_next_posts_link() usage with max_num_pages. ?>
83 83
 <nav class="paging-navigation">
84 84
 <div class="nav-previous-page">
85
-<?php next_posts_link( esc_html_x( 'Previous episodes', 'Next posts link', 'strip' ), $loop->max_num_pages ); ?>
85
+<?php next_posts_link(esc_html_x('Previous episodes', 'Next posts link', 'strip'), $loop->max_num_pages); ?>
86 86
 	</div>
87 87
 		<div class="nav-next-page">
88
-			<?php previous_posts_link( esc_html_x( 'Recent episodes' , 'Previous post link', 'strip' ) ); ?>
88
+			<?php previous_posts_link(esc_html_x('Recent episodes', 'Previous post link', 'strip')); ?>
89 89
 		</div>
90 90
 </nav>
91 91
 <?php // clean up after the query and pagination.
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 ?>
94 94
 		<?php
95 95
 		else :
96
-			get_template_part( 'no-results', 'archive-comic' );
96
+			get_template_part('no-results', 'archive-comic');
97 97
 		endif; ?>
98 98
 
99 99
 				</div><!-- .wrap -->
Please login to merge, or discard this patch.
inc/jetpack.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 		'posts_per_page' => false,
24 24
 	));
25 25
 }
26
-add_action( 'after_setup_theme', 'strip_infinite_scroll_setup' );
26
+add_action('after_setup_theme', 'strip_infinite_scroll_setup');
27 27
 
28 28
 /**
29 29
  * Enables Jetpack's Infinite Scroll for home (blog), disables it in WooCommerce product archives
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
  * https://wordpress.org/support/topic/suppress-infinite-blog-with-woocommerce
33 33
  */
34 34
 function strip_jetpack_infinite_scroll_supported() {
35
-	return current_theme_supports( 'infinite-scroll' ) && ( is_admin() || is_home() || is_search()  && ! is_post_type_archive( 'product' ) );
35
+	return current_theme_supports('infinite-scroll') && (is_admin() || is_home() || is_search() && ! is_post_type_archive('product'));
36 36
 }
37
-add_filter( 'infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported' );
37
+add_filter('infinite_scroll_archive_supported', 'strip_jetpack_infinite_scroll_supported');
Please login to merge, or discard this patch.
inc/customizer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@
 block discarded – undo
11 11
  *
12 12
  * @param WP_Customize_Manager $wp_customize Theme Customizer object.
13 13
  */
14
-function strip_customize_register( $wp_customize ) {
15
-	$wp_customize->get_setting( 'blogname' )        ->transport = 'postMessage';
16
-	$wp_customize->get_setting( 'blogdescription' ) ->transport = 'postMessage';
17
-	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
18
-	$wp_customize->get_setting( 'background_image' )->transport = 'postMessage';
19
-	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'content_title_color', array(
20
-		'label'   => esc_html_x( 'Content Title Color', 'admin', 'strip' ),
14
+function strip_customize_register($wp_customize) {
15
+	$wp_customize->get_setting('blogname')        ->transport = 'postMessage';
16
+	$wp_customize->get_setting('blogdescription') ->transport = 'postMessage';
17
+	$wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
18
+	$wp_customize->get_setting('background_image')->transport = 'postMessage';
19
+	$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'content_title_color', array(
20
+		'label'   => esc_html_x('Content Title Color', 'admin', 'strip'),
21 21
 		'section' => 'colors',
22
-	) ) );
22
+	)));
23 23
 }
24
-add_action( 'customize_register', 'strip_customize_register' );
24
+add_action('customize_register', 'strip_customize_register');
25 25
 
26 26
 /**
27 27
  * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
28 28
  */
29 29
 function strip_customize_preview_js() {
30
-	wp_enqueue_script( 'strip_customizer', get_template_directory_uri() . '/js/min/customizer-min.js', array( 'customize-preview' ), '20130508', true );
30
+	wp_enqueue_script('strip_customizer', get_template_directory_uri() . '/js/min/customizer-min.js', array('customize-preview'), '20130508', true);
31 31
 }
32
-add_action( 'customize_preview_init', 'strip_customize_preview_js' );
32
+add_action('customize_preview_init', 'strip_customize_preview_js');
Please login to merge, or discard this patch.
inc/author-box.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,22 +20,22 @@
 block discarded – undo
20 20
 		 *
21 21
 		 * @param int $size The avatar height and width size in pixels.
22 22
 		 */
23
-		$author_bio_avatar_size = apply_filters( 'strip_author_bio_avatar_size', 168 );
23
+		$author_bio_avatar_size = apply_filters('strip_author_bio_avatar_size', 168);
24 24
 
25
-		echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
25
+		echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size);
26 26
 		?>
27 27
 	</div><!-- .author-avatar -->
28 28
 
29 29
 	<div class="author-meta">
30 30
 
31 31
 	<div class="author-description">
32
-		<h2 class="author-title"><span class="author-heading"><?php esc_html_e( '&#9998;', 'strip' ); ?></span> <?php echo get_the_author(); ?></h2>
32
+		<h2 class="author-title"><span class="author-heading"><?php esc_html_e('&#9998;', 'strip'); ?></span> <?php echo get_the_author(); ?></h2>
33 33
 
34 34
 
35 35
 		<p class="author-bio">
36
-			<?php the_author_meta( 'description' ); ?>
37
-				<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
38
-					<br> <?php printf( esc_html__( 'View all articles by %s', 'strip' ), get_the_author() ); ?>
36
+			<?php the_author_meta('description'); ?>
37
+				<a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author">
38
+					<br> <?php printf(esc_html__('View all articles by %s', 'strip'), get_the_author()); ?>
39 39
 				</a>
40 40
 			</p><!-- .author-bio -->
41 41
 		</div><!-- .author-description -->
Please login to merge, or discard this patch.
page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
 	<div id="primary" class="content-area">
18 18
 		<div id="content" class="site-content" role="main">
19 19
 
20
-			<?php while ( have_posts() ) :
20
+			<?php while (have_posts()) :
21 21
 				the_post(); ?>
22 22
 
23
-				<?php get_template_part( 'content', 'page' ); ?>
23
+				<?php get_template_part('content', 'page'); ?>
24 24
 
25 25
 				<?php
26 26
 					// If comments are open or we have at least one comment, load up the comment template.
27
-				if ( comments_open() || '0' !== get_comments_number() ) {
27
+				if (comments_open() || '0' !== get_comments_number()) {
28 28
 					comments_template();
29 29
 				}
30 30
 				?>
Please login to merge, or discard this patch.
content-gallery.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,8 +28,10 @@
 block discarded – undo
28 28
 
29 29
 	if ( ! is_single() ) :
30 30
 		the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
31
-	else :
31
+	else {
32
+		:
32 33
 					the_title( '<h1 class="entry-title">', '</h1>' );
34
+	}
33 35
 	endif; ?>
34 36
 
35 37
 		<div class="entry-content clear">
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@  discard block
 block discarded – undo
11 11
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 	<div class="entry-wrap wrap clear">
13 13
 
14
-<?php if ( '' !== get_the_post_thumbnail() ) :
15
-	the_post_thumbnail( 'strip-featured-thumbnail' );
14
+<?php if ('' !== get_the_post_thumbnail()) :
15
+	the_post_thumbnail('strip-featured-thumbnail');
16 16
 endif; ?>
17 17
 
18 18
 		<header class="entry-header">
19 19
 	<?php
20
-				$categories_list = get_the_category_list( __( ', ', 'strip' ) );
20
+				$categories_list = get_the_category_list(__(', ', 'strip'));
21 21
 
22
-	if ( ! is_single() ) :
23
-		the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
22
+	if ( ! is_single()) :
23
+		the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>');
24 24
 	else :
25
-					the_title( '<h1 class="entry-title">', '</h1>' );
25
+					the_title('<h1 class="entry-title">', '</h1>');
26 26
 	endif; ?>
27 27
 
28 28
 		<div class="entry-content clear">
29
-	<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
29
+	<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'strip')); ?>
30 30
 
31 31
 		</div><!-- .entry-content -->
32 32
 		</header><!-- .entry-header -->
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
 		<footer class="entry-meta">
35 35
 	<?php strip_entry_meta(); ?>
36 36
 
37
-			<span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'gallery' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'gallery' ) ); ?></a></span>
37
+			<span class="entry-format"><a href="<?php echo esc_url(get_post_format_link('gallery')); ?>" title="<?php echo esc_attr(sprintf(__('All %s posts', 'strip'), get_post_format_string('gallery'))); ?>"><?php echo esc_html(get_post_format_string('gallery')); ?></a></span>
38 38
 
39
-	<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
39
+	<?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?>
40 40
 		</footer><!-- .entry-meta -->
41 41
 
42
-	<?php if ( has_excerpt() ) : ?>
42
+	<?php if (has_excerpt()) : ?>
43 43
 		<div class="entry-summary">
44
-	<?php do_action( 'strip_formatted_posts_excerpt_before' ); ?>
44
+	<?php do_action('strip_formatted_posts_excerpt_before'); ?>
45 45
 	<?php the_excerpt(); ?>
46
-	<?php do_action( 'strip_formatted_posts_excerpt_after' ); ?>
46
+	<?php do_action('strip_formatted_posts_excerpt_after'); ?>
47 47
 		</div><!-- .entry-caption -->
48 48
 	<?php endif; ?>
49 49
 
Please login to merge, or discard this patch.