Completed
Push — master ( d99bf9...491baf )
by Stephen
13:47
created
src/wp-content/themes/twentyfourteen/author.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	<section id="primary" class="content-area">
15 15
 		<div id="content" class="site-content" role="main">
16 16
 
17
-			<?php if ( have_posts() ) : ?>
17
+			<?php if (have_posts()) : ?>
18 18
 
19 19
 			<header class="archive-header">
20 20
 				<h1 class="archive-title">
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
 						 */
29 29
 						the_post();
30 30
 
31
-						printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
31
+						printf(__('All posts by %s', 'twentyfourteen'), get_the_author());
32 32
 					?>
33 33
 				</h1>
34
-				<?php if ( get_the_author_meta( 'description' ) ) : ?>
35
-				<div class="author-description"><?php the_author_meta( 'description' ); ?></div>
34
+				<?php if (get_the_author_meta('description')) : ?>
35
+				<div class="author-description"><?php the_author_meta('description'); ?></div>
36 36
 				<?php endif; ?>
37 37
 			</header><!-- .archive-header -->
38 38
 
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
 					rewind_posts();
46 46
 
47 47
 					// Start the Loop.
48
-					while ( have_posts() ) : the_post();
48
+					while (have_posts()) : the_post();
49 49
 
50 50
 						/*
51 51
 						 * Include the post format-specific template for the content. If you want to
52 52
 						 * use this in a child theme, then include a file called called content-___.php
53 53
 						 * (where ___ is the post format) and that will be used instead.
54 54
 						 */
55
-						get_template_part( 'content', get_post_format() );
55
+						get_template_part('content', get_post_format());
56 56
 
57 57
 					endwhile;
58 58
 					// Previous/next page navigation.
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 				else :
62 62
 					// If no content, include the "No posts found" template.
63
-					get_template_part( 'content', 'none' );
63
+					get_template_part('content', 'none');
64 64
 
65 65
 				endif;
66 66
 			?>
@@ -69,6 +69,6 @@  discard block
 block discarded – undo
69 69
 	</section><!-- #primary -->
70 70
 
71 71
 <?php
72
-get_sidebar( 'content' );
72
+get_sidebar('content');
73 73
 get_sidebar();
74 74
 get_footer();
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,9 +43,11 @@
 block discarded – undo
43 43
 					// Previous/next page navigation.
44 44
 					twentyfourteen_paging_nav();
45 45
 
46
-				else :
46
+				else {
47
+					:
47 48
 					// If no content, include the "No posts found" template.
48 49
 					get_template_part( 'content', 'none' );
50
+				}
49 51
 
50 52
 				endif;
51 53
 			?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/single.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
 		<div id="content" class="site-content" role="main">
14 14
 			<?php
15 15
 				// Start the Loop.
16
-				while ( have_posts() ) : the_post();
16
+				while (have_posts()) : the_post();
17 17
 
18 18
 					/*
19 19
 					 * Include the post format-specific template for the content. If you want to
20 20
 					 * use this in a child theme, then include a file called called content-___.php
21 21
 					 * (where ___ is the post format) and that will be used instead.
22 22
 					 */
23
-					get_template_part( 'content', get_post_format() );
23
+					get_template_part('content', get_post_format());
24 24
 
25 25
 					// Previous/next post navigation.
26 26
 					twentyfourteen_post_nav();
27 27
 
28 28
 					// If comments are open or we have at least one comment, load up the comment template.
29
-					if ( comments_open() || get_comments_number() ) {
29
+					if (comments_open() || get_comments_number()) {
30 30
 						comments_template();
31 31
 					}
32 32
 				endwhile;
@@ -35,6 +35,6 @@  discard block
 block discarded – undo
35 35
 	</div><!-- #primary -->
36 36
 
37 37
 <?php
38
-get_sidebar( 'content' );
38
+get_sidebar('content');
39 39
 get_sidebar();
40 40
 get_footer();
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-page.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@
 block discarded – undo
12 12
 	<?php
13 13
 		// Page thumbnail and title.
14 14
 		twentyfourteen_post_thumbnail();
15
-		the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
15
+		the_title('<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->');
16 16
 	?>
17 17
 
18 18
 	<div class="entry-content">
19 19
 		<?php
20 20
 			the_content();
21
-			wp_link_pages( array(
22
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
21
+			wp_link_pages(array(
22
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
23 23
 				'after'       => '</div>',
24 24
 				'link_before' => '<span>',
25 25
 				'link_after'  => '</span>',
26
-			) );
26
+			));
27 27
 
28
-			edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
28
+			edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>');
29 29
 		?>
30 30
 	</div><!-- .entry-content -->
31 31
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/featured-content.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
 		 *
17 17
 		 * @since Twenty Fourteen 1.0
18 18
 		 */
19
-		do_action( 'twentyfourteen_featured_posts_before' );
19
+		do_action('twentyfourteen_featured_posts_before');
20 20
 
21 21
 		$featured_posts = twentyfourteen_get_featured_posts();
22
-		foreach ( (array) $featured_posts as $order => $post ) :
23
-			setup_postdata( $post );
22
+		foreach ((array) $featured_posts as $order => $post) :
23
+			setup_postdata($post);
24 24
 
25 25
 			// Include the featured content template.
26
-			get_template_part( 'content', 'featured-post' );
26
+			get_template_part('content', 'featured-post');
27 27
 		endforeach;
28 28
 
29 29
 		/**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 		 *
32 32
 		 * @since Twenty Fourteen 1.0
33 33
 		 */
34
-		do_action( 'twentyfourteen_featured_posts_after' );
34
+		do_action('twentyfourteen_featured_posts_after');
35 35
 
36 36
 		wp_reset_postdata();
37 37
 	?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/404.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 		<div id="content" class="site-content" role="main">
15 15
 
16 16
 			<header class="page-header">
17
-				<h1 class="page-title"><?php _e( 'Not Found', 'twentyfourteen' ); ?></h1>
17
+				<h1 class="page-title"><?php _e('Not Found', 'twentyfourteen'); ?></h1>
18 18
 			</header>
19 19
 
20 20
 			<div class="page-content">
21
-				<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen' ); ?></p>
21
+				<p><?php _e('It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen'); ?></p>
22 22
 
23 23
 				<?php get_search_form(); ?>
24 24
 			</div><!-- .page-content -->
@@ -27,6 +27,6 @@  discard block
 block discarded – undo
27 27
 	</div><!-- #primary -->
28 28
 
29 29
 <?php
30
-get_sidebar( 'content' );
30
+get_sidebar('content');
31 31
 get_sidebar();
32 32
 get_footer();
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,37 +14,37 @@  discard block
 block discarded – undo
14 14
 	<?php twentyfourteen_post_thumbnail(); ?>
15 15
 
16 16
 	<header class="entry-header">
17
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
17
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
18 18
 		<div class="entry-meta">
19
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
19
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
20 20
 		</div>
21 21
 		<?php
22 22
 			endif;
23 23
 
24
-			if ( is_single() ) :
25
-				the_title( '<h1 class="entry-title">', '</h1>' );
24
+			if (is_single()) :
25
+				the_title('<h1 class="entry-title">', '</h1>');
26 26
 			else :
27
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+				the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>');
28 28
 			endif;
29 29
 		?>
30 30
 
31 31
 		<div class="entry-meta">
32 32
 			<?php
33
-				if ( 'post' == get_post_type() )
33
+				if ('post' == get_post_type())
34 34
 					twentyfourteen_posted_on();
35 35
 
36
-				if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
36
+				if ( ! post_password_required() && (comments_open() || get_comments_number())) :
37 37
 			?>
38
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
38
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span>
39 39
 			<?php
40 40
 				endif;
41 41
 
42
-				edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
42
+				edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>');
43 43
 			?>
44 44
 		</div><!-- .entry-meta -->
45 45
 	</header><!-- .entry-header -->
46 46
 
47
-	<?php if ( is_search() ) : ?>
47
+	<?php if (is_search()) : ?>
48 48
 	<div class="entry-summary">
49 49
 		<?php the_excerpt(); ?>
50 50
 	</div><!-- .entry-summary -->
@@ -52,20 +52,20 @@  discard block
 block discarded – undo
52 52
 	<div class="entry-content">
53 53
 		<?php
54 54
 			/* translators: %s: Name of current post */
55
-			the_content( sprintf(
56
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
57
-				the_title( '<span class="screen-reader-text">', '</span>', false )
58
-			) );
55
+			the_content(sprintf(
56
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen'),
57
+				the_title('<span class="screen-reader-text">', '</span>', false)
58
+			));
59 59
 
60
-			wp_link_pages( array(
61
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
60
+			wp_link_pages(array(
61
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
62 62
 				'after'       => '</div>',
63 63
 				'link_before' => '<span>',
64 64
 				'link_after'  => '</span>',
65
-			) );
65
+			));
66 66
 		?>
67 67
 	</div><!-- .entry-content -->
68 68
 	<?php endif; ?>
69 69
 
70
-	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
70
+	<?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?>
71 71
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,15 +23,18 @@  discard block
 block discarded – undo
23 23
 
24 24
 			if ( is_single() ) :
25 25
 				the_title( '<h1 class="entry-title">', '</h1>' );
26
-			else :
26
+			else {
27
+				:
27 28
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
29
+			}
28 30
 			endif;
29 31
 		?>
30 32
 
31 33
 		<div class="entry-meta">
32 34
 			<?php
33
-				if ( 'post' == get_post_type() )
34
-					twentyfourteen_posted_on();
35
+				if ( 'post' == get_post_type() ) {
36
+									twentyfourteen_posted_on();
37
+				}
35 38
 
36 39
 				if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
37 40
 			?>
@@ -48,7 +51,8 @@  discard block
 block discarded – undo
48 51
 	<div class="entry-summary">
49 52
 		<?php the_excerpt(); ?>
50 53
 	</div><!-- .entry-summary -->
51
-	<?php else : ?>
54
+	<?php else {
55
+	: ?>
52 56
 	<div class="entry-content">
53 57
 		<?php
54 58
 			/* translators: %s: Name of current post */
@@ -56,6 +60,7 @@  discard block
 block discarded – undo
56 60
 				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
57 61
 				the_title( '<span class="screen-reader-text">', '</span>', false )
58 62
 			) );
63
+}
59 64
 
60 65
 			wp_link_pages( array(
61 66
 				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/comments.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,50 +13,50 @@
 block discarded – undo
13 13
  * If the current post is protected by a password and the visitor has not yet
14 14
  * entered the password we will return early without loading the comments.
15 15
  */
16
-if ( post_password_required() ) {
16
+if (post_password_required()) {
17 17
 	return;
18 18
 }
19 19
 ?>
20 20
 
21 21
 <div id="comments" class="comments-area">
22 22
 
23
-	<?php if ( have_comments() ) : ?>
23
+	<?php if (have_comments()) : ?>
24 24
 
25 25
 	<h2 class="comments-title">
26 26
 		<?php
27
-			printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyfourteen' ),
28
-				number_format_i18n( get_comments_number() ), get_the_title() );
27
+			printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyfourteen'),
28
+				number_format_i18n(get_comments_number()), get_the_title());
29 29
 		?>
30 30
 	</h2>
31 31
 
32
-	<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
32
+	<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
33 33
 	<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
34
-		<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
35
-		<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
36
-		<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyfourteen' ) ); ?></div>
34
+		<h1 class="screen-reader-text"><?php _e('Comment navigation', 'twentyfourteen'); ?></h1>
35
+		<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentyfourteen')); ?></div>
36
+		<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentyfourteen')); ?></div>
37 37
 	</nav><!-- #comment-nav-above -->
38 38
 	<?php endif; // Check for comment navigation. ?>
39 39
 
40 40
 	<ol class="comment-list">
41 41
 		<?php
42
-			wp_list_comments( array(
42
+			wp_list_comments(array(
43 43
 				'style'       => 'ol',
44 44
 				'short_ping'  => true,
45 45
 				'avatar_size' => 34,
46
-			) );
46
+			));
47 47
 		?>
48 48
 	</ol><!-- .comment-list -->
49 49
 
50
-	<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
50
+	<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
51 51
 	<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
52
-		<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
53
-		<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
54
-		<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyfourteen' ) ); ?></div>
52
+		<h1 class="screen-reader-text"><?php _e('Comment navigation', 'twentyfourteen'); ?></h1>
53
+		<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentyfourteen')); ?></div>
54
+		<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentyfourteen')); ?></div>
55 55
 	</nav><!-- #comment-nav-below -->
56 56
 	<?php endif; // Check for comment navigation. ?>
57 57
 
58
-	<?php if ( ! comments_open() ) : ?>
59
-	<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p>
58
+	<?php if ( ! comments_open()) : ?>
59
+	<p class="no-comments"><?php _e('Comments are closed.', 'twentyfourteen'); ?></p>
60 60
 	<?php endif; ?>
61 61
 
62 62
 	<?php endif; // have_comments() ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-none.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@
 block discarded – undo
9 9
 ?>
10 10
 
11 11
 <header class="page-header">
12
-	<h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
12
+	<h1 class="page-title"><?php _e('Nothing Found', 'twentyfourteen'); ?></h1>
13 13
 </header>
14 14
 
15 15
 <div class="page-content">
16
-	<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
16
+	<?php if (is_home() && current_user_can('publish_posts')) : ?>
17 17
 
18
-	<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
18
+	<p><?php printf(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen'), admin_url('post-new.php')); ?></p>
19 19
 
20
-	<?php elseif ( is_search() ) : ?>
20
+	<?php elseif (is_search()) : ?>
21 21
 
22
-	<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
22
+	<p><?php _e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen'); ?></p>
23 23
 	<?php get_search_form(); ?>
24 24
 
25 25
 	<?php else : ?>
26 26
 
27
-	<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
27
+	<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen'); ?></p>
28 28
 	<?php get_search_form(); ?>
29 29
 
30 30
 	<?php endif; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,12 @@
 block discarded – undo
22 22
 	<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
23 23
 	<?php get_search_form(); ?>
24 24
 
25
-	<?php else : ?>
25
+	<?php else {
26
+	: ?>
26 27
 
27
-	<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
28
+	<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' );
29
+}
30
+?></p>
28 31
 	<?php get_search_form(); ?>
29 32
 
30 33
 	<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/sidebar-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 		<div id="primary">
15 15
 			<div id="content" role="main">
16 16
 
17
-				<?php while ( have_posts() ) : the_post(); ?>
17
+				<?php while (have_posts()) : the_post(); ?>
18 18
 
19
-					<?php get_template_part( 'content', 'page' ); ?>
19
+					<?php get_template_part('content', 'page'); ?>
20 20
 
21
-					<?php comments_template( '', true ); ?>
21
+					<?php comments_template('', true); ?>
22 22
 
23 23
 				<?php endwhile; // end of the loop. ?>
24 24
 
Please login to merge, or discard this patch.