Completed
Push — master ( 8ff7a8...c0c536 )
by Stephen
77:04 queued 40:03
created
src/wp-content/themes/twentytwelve/archive.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying Archive pages
4
- *
5
- * Used to display archive-type pages if nothing more specific matches a query.
6
- * For example, puts together date-based pages if no date.php file exists.
7
- *
8
- * If you'd like to further customize these archive views, you may create a
9
- * new template file for each specific one. For example, Twenty Twelve already
10
- * has tag.php for Tag archives, category.php for Category archives, and
11
- * author.php for Author archives.
12
- *
13
- * @link https://codex.wordpress.org/Template_Hierarchy
14
- *
15
- * @package WordPress
16
- * @subpackage Twenty_Twelve
17
- * @since Twenty Twelve 1.0
18
- */
3
+		 * The template for displaying Archive pages
4
+		 *
5
+		 * Used to display archive-type pages if nothing more specific matches a query.
6
+		 * For example, puts together date-based pages if no date.php file exists.
7
+		 *
8
+		 * If you'd like to further customize these archive views, you may create a
9
+		 * new template file for each specific one. For example, Twenty Twelve already
10
+		 * has tag.php for Tag archives, category.php for Category archives, and
11
+		 * author.php for Author archives.
12
+		 *
13
+		 * @link https://codex.wordpress.org/Template_Hierarchy
14
+		 *
15
+		 * @package WordPress
16
+		 * @subpackage Twenty_Twelve
17
+		 * @since Twenty Twelve 1.0
18
+		 */
19 19
 
20 20
 get_header(); ?>
21 21
 
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,38 +22,38 @@
 block discarded – undo
22 22
 	<section id="primary" class="site-content">
23 23
 		<div id="content" role="main">
24 24
 
25
-		<?php if ( have_posts() ) : ?>
25
+		<?php if (have_posts()) : ?>
26 26
 			<header class="archive-header">
27 27
 				<h1 class="archive-title"><?php
28
-					if ( is_day() ) :
29
-						printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
30
-					elseif ( is_month() ) :
31
-						printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
32
-					elseif ( is_year() ) :
33
-						printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
28
+					if (is_day()) :
29
+						printf(__('Daily Archives: %s', 'twentytwelve'), '<span>'.get_the_date().'</span>');
30
+					elseif (is_month()) :
31
+						printf(__('Monthly Archives: %s', 'twentytwelve'), '<span>'.get_the_date(_x('F Y', 'monthly archives date format', 'twentytwelve')).'</span>');
32
+					elseif (is_year()) :
33
+						printf(__('Yearly Archives: %s', 'twentytwelve'), '<span>'.get_the_date(_x('Y', 'yearly archives date format', 'twentytwelve')).'</span>');
34 34
 					else :
35
-						_e( 'Archives', 'twentytwelve' );
35
+						_e('Archives', 'twentytwelve');
36 36
 					endif;
37 37
 				?></h1>
38 38
 			</header><!-- .archive-header -->
39 39
 
40 40
 			<?php
41 41
 			/* Start the Loop */
42
-			while ( have_posts() ) : the_post();
42
+			while (have_posts()) : the_post();
43 43
 
44 44
 				/* Include the post format-specific template for the content. If you want to
45 45
 				 * this in a child theme then include a file called called content-___.php
46 46
 				 * (where ___ is the post format) and that will be used instead.
47 47
 				 */
48
-				get_template_part( 'content', get_post_format() );
48
+				get_template_part('content', get_post_format());
49 49
 
50 50
 			endwhile;
51 51
 
52
-			twentytwelve_content_nav( 'nav-below' );
52
+			twentytwelve_content_nav('nav-below');
53 53
 			?>
54 54
 
55 55
 		<?php else : ?>
56
-			<?php get_template_part( 'content', 'none' ); ?>
56
+			<?php get_template_part('content', 'none'); ?>
57 57
 		<?php endif; ?>
58 58
 
59 59
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,8 +31,10 @@  discard block
 block discarded – undo
31 31
 						printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
32 32
 					elseif ( is_year() ) :
33 33
 						printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
34
-					else :
34
+					else {
35
+						:
35 36
 						_e( 'Archives', 'twentythirteen' );
37
+					}
36 38
 					endif;
37 39
 				?></h1>
38 40
 			</header><!-- .archive-header -->
@@ -44,8 +46,11 @@  discard block
 block discarded – undo
44 46
 
45 47
 			<?php twentythirteen_paging_nav(); ?>
46 48
 
47
-		<?php else : ?>
48
-			<?php get_template_part( 'content', 'none' ); ?>
49
+		<?php else {
50
+	: ?>
51
+			<?php get_template_part( 'content', 'none' );
52
+}
53
+?>
49 54
 		<?php endif; ?>
50 55
 
51 56
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-status.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying posts in the Status post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Twelve
7
- * @since Twenty Twelve 1.0
8
- */
3
+			 * The template for displaying posts in the Status post format
4
+			 *
5
+			 * @package WordPress
6
+			 * @subpackage Twenty_Twelve
7
+			 * @since Twenty Twelve 1.0
8
+			 */
9 9
 ?>
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 		<div class="entry-header">
13 13
 			<header>
14 14
 				<h1><?php the_author(); ?></h1>
15
-				<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
15
+				<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentytwelve'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
16 16
 			</header>
17 17
 			<?php
18 18
 			/**
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
22 22
 			 *
23 23
 			 * @param int $size The height and width of the avatar in pixels.
24 24
 			 */
25
-			$status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 );
26
-			echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar );
25
+			$status_avatar = apply_filters('twentytwelve_status_avatar', 48);
26
+			echo get_avatar(get_the_author_meta('ID'), $status_avatar);
27 27
 			?>
28 28
 		</div><!-- .entry-header -->
29 29
 
30 30
 		<div class="entry-content">
31
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
31
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
32 32
 		</div><!-- .entry-content -->
33 33
 
34 34
 		<footer class="entry-meta">
35
-			<?php if ( comments_open() ) : ?>
35
+			<?php if (comments_open()) : ?>
36 36
 			<div class="comments-link">
37
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
37
+				<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
38 38
 			</div><!-- .comments-link -->
39 39
 			<?php endif; // comments_open() ?>
40
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
40
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
41 41
 		</footer><!-- .entry-meta -->
42 42
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/author.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	<section id="primary" class="site-content">
17 17
 		<div id="content" role="main">
18 18
 
19
-		<?php if ( have_posts() ) : ?>
19
+		<?php if (have_posts()) : ?>
20 20
 
21 21
 			<?php
22 22
 				/* Queue the first post, that way we know
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			?>
30 30
 
31 31
 			<header class="archive-header">
32
-				<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
32
+				<h1 class="archive-title"><?php printf(__('Author Archives: %s', 'twentytwelve'), '<span class="vcard"><a class="url fn n" href="'.esc_url(get_author_posts_url(get_the_author_meta('ID'))).'" title="'.esc_attr(get_the_author()).'" rel="me">'.get_the_author().'</a></span>'); ?></h1>
33 33
 			</header><!-- .archive-header -->
34 34
 
35 35
 			<?php
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 				rewind_posts();
41 41
 			?>
42 42
 
43
-			<?php twentytwelve_content_nav( 'nav-above' ); ?>
43
+			<?php twentytwelve_content_nav('nav-above'); ?>
44 44
 
45 45
 			<?php
46 46
 			// If a user has filled out their description, show a bio on their entries.
47
-			if ( get_the_author_meta( 'description' ) ) : ?>
47
+			if (get_the_author_meta('description')) : ?>
48 48
 			<div class="author-info">
49 49
 				<div class="author-avatar">
50 50
 					<?php
@@ -55,26 +55,26 @@  discard block
 block discarded – undo
55 55
 					 *
56 56
 					 * @param int $size The height and width of the avatar in pixels.
57 57
 					 */
58
-					$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
59
-					echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
58
+					$author_bio_avatar_size = apply_filters('twentytwelve_author_bio_avatar_size', 68);
59
+					echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size);
60 60
 					?>
61 61
 				</div><!-- .author-avatar -->
62 62
 				<div class="author-description">
63
-					<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
64
-					<p><?php the_author_meta( 'description' ); ?></p>
63
+					<h2><?php printf(__('About %s', 'twentytwelve'), get_the_author()); ?></h2>
64
+					<p><?php the_author_meta('description'); ?></p>
65 65
 				</div><!-- .author-description	-->
66 66
 			</div><!-- .author-info -->
67 67
 			<?php endif; ?>
68 68
 
69 69
 			<?php /* Start the Loop */ ?>
70
-			<?php while ( have_posts() ) : the_post(); ?>
71
-				<?php get_template_part( 'content', get_post_format() ); ?>
70
+			<?php while (have_posts()) : the_post(); ?>
71
+				<?php get_template_part('content', get_post_format()); ?>
72 72
 			<?php endwhile; ?>
73 73
 
74
-			<?php twentytwelve_content_nav( 'nav-below' ); ?>
74
+			<?php twentytwelve_content_nav('nav-below'); ?>
75 75
 
76 76
 		<?php else : ?>
77
-			<?php get_template_part( 'content', 'none' ); ?>
77
+			<?php get_template_part('content', 'none'); ?>
78 78
 		<?php endif; ?>
79 79
 
80 80
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,11 @@
 block discarded – undo
51 51
 
52 52
 			<?php twentythirteen_paging_nav(); ?>
53 53
 
54
-		<?php else : ?>
55
-			<?php get_template_part( 'content', 'none' ); ?>
54
+		<?php else {
55
+	: ?>
56
+			<?php get_template_part( 'content', 'none' );
57
+}
58
+?>
56 59
 		<?php endif; ?>
57 60
 
58 61
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/single.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 	<div id="primary" class="site-content">
13 13
 		<div id="content" role="main">
14 14
 
15
-			<?php while ( have_posts() ) : the_post(); ?>
15
+			<?php while (have_posts()) : the_post(); ?>
16 16
 
17
-				<?php get_template_part( 'content', get_post_format() ); ?>
17
+				<?php get_template_part('content', get_post_format()); ?>
18 18
 
19 19
 				<nav class="nav-single">
20
-					<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
21
-					<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
22
-					<span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
20
+					<h3 class="assistive-text"><?php _e('Post navigation', 'twentytwelve'); ?></h3>
21
+					<span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('&larr;', 'Previous post link', 'twentytwelve').'</span> %title'); ?></span>
22
+					<span class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">'._x('&rarr;', 'Next post link', 'twentytwelve').'</span>'); ?></span>
23 23
 				</nav><!-- .nav-single -->
24 24
 
25
-				<?php comments_template( '', true ); ?>
25
+				<?php comments_template('', true); ?>
26 26
 
27 27
 			<?php endwhile; // end of the loop. ?>
28 28
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 12
 		<header class="entry-header">
13
-			<?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
13
+			<?php if ( ! is_page_template('page-templates/front-page.php')) : ?>
14 14
 			<?php the_post_thumbnail(); ?>
15 15
 			<?php endif; ?>
16 16
 			<h1 class="entry-title"><?php the_title(); ?></h1>
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
 		<div class="entry-content">
20 20
 			<?php the_content(); ?>
21
-			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
21
+			<?php wp_link_pages(array('before' => '<div class="page-links">'.__('Pages:', 'twentytwelve'), 'after' => '</div>')); ?>
22 22
 		</div><!-- .entry-content -->
23 23
 		<footer class="entry-meta">
24
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
24
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
25 25
 		</footer><!-- .entry-meta -->
26 26
 	</article><!-- #post -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/404.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 
15 15
 			<article id="post-0" class="post error404 no-results not-found">
16 16
 				<header class="entry-header">
17
-					<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentytwelve' ); ?></h1>
17
+					<h1 class="entry-title"><?php _e('This is somewhat embarrassing, isn&rsquo;t it?', 'twentytwelve'); ?></h1>
18 18
 				</header>
19 19
 
20 20
 				<div class="entry-content">
21
-					<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p>
21
+					<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwelve'); ?></p>
22 22
 					<?php get_search_form(); ?>
23 23
 				</div><!-- .entry-content -->
24 24
 			</article><!-- #post-0 -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content.php 3 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,59 +11,59 @@
 block discarded – undo
11 11
 ?>
12 12
 
13 13
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
14
-		<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
14
+		<?php if (is_sticky() && is_home() && ! is_paged()) : ?>
15 15
 		<div class="featured-post">
16
-			<?php _e( 'Featured post', 'twentytwelve' ); ?>
16
+			<?php _e('Featured post', 'twentytwelve'); ?>
17 17
 		</div>
18 18
 		<?php endif; ?>
19 19
 		<header class="entry-header">
20
-			<?php if ( ! post_password_required() && ! is_attachment() ) :
20
+			<?php if ( ! post_password_required() && ! is_attachment()) :
21 21
 				the_post_thumbnail();
22 22
 			endif; ?>
23 23
 
24
-			<?php if ( is_single() ) : ?>
24
+			<?php if (is_single()) : ?>
25 25
 			<h1 class="entry-title"><?php the_title(); ?></h1>
26 26
 			<?php else : ?>
27 27
 			<h1 class="entry-title">
28 28
 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
29 29
 			</h1>
30 30
 			<?php endif; // is_single() ?>
31
-			<?php if ( comments_open() ) : ?>
31
+			<?php if (comments_open()) : ?>
32 32
 				<div class="comments-link">
33
-					<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
33
+					<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentytwelve').'</span>', __('1 Reply', 'twentytwelve'), __('% Replies', 'twentytwelve')); ?>
34 34
 				</div><!-- .comments-link -->
35 35
 			<?php endif; // comments_open() ?>
36 36
 		</header><!-- .entry-header -->
37 37
 
38
-		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
38
+		<?php if (is_search()) : // Only display Excerpts for Search ?>
39 39
 		<div class="entry-summary">
40 40
 			<?php the_excerpt(); ?>
41 41
 		</div><!-- .entry-summary -->
42 42
 		<?php else : ?>
43 43
 		<div class="entry-content">
44
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
45
-			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
44
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve')); ?>
45
+			<?php wp_link_pages(array('before' => '<div class="page-links">'.__('Pages:', 'twentytwelve'), 'after' => '</div>')); ?>
46 46
 		</div><!-- .entry-content -->
47 47
 		<?php endif; ?>
48 48
 
49 49
 		<footer class="entry-meta">
50 50
 			<?php twentytwelve_entry_meta(); ?>
51
-			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
52
-			<?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
51
+			<?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>'); ?>
52
+			<?php if (is_singular() && get_the_author_meta('description') && is_multi_author()) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
53 53
 				<div class="author-info">
54 54
 					<div class="author-avatar">
55 55
 						<?php
56 56
 						/** This filter is documented in author.php */
57
-						$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
58
-						echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
57
+						$author_bio_avatar_size = apply_filters('twentytwelve_author_bio_avatar_size', 68);
58
+						echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size);
59 59
 						?>
60 60
 					</div><!-- .author-avatar -->
61 61
 					<div class="author-description">
62
-						<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
63
-						<p><?php the_author_meta( 'description' ); ?></p>
62
+						<h2><?php printf(__('About %s', 'twentytwelve'), get_the_author()); ?></h2>
63
+						<p><?php the_author_meta('description'); ?></p>
64 64
 						<div class="author-link">
65
-							<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
66
-								<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() ); ?>
65
+							<a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author">
66
+								<?php printf(__('View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve'), get_the_author()); ?>
67 67
 							</a>
68 68
 						</div><!-- .author-link	-->
69 69
 					</div><!-- .author-description -->
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,9 +23,12 @@  discard block
 block discarded – undo
23 23
 
24 24
 			<?php if ( is_single() ) : ?>
25 25
 			<h1 class="entry-title"><?php the_title(); ?></h1>
26
-			<?php else : ?>
26
+			<?php else {
27
+	: ?>
27 28
 			<h1 class="entry-title">
28
-				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
29
+				<a href="<?php the_permalink();
30
+}
31
+?>" rel="bookmark"><?php the_title(); ?></a>
29 32
 			</h1>
30 33
 			<?php endif; // is_single() ?>
31 34
 			<?php if ( comments_open() ) : ?>
@@ -39,9 +42,12 @@  discard block
 block discarded – undo
39 42
 		<div class="entry-summary">
40 43
 			<?php the_excerpt(); ?>
41 44
 		</div><!-- .entry-summary -->
42
-		<?php else : ?>
45
+		<?php else {
46
+	: ?>
43 47
 		<div class="entry-content">
44
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
48
+			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) );
49
+}
50
+?>
45 51
 			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
46 52
 		</div><!-- .entry-content -->
47 53
 		<?php endif; ?>
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The default template for displaying content
4
- *
5
- * Used for both single and index/archive/search.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Twelve
9
- * @since Twenty Twelve 1.0
10
- */
3
+			 * The default template for displaying content
4
+			 *
5
+			 * Used for both single and index/archive/search.
6
+			 *
7
+			 * @package WordPress
8
+			 * @subpackage Twenty_Twelve
9
+			 * @since Twenty Twelve 1.0
10
+			 */
11 11
 ?>
12 12
 
13 13
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/comments.php 3 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * the visitor has not yet entered the password we will
18 18
  * return early without loading the comments.
19 19
  */
20
-if ( post_password_required() )
20
+if (post_password_required())
21 21
 	return;
22 22
 ?>
23 23
 
@@ -25,23 +25,23 @@  discard block
 block discarded – undo
25 25
 
26 26
 	<?php // You can start editing here -- including this comment! ?>
27 27
 
28
-	<?php if ( have_comments() ) : ?>
28
+	<?php if (have_comments()) : ?>
29 29
 		<h2 class="comments-title">
30 30
 			<?php
31
-				printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
32
-					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
31
+				printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve'),
32
+					number_format_i18n(get_comments_number()), '<span>'.get_the_title().'</span>');
33 33
 			?>
34 34
 		</h2>
35 35
 
36 36
 		<ol class="commentlist">
37
-			<?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>
37
+			<?php wp_list_comments(array('callback' => 'twentytwelve_comment', 'style' => 'ol')); ?>
38 38
 		</ol><!-- .commentlist -->
39 39
 
40
-		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
40
+		<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?>
41 41
 		<nav id="comment-nav-below" class="navigation" role="navigation">
42
-			<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
43
-			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
44
-			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentytwelve' ) ); ?></div>
42
+			<h1 class="assistive-text section-heading"><?php _e('Comment navigation', 'twentytwelve'); ?></h1>
43
+			<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentytwelve')); ?></div>
44
+			<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentytwelve')); ?></div>
45 45
 		</nav>
46 46
 		<?php endif; // check for comment navigation ?>
47 47
 
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
 		/* If there are no comments and comments are closed, let's leave a note.
50 50
 		 * But we only want the note on posts and pages that had comments in the first place.
51 51
 		 */
52
-		if ( ! comments_open() && get_comments_number() ) : ?>
53
-		<p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p>
52
+		if ( ! comments_open() && get_comments_number()) : ?>
53
+		<p class="nocomments"><?php _e('Comments are closed.', 'twentytwelve'); ?></p>
54 54
 		<?php endif; ?>
55 55
 
56 56
 	<?php endif; // have_comments() ?>
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying Comments
4
- *
5
- * The area of the page that contains both current comments
6
- * and the comment form. The actual display of comments is
7
- * handled by a callback to twentytwelve_comment() which is
8
- * located in the functions.php file.
9
- *
10
- * @package WordPress
11
- * @subpackage Twenty_Twelve
12
- * @since Twenty Twelve 1.0
13
- */
3
+			 * The template for displaying Comments
4
+			 *
5
+			 * The area of the page that contains both current comments
6
+			 * and the comment form. The actual display of comments is
7
+			 * handled by a callback to twentytwelve_comment() which is
8
+			 * located in the functions.php file.
9
+			 *
10
+			 * @package WordPress
11
+			 * @subpackage Twenty_Twelve
12
+			 * @since Twenty Twelve 1.0
13
+			 */
14 14
 
15 15
 /*
16 16
  * If the current post is protected by a password and
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@
 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
 <div id="comments" class="comments-area">
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/content-none.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 
11 11
 	<article id="post-0" class="post no-results not-found">
12 12
 		<header class="entry-header">
13
-			<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
13
+			<h1 class="entry-title"><?php _e('Nothing Found', 'twentytwelve'); ?></h1>
14 14
 		</header>
15 15
 
16 16
 		<div class="entry-content">
17
-			<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
17
+			<p><?php _e('Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve'); ?></p>
18 18
 			<?php get_search_form(); ?>
19 19
 		</div><!-- .entry-content -->
20 20
 	</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying a "No posts found" message
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Twelve
7
- * @since Twenty Twelve 1.0
8
- */
3
+	 * The template for displaying a "No posts found" message
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Twelve
7
+	 * @since Twenty Twelve 1.0
8
+	 */
9 9
 ?>
10 10
 
11 11
 	<article id="post-0" class="post no-results not-found">
Please login to merge, or discard this patch.