Completed
Push — master ( d488ab...6453e7 )
by Stephen
53:31
created
src/wp-content/themes/twentytwelve/search.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,30 +12,30 @@
 block discarded – undo
12 12
 	<section id="primary" class="site-content">
13 13
 		<div id="content" role="main">
14 14
 
15
-		<?php if ( have_posts() ) : ?>
15
+		<?php if (have_posts()) : ?>
16 16
 
17 17
 			<header class="page-header">
18
-				<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
18
+				<h1 class="page-title"><?php printf(__('Search Results for: %s', 'twentytwelve'), '<span>'.get_search_query().'</span>'); ?></h1>
19 19
 			</header>
20 20
 
21
-			<?php twentytwelve_content_nav( 'nav-above' ); ?>
21
+			<?php twentytwelve_content_nav('nav-above'); ?>
22 22
 
23 23
 			<?php /* Start the Loop */ ?>
24
-			<?php while ( have_posts() ) : the_post(); ?>
25
-				<?php get_template_part( 'content', get_post_format() ); ?>
24
+			<?php while (have_posts()) : the_post(); ?>
25
+				<?php get_template_part('content', get_post_format()); ?>
26 26
 			<?php endwhile; ?>
27 27
 
28
-			<?php twentytwelve_content_nav( 'nav-below' ); ?>
28
+			<?php twentytwelve_content_nav('nav-below'); ?>
29 29
 
30 30
 		<?php else : ?>
31 31
 
32 32
 			<article id="post-0" class="post no-results not-found">
33 33
 				<header class="entry-header">
34
-					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
34
+					<h1 class="entry-title"><?php _e('Nothing Found', 'twentytwelve'); ?></h1>
35 35
 				</header>
36 36
 
37 37
 				<div class="entry-content">
38
-					<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve' ); ?></p>
38
+					<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve'); ?></p>
39 39
 					<?php get_search_form(); ?>
40 40
 				</div><!-- .entry-content -->
41 41
 			</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,14 @@
 block discarded – undo
27 27
 
28 28
 			<?php twentytwelve_content_nav( 'nav-below' ); ?>
29 29
 
30
-		<?php else : ?>
30
+		<?php else {
31
+	: ?>
31 32
 
32 33
 			<article id="post-0" class="post no-results not-found">
33 34
 				<header class="entry-header">
34
-					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
35
+					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' );
36
+}
37
+?></h1>
35 38
 				</header>
36 39
 
37 40
 				<div class="entry-content">
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/tag.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,33 +16,33 @@
 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
 			<header class="archive-header">
21
-				<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
21
+				<h1 class="archive-title"><?php printf(__('Tag Archives: %s', 'twentytwelve'), '<span>'.single_tag_title('', false).'</span>'); ?></h1>
22 22
 
23
-			<?php if ( tag_description() ) : // Show an optional tag description ?>
23
+			<?php if (tag_description()) : // Show an optional tag description ?>
24 24
 				<div class="archive-meta"><?php echo tag_description(); ?></div>
25 25
 			<?php endif; ?>
26 26
 			</header><!-- .archive-header -->
27 27
 
28 28
 			<?php
29 29
 			/* Start the Loop */
30
-			while ( have_posts() ) : the_post();
30
+			while (have_posts()) : the_post();
31 31
 
32 32
 				/*
33 33
 				 * Include the post format-specific template for the content. If you want to
34 34
 				 * this in a child theme then include a file called called content-___.php
35 35
 				 * (where ___ is the post format) and that will be used instead.
36 36
 				 */
37
-				get_template_part( 'content', get_post_format() );
37
+				get_template_part('content', get_post_format());
38 38
 
39 39
 			endwhile;
40 40
 
41
-			twentytwelve_content_nav( 'nav-below' );
41
+			twentytwelve_content_nav('nav-below');
42 42
 			?>
43 43
 
44 44
 		<?php else : ?>
45
-			<?php get_template_part( 'content', 'none' ); ?>
45
+			<?php get_template_part('content', 'none'); ?>
46 46
 		<?php endif; ?>
47 47
 
48 48
 		</div><!-- #content -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,11 @@
 block discarded – undo
41 41
 			twentytwelve_content_nav( 'nav-below' );
42 42
 			?>
43 43
 
44
-		<?php else : ?>
45
-			<?php get_template_part( 'content', 'none' ); ?>
44
+		<?php else {
45
+	: ?>
46
+			<?php get_template_part( 'content', 'none' );
47
+}
48
+?>
46 49
 		<?php endif; ?>
47 50
 
48 51
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/inc/custom-header.php 3 patches
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
- * Implement an optional custom header for Twenty Twelve
4
- *
5
- * See https://codex.wordpress.org/Custom_Headers
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Twelve
9
- * @since Twenty Twelve 1.0
10
- */
3
+			 * Implement an optional custom header for Twenty Twelve
4
+			 *
5
+			 * See https://codex.wordpress.org/Custom_Headers
6
+			 *
7
+			 * @package WordPress
8
+			 * @subpackage Twenty_Twelve
9
+			 * @since Twenty Twelve 1.0
10
+			 */
11 11
 
12 12
 /**
13 13
  * Set up the WordPress core custom header arguments and settings.
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 		'admin-preview-callback' => 'twentytwelve_admin_header_image',
44 44
 	);
45 45
 
46
-	add_theme_support( 'custom-header', $args );
46
+	add_theme_support('custom-header', $args);
47 47
 }
48
-add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );
48
+add_action('after_setup_theme', 'twentytwelve_custom_header_setup');
49 49
 
50 50
 /**
51 51
  * Load our special font CSS file.
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
  */
55 55
 function twentytwelve_custom_header_fonts() {
56 56
 	$font_url = twentytwelve_get_font_url();
57
-	if ( ! empty( $font_url ) )
58
-		wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
57
+	if ( ! empty($font_url))
58
+		wp_enqueue_style('twentytwelve-fonts', esc_url_raw($font_url), array(), null);
59 59
 }
60
-add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
60
+add_action('admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts');
61 61
 
62 62
 /**
63 63
  * Style the header text displayed on the blog.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	$text_color = get_header_textcolor();
71 71
 
72 72
 	// If no custom options for text are set, let's bail
73
-	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )
73
+	if ($text_color == get_theme_support('custom-header', 'default-text-color'))
74 74
 		return;
75 75
 
76 76
 	// If we get this far, we have custom styles.
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	<style type="text/css" id="twentytwelve-header-css">
79 79
 	<?php
80 80
 		// Has the text been hidden?
81
-		if ( ! display_header_text() ) :
81
+		if ( ! display_header_text()) :
82 82
 	?>
83 83
 		.site-title,
84 84
 		.site-description {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		margin-bottom: 24px;
134 134
 	}
135 135
 	#headimg img {
136
-		max-width: <?php echo get_theme_support( 'custom-header', 'max-width' ); ?>px;
136
+		max-width: <?php echo get_theme_support('custom-header', 'max-width'); ?>px;
137 137
 	}
138 138
 	</style>
139 139
 <?php
@@ -147,17 +147,17 @@  discard block
 block discarded – undo
147 147
  * @since Twenty Twelve 1.0
148 148
  */
149 149
 function twentytwelve_admin_header_image() {
150
-	$style = 'color: #' . get_header_textcolor() . ';';
151
-	if ( ! display_header_text() ) {
150
+	$style = 'color: #'.get_header_textcolor().';';
151
+	if ( ! display_header_text()) {
152 152
 		$style = 'display: none;';
153 153
 	}
154 154
 	?>
155 155
 	<div id="headimg">
156
-		<h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
157
-		<h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2>
156
+		<h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr($style); ?>" onclick="return false;" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a></h1>
157
+		<h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr($style); ?>"><?php bloginfo('description'); ?></h2>
158 158
 		<?php $header_image = get_header_image();
159
-		if ( ! empty( $header_image ) ) : ?>
160
-			<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" />
159
+		if ( ! empty($header_image)) : ?>
160
+			<img src="<?php echo esc_url($header_image); ?>" class="header-image" width="<?php echo esc_attr(get_custom_header()->width); ?>" height="<?php echo esc_attr(get_custom_header()->height); ?>" alt="" />
161 161
 		<?php endif; ?>
162 162
 	</div>
163 163
 <?php }
Please login to merge, or discard this patch.
Braces   +12 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,9 +54,10 @@  discard block
 block discarded – undo
54 54
  */
55 55
 function twentytwelve_custom_header_fonts() {
56 56
 	$font_url = twentytwelve_get_font_url();
57
-	if ( ! empty( $font_url ) )
58
-		wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
59
-}
57
+	if ( ! empty( $font_url ) ) {
58
+			wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
59
+	}
60
+	}
60 61
 add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
61 62
 
62 63
 /**
@@ -70,8 +71,9 @@  discard block
 block discarded – undo
70 71
 	$text_color = get_header_textcolor();
71 72
 
72 73
 	// If no custom options for text are set, let's bail
73
-	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )
74
-		return;
74
+	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) {
75
+			return;
76
+	}
75 77
 
76 78
 	// If we get this far, we have custom styles.
77 79
 	?>
@@ -88,11 +90,14 @@  discard block
 block discarded – undo
88 90
 		}
89 91
 	<?php
90 92
 		// If the user has set a custom color for the text, use that.
91
-		else :
93
+		else {
94
+			:
92 95
 	?>
93 96
 		.site-header h1 a,
94 97
 		.site-header h2 {
95
-			color: #<?php echo $text_color; ?>;
98
+			color: #<?php echo $text_color;
99
+		}
100
+		?>;
96 101
 		}
97 102
 	<?php endif; ?>
98 103
 	</style>
Please login to merge, or discard this patch.
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', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
32 32
 					elseif ( is_year() ) :
33 33
 						printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
34
-					else :
34
+					else {
35
+						:
35 36
 						_e( 'Archives', 'twentytwelve' );
37
+					}
36 38
 					endif;
37 39
 				?></h1>
38 40
 			</header><!-- .archive-header -->
@@ -52,8 +54,11 @@  discard block
 block discarded – undo
52 54
 			twentytwelve_content_nav( 'nav-below' );
53 55
 			?>
54 56
 
55
-		<?php else : ?>
56
-			<?php get_template_part( 'content', 'none' ); ?>
57
+		<?php else {
58
+	: ?>
59
+			<?php get_template_part( 'content', 'none' );
60
+}
61
+?>
57 62
 		<?php endif; ?>
58 63
 
59 64
 		</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 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying Author Archive pages
4
- *
5
- * Used to display archive-type pages for posts by an author.
6
- *
7
- * @link https://codex.wordpress.org/Template_Hierarchy
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Twelve
11
- * @since Twenty Twelve 1.0
12
- */
3
+			 * The template for displaying Author Archive pages
4
+			 *
5
+			 * Used to display archive-type pages for posts by an author.
6
+			 *
7
+			 * @link https://codex.wordpress.org/Template_Hierarchy
8
+			 *
9
+			 * @package WordPress
10
+			 * @subpackage Twenty_Twelve
11
+			 * @since Twenty Twelve 1.0
12
+			 */
13 13
 
14 14
 get_header(); ?>
15 15
 
Please login to merge, or discard this patch.
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
@@ -73,8 +73,11 @@
 block discarded – undo
73 73
 
74 74
 			<?php twentytwelve_content_nav( 'nav-below' ); ?>
75 75
 
76
-		<?php else : ?>
77
-			<?php get_template_part( 'content', 'none' ); ?>
76
+		<?php else {
77
+	: ?>
78
+			<?php get_template_part( 'content', 'none' );
79
+}
80
+?>
78 81
 		<?php endif; ?>
79 82
 
80 83
 		</div><!-- #content -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentytwelve/single.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 all single posts
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Twelve
7
- * @since Twenty Twelve 1.0
8
- */
3
+					 * The Template for displaying all single posts
4
+					 *
5
+					 * @package WordPress
6
+					 * @subpackage Twenty_Twelve
7
+					 * @since Twenty Twelve 1.0
8
+					 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this 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.