Completed
Push — master ( d488ab...6453e7 )
by Stephen
53:31
created
src/wp-content/themes/twentyeleven/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
- * Header template for the theme
4
- *
5
- * Displays all of the <head> section and everything up till <div id="main">.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Eleven
9
- * @since Twenty Eleven 1.0
10
- */
3
+			 * Header template for the theme
4
+			 *
5
+			 * Displays all of the <head> section and everything up till <div id="main">.
6
+			 *
7
+			 * @package WordPress
8
+			 * @subpackage Twenty_Eleven
9
+			 * @since Twenty Eleven 1.0
10
+			 */
11 11
 ?><!DOCTYPE html>
12 12
 <!--[if IE 6]>
13 13
 <html id="ie6" <?php language_attributes(); ?>>
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -22,30 +22,30 @@  discard block
 block discarded – undo
22 22
 <html <?php language_attributes(); ?>>
23 23
 <!--<![endif]-->
24 24
 <head>
25
-<meta charset="<?php bloginfo( 'charset' ); ?>" />
25
+<meta charset="<?php bloginfo('charset'); ?>" />
26 26
 <meta name="viewport" content="width=device-width" />
27 27
 <title><?php
28 28
 	// Print the <title> tag based on what is being viewed.
29 29
 	global $page, $paged;
30 30
 
31
-	wp_title( '|', true, 'right' );
31
+	wp_title('|', true, 'right');
32 32
 
33 33
 	// Add the blog name.
34
-	bloginfo( 'name' );
34
+	bloginfo('name');
35 35
 
36 36
 	// Add the blog description for the home/front page.
37
-	$site_description = get_bloginfo( 'description', 'display' );
38
-	if ( $site_description && ( is_home() || is_front_page() ) )
37
+	$site_description = get_bloginfo('description', 'display');
38
+	if ($site_description && (is_home() || is_front_page()))
39 39
 		echo " | $site_description";
40 40
 
41 41
 	// Add a page number if necessary:
42
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
43
-		echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
42
+	if (($paged >= 2 || $page >= 2) && ! is_404())
43
+		echo esc_html(' | '.sprintf(__('Page %s', 'twentyeleven'), max($paged, $page)));
44 44
 
45 45
 	?></title>
46 46
 <link rel="profile" href="http://gmpg.org/xfn/11" />
47
-<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
48
-<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
47
+<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
48
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
49 49
 <!--[if lt IE 9]>
50 50
 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
51 51
 <![endif]-->
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 	 * We add some JavaScript to pages with the comment form
55 55
 	 * to support sites with threaded comments (when in use).
56 56
 	 */
57
-	if ( is_singular() && get_option( 'thread_comments' ) )
58
-		wp_enqueue_script( 'comment-reply' );
57
+	if (is_singular() && get_option('thread_comments'))
58
+		wp_enqueue_script('comment-reply');
59 59
 
60 60
 	/*
61 61
 	 * Always have wp_head() just before the closing </head>
@@ -71,39 +71,39 @@  discard block
 block discarded – undo
71 71
 <div id="page" class="hfeed">
72 72
 	<header id="branding" role="banner">
73 73
 			<hgroup>
74
-				<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
75
-				<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
74
+				<h1 id="site-title"><span><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></span></h1>
75
+				<h2 id="site-description"><?php bloginfo('description'); ?></h2>
76 76
 			</hgroup>
77 77
 
78 78
 			<?php
79 79
 				// Check to see if the header image has been removed
80 80
 				$header_image = get_header_image();
81
-				if ( $header_image ) :
81
+				if ($header_image) :
82 82
 					// Compatibility with versions of WordPress prior to 3.4.
83
-					if ( function_exists( 'get_custom_header' ) ) {
83
+					if (function_exists('get_custom_header')) {
84 84
 						/*
85 85
 						 * We need to figure out what the minimum width should be for our featured image.
86 86
 						 * This result would be the suggested width if the theme were to implement flexible widths.
87 87
 						 */
88
-						$header_image_width = get_theme_support( 'custom-header', 'width' );
88
+						$header_image_width = get_theme_support('custom-header', 'width');
89 89
 					} else {
90 90
 						$header_image_width = HEADER_IMAGE_WIDTH;
91 91
 					}
92 92
 					?>
93
-			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
93
+			<a href="<?php echo esc_url(home_url('/')); ?>">
94 94
 				<?php
95 95
 					/*
96 96
 					 * The header image.
97 97
 					 * Check if this is a post or page, if it has a thumbnail, and if it's a big one
98 98
 					 */
99
-					if ( is_singular() && has_post_thumbnail( $post->ID ) &&
100
-							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) &&
101
-							$image[1] >= $header_image_width ) :
99
+					if (is_singular() && has_post_thumbnail($post->ID) &&
100
+							( /* $src, $width, $height */ $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), array($header_image_width, $header_image_width)) ) &&
101
+							$image[1] >= $header_image_width) :
102 102
 						// Houston, we have a new header image!
103
-						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
103
+						echo get_the_post_thumbnail($post->ID, 'post-thumbnail');
104 104
 					else :
105 105
 						// Compatibility with versions of WordPress prior to 3.4.
106
-						if ( function_exists( 'get_custom_header' ) ) {
106
+						if (function_exists('get_custom_header')) {
107 107
 							$header_image_width  = get_custom_header()->width;
108 108
 							$header_image_height = get_custom_header()->height;
109 109
 						} else {
@@ -111,16 +111,16 @@  discard block
 block discarded – undo
111 111
 							$header_image_height = HEADER_IMAGE_HEIGHT;
112 112
 						}
113 113
 						?>
114
-					<img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
114
+					<img src="<?php header_image(); ?>" width="<?php echo esc_attr($header_image_width); ?>" height="<?php echo esc_attr($header_image_height); ?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" />
115 115
 				<?php endif; // end check for featured image or standard header ?>
116 116
 			</a>
117 117
 			<?php endif; // end check for removed header image ?>
118 118
 
119 119
 			<?php
120 120
 				// Has the text been hidden?
121
-				if ( 'blank' == get_header_textcolor() ) :
121
+				if ('blank' == get_header_textcolor()) :
122 122
 			?>
123
-				<div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>">
123
+				<div class="only-search<?php if ($header_image) : ?> with-image<?php endif; ?>">
124 124
 				<?php get_search_form(); ?>
125 125
 				</div>
126 126
 			<?php
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
 			<?php endif; ?>
131 131
 
132 132
 			<nav id="access" role="navigation">
133
-				<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
133
+				<h3 class="assistive-text"><?php _e('Main menu', 'twentyeleven'); ?></h3>
134 134
 				<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
135
-				<div class="skip-link"><a class="assistive-text" href="#content"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
136
-				<?php if ( ! is_singular() ) : ?>
137
-					<div class="skip-link"><a class="assistive-text" href="#secondary"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
135
+				<div class="skip-link"><a class="assistive-text" href="#content"><?php _e('Skip to primary content', 'twentyeleven'); ?></a></div>
136
+				<?php if ( ! is_singular()) : ?>
137
+					<div class="skip-link"><a class="assistive-text" href="#secondary"><?php _e('Skip to secondary content', 'twentyeleven'); ?></a></div>
138 138
 				<?php endif; ?>
139 139
 				<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
140
-				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
140
+				<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
141 141
 			</nav><!-- #access -->
142 142
 	</header><!-- #branding -->
143 143
 
Please login to merge, or discard this patch.
Braces   +17 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,12 +35,14 @@  discard block
 block discarded – undo
35 35
 
36 36
 	// Add the blog description for the home/front page.
37 37
 	$site_description = get_bloginfo( 'description', 'display' );
38
-	if ( $site_description && ( is_home() || is_front_page() ) )
39
-		echo " | $site_description";
38
+	if ( $site_description && ( is_home() || is_front_page() ) ) {
39
+			echo " | $site_description";
40
+	}
40 41
 
41 42
 	// Add a page number if necessary:
42
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
43
-		echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
43
+	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
44
+			echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
45
+	}
44 46
 
45 47
 	?></title>
46 48
 <link rel="profile" href="http://gmpg.org/xfn/11" />
@@ -54,8 +56,9 @@  discard block
 block discarded – undo
54 56
 	 * We add some JavaScript to pages with the comment form
55 57
 	 * to support sites with threaded comments (when in use).
56 58
 	 */
57
-	if ( is_singular() && get_option( 'thread_comments' ) )
58
-		wp_enqueue_script( 'comment-reply' );
59
+	if ( is_singular() && get_option( 'thread_comments' ) ) {
60
+			wp_enqueue_script( 'comment-reply' );
61
+	}
59 62
 
60 63
 	/*
61 64
 	 * Always have wp_head() just before the closing </head>
@@ -101,10 +104,12 @@  discard block
 block discarded – undo
101 104
 							$image[1] >= $header_image_width ) :
102 105
 						// Houston, we have a new header image!
103 106
 						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
104
-					else :
107
+					else {
108
+						:
105 109
 						// Compatibility with versions of WordPress prior to 3.4.
106 110
 						if ( function_exists( 'get_custom_header' ) ) {
107 111
 							$header_image_width  = get_custom_header()->width;
112
+					}
108 113
 							$header_image_height = get_custom_header()->height;
109 114
 						} else {
110 115
 							$header_image_width  = HEADER_IMAGE_WIDTH;
@@ -124,9 +129,12 @@  discard block
 block discarded – undo
124 129
 				<?php get_search_form(); ?>
125 130
 				</div>
126 131
 			<?php
127
-				else :
132
+				else {
133
+					:
128 134
 			?>
129
-				<?php get_search_form(); ?>
135
+				<?php get_search_form();
136
+				}
137
+				?>
130 138
 			<?php endif; ?>
131 139
 
132 140
 			<nav id="access" role="navigation">
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-featured.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
- * Template for displaying content featured in the showcase.php page template
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Eleven
7
- * @since Twenty Eleven 1.0
8
- */
3
+			 * Template for displaying content featured in the showcase.php page template
4
+			 *
5
+			 * @package WordPress
6
+			 * @subpackage Twenty_Eleven
7
+			 * @since Twenty Eleven 1.0
8
+			 */
9 9
 
10 10
 global $feature_class;
11 11
 ?>
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 global $feature_class;
11 11
 ?>
12
-<article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
12
+<article id="post-<?php the_ID(); ?>" <?php post_class($feature_class); ?>>
13 13
 	<header class="entry-header">
14 14
 		<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
15 15
 
@@ -20,28 +20,28 @@  discard block
 block discarded – undo
20 20
 
21 21
 	<div class="entry-summary">
22 22
 		<?php the_excerpt(); ?>
23
-		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
23
+		<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
24 24
 	</div><!-- .entry-content -->
25 25
 
26 26
 	<footer class="entry-meta">
27 27
 		<?php
28 28
 			/* translators: used between list items, there is a space after the comma */
29
-			$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
30
-			if ( '' != $tag_list ) {
31
-				$utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
29
+			$tag_list = get_the_tag_list('', __(', ', 'twentyeleven'));
30
+			if ('' != $tag_list) {
31
+				$utility_text = __('This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven');
32 32
 			} else {
33
-				$utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
33
+				$utility_text = __('This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven');
34 34
 			}
35 35
 			printf(
36 36
 				$utility_text,
37 37
 				/* translators: used between list items, there is a space after the comma */
38
-				get_the_category_list( __( ', ', 'twentyeleven' ) ),
38
+				get_the_category_list(__(', ', 'twentyeleven')),
39 39
 				$tag_list,
40
-				esc_url( get_permalink() ),
41
-				the_title_attribute( 'echo=0' )
40
+				esc_url(get_permalink()),
41
+				the_title_attribute('echo=0')
42 42
 			);
43 43
 		?>
44 44
 
45
-		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
45
+		<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
46 46
 	</footer><!-- .entry-meta -->
47 47
 </article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/sidebar.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
- * Sidebar containing the main widget area
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Eleven
7
- * @since Twenty Eleven 1.0
8
- */
3
+		 * Sidebar containing the main widget area
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Twenty_Eleven
7
+		 * @since Twenty Eleven 1.0
8
+		 */
9 9
 
10 10
 $options = twentyeleven_get_theme_options();
11 11
 $current_layout = $options['theme_layout'];
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@
 block discarded – undo
10 10
 $options = twentyeleven_get_theme_options();
11 11
 $current_layout = $options['theme_layout'];
12 12
 
13
-if ( 'content' != $current_layout ) :
13
+if ('content' != $current_layout) :
14 14
 ?>
15 15
 		<div id="secondary" class="widget-area" role="complementary">
16
-			<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
16
+			<?php if ( ! dynamic_sidebar('sidebar-1')) : ?>
17 17
 
18 18
 				<aside id="archives" class="widget">
19
-					<h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
19
+					<h3 class="widget-title"><?php _e('Archives', 'twentyeleven'); ?></h3>
20 20
 					<ul>
21
-						<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
21
+						<?php wp_get_archives(array('type' => 'monthly')); ?>
22 22
 					</ul>
23 23
 				</aside>
24 24
 
25 25
 				<aside id="meta" class="widget">
26
-					<h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
26
+					<h3 class="widget-title"><?php _e('Meta', 'twentyeleven'); ?></h3>
27 27
 					<ul>
28 28
 						<?php wp_register(); ?>
29 29
 						<li><?php wp_loginout(); ?></li>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/index.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,28 +17,28 @@
 block discarded – undo
17 17
 		<div id="primary">
18 18
 			<div id="content" role="main">
19 19
 
20
-			<?php if ( have_posts() ) : ?>
20
+			<?php if (have_posts()) : ?>
21 21
 
22
-				<?php twentyeleven_content_nav( 'nav-above' ); ?>
22
+				<?php twentyeleven_content_nav('nav-above'); ?>
23 23
 
24 24
 				<?php /* Start the Loop */ ?>
25
-				<?php while ( have_posts() ) : the_post(); ?>
25
+				<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-					<?php get_template_part( 'content', get_post_format() ); ?>
27
+					<?php get_template_part('content', get_post_format()); ?>
28 28
 
29 29
 				<?php endwhile; ?>
30 30
 
31
-				<?php twentyeleven_content_nav( 'nav-below' ); ?>
31
+				<?php twentyeleven_content_nav('nav-below'); ?>
32 32
 
33 33
 			<?php else : ?>
34 34
 
35 35
 				<article id="post-0" class="post no-results not-found">
36 36
 					<header class="entry-header">
37
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
37
+						<h1 class="entry-title"><?php _e('Nothing Found', 'twentyeleven'); ?></h1>
38 38
 					</header><!-- .entry-header -->
39 39
 
40 40
 					<div class="entry-content">
41
-						<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
41
+						<p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven'); ?></p>
42 42
 						<?php get_search_form(); ?>
43 43
 					</div><!-- .entry-content -->
44 44
 				</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,14 @@
 block discarded – undo
30 30
 
31 31
 				<?php twentyeleven_content_nav( 'nav-below' ); ?>
32 32
 
33
-			<?php else : ?>
33
+			<?php else {
34
+	: ?>
34 35
 
35 36
 				<article id="post-0" class="post no-results not-found">
36 37
 					<header class="entry-header">
37
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
38
+						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' );
39
+}
40
+?></h1>
38 41
 					</header><!-- .entry-header -->
39 42
 
40 43
 					<div class="entry-content">
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-aside.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
- * Template for displaying posts in the Aside Post Format
4
- *
5
- * Used on index and archive pages.
6
- *
7
- * @link https://codex.wordpress.org/Post_Formats
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Eleven
11
- * @since Twenty Eleven 1.0
12
- */
3
+	 * Template for displaying posts in the Aside Post Format
4
+	 *
5
+	 * Used on index and archive pages.
6
+	 *
7
+	 * @link https://codex.wordpress.org/Post_Formats
8
+	 *
9
+	 * @package WordPress
10
+	 * @subpackage Twenty_Eleven
11
+	 * @since Twenty Eleven 1.0
12
+	 */
13 13
 ?>
14 14
 
15 15
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,33 +16,33 @@
 block discarded – undo
16 16
 		<header class="entry-header">
17 17
 			<hgroup>
18 18
 				<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
19
-				<h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3>
19
+				<h3 class="entry-format"><?php _e('Aside', 'twentyeleven'); ?></h3>
20 20
 			</hgroup>
21 21
 
22
-			<?php if ( comments_open() && ! post_password_required() ) : ?>
22
+			<?php if (comments_open() && ! post_password_required()) : ?>
23 23
 			<div class="comments-link">
24
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
24
+				<?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?>
25 25
 			</div>
26 26
 			<?php endif; ?>
27 27
 		</header><!-- .entry-header -->
28 28
 
29
-		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
29
+		<?php if (is_search()) : // Only display Excerpts for Search ?>
30 30
 		<div class="entry-summary">
31 31
 			<?php the_excerpt(); ?>
32 32
 		</div><!-- .entry-summary -->
33 33
 		<?php else : ?>
34 34
 		<div class="entry-content">
35
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
36
-			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
35
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?>
36
+			<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
37 37
 		</div><!-- .entry-content -->
38 38
 		<?php endif; ?>
39 39
 
40 40
 		<footer class="entry-meta">
41 41
 			<?php twentyeleven_posted_on(); ?>
42
-			<?php if ( comments_open() ) : ?>
42
+			<?php if (comments_open()) : ?>
43 43
 			<span class="sep"> | </span>
44
-			<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
44
+			<span class="comments-link"><?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentyeleven').'</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven')); ?></span>
45 45
 			<?php endif; ?>
46
-			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
46
+			<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
47 47
 		</footer><!-- .entry-meta -->
48 48
 	</article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,12 @@
 block discarded – undo
30 30
 		<div class="entry-summary">
31 31
 			<?php the_excerpt(); ?>
32 32
 		</div><!-- .entry-summary -->
33
-		<?php else : ?>
33
+		<?php else {
34
+	: ?>
34 35
 		<div class="entry-content">
35
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
36
+			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) );
37
+}
38
+?>
36 39
 			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
37 40
 		</div><!-- .entry-content -->
38 41
 		<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/category.php 3 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
- * Template for displaying Category Archive pages
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Eleven
7
- * @since Twenty Eleven 1.0
8
- */
3
+	 * Template for displaying Category Archive pages
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Eleven
7
+	 * @since Twenty Eleven 1.0
8
+	 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@  discard block
 block discarded – undo
12 12
 		<section id="primary">
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 18
 					<h1 class="page-title"><?php
19
-						printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
19
+						printf(__('Category Archives: %s', 'twentyeleven'), '<span>'.single_cat_title('', false).'</span>');
20 20
 					?></h1>
21 21
 
22 22
 					<?php
23 23
 						$category_description = category_description();
24
-						if ( ! empty( $category_description ) ) {
24
+						if ( ! empty($category_description)) {
25 25
 							/**
26 26
 							 * Filter the default Twenty Eleven category description.
27 27
 							 *
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 							 *
30 30
 							 * @param string The default category description HTML.
31 31
 							 */
32
-							echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
32
+							echo apply_filters('category_archive_meta', '<div class="category-archive-meta">'.$category_description.'</div>');
33 33
 						}
34 34
 					?>
35 35
 				</header>
36 36
 
37
-				<?php twentyeleven_content_nav( 'nav-above' ); ?>
37
+				<?php twentyeleven_content_nav('nav-above'); ?>
38 38
 
39 39
 				<?php /* Start the Loop */ ?>
40
-				<?php while ( have_posts() ) : the_post(); ?>
40
+				<?php while (have_posts()) : the_post(); ?>
41 41
 
42 42
 					<?php
43 43
 						/*
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
 						 * If you want to overload this in a child theme then include a file
46 46
 						 * called content-___.php (where ___ is the Post Format name) 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
 
51 51
 				<?php endwhile; ?>
52 52
 
53
-				<?php twentyeleven_content_nav( 'nav-below' ); ?>
53
+				<?php twentyeleven_content_nav('nav-below'); ?>
54 54
 
55 55
 			<?php else : ?>
56 56
 
57 57
 				<article id="post-0" class="post no-results not-found">
58 58
 					<header class="entry-header">
59
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
59
+						<h1 class="entry-title"><?php _e('Nothing Found', 'twentyeleven'); ?></h1>
60 60
 					</header><!-- .entry-header -->
61 61
 
62 62
 					<div class="entry-content">
63
-						<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
63
+						<p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven'); ?></p>
64 64
 						<?php get_search_form(); ?>
65 65
 					</div><!-- .entry-content -->
66 66
 				</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,11 +52,14 @@
 block discarded – undo
52 52
 
53 53
 				<?php twentyeleven_content_nav( 'nav-below' ); ?>
54 54
 
55
-			<?php else : ?>
55
+			<?php else {
56
+	: ?>
56 57
 
57 58
 				<article id="post-0" class="post no-results not-found">
58 59
 					<header class="entry-header">
59
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
60
+						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' );
61
+}
62
+?></h1>
60 63
 					</header><!-- .entry-header -->
61 64
 
62 65
 					<div class="entry-content">
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-link.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
- * Template for displaying posts in the Link Post Format
4
- *
5
- * Used on index and archive pages
6
- *
7
- * @link https://codex.wordpress.org/Post_Formats
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Eleven
11
- * @since Twenty Eleven 1.0
12
- */
3
+					 * Template for displaying posts in the Link Post Format
4
+					 *
5
+					 * Used on index and archive pages
6
+					 *
7
+					 * @link https://codex.wordpress.org/Post_Formats
8
+					 *
9
+					 * @package WordPress
10
+					 * @subpackage Twenty_Eleven
11
+					 * @since Twenty Eleven 1.0
12
+					 */
13 13
 ?>
14 14
 
15 15
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,33 +16,33 @@
 block discarded – undo
16 16
 		<header class="entry-header">
17 17
 			<hgroup>
18 18
 				<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
19
-				<h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3>
19
+				<h3 class="entry-format"><?php _e('Link', 'twentyeleven'); ?></h3>
20 20
 			</hgroup>
21 21
 
22
-			<?php if ( comments_open() && ! post_password_required() ) : ?>
22
+			<?php if (comments_open() && ! post_password_required()) : ?>
23 23
 			<div class="comments-link">
24
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
24
+				<?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?>
25 25
 			</div>
26 26
 			<?php endif; ?>
27 27
 		</header><!-- .entry-header -->
28 28
 
29
-		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
29
+		<?php if (is_search()) : // Only display Excerpts for Search ?>
30 30
 		<div class="entry-summary">
31 31
 			<?php the_excerpt(); ?>
32 32
 		</div><!-- .entry-summary -->
33 33
 		<?php else : ?>
34 34
 		<div class="entry-content">
35
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
36
-			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
35
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?>
36
+			<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
37 37
 		</div><!-- .entry-content -->
38 38
 		<?php endif; ?>
39 39
 
40 40
 		<footer class="entry-meta">
41 41
 			<?php twentyeleven_posted_on(); ?>
42
-			<?php if ( comments_open() ) : ?>
42
+			<?php if (comments_open()) : ?>
43 43
 			<span class="sep"> | </span>
44
-			<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
44
+			<span class="comments-link"><?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentyeleven').'</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven')); ?></span>
45 45
 			<?php endif; ?>
46
-			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
46
+			<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
47 47
 		</footer><!-- .entry-meta -->
48 48
 	</article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,12 @@
 block discarded – undo
30 30
 		<div class="entry-summary">
31 31
 			<?php the_excerpt(); ?>
32 32
 		</div><!-- .entry-summary -->
33
-		<?php else : ?>
33
+		<?php else {
34
+	: ?>
34 35
 		<div class="entry-content">
35
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
36
+			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) );
37
+}
38
+?>
36 39
 			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
37 40
 		</div><!-- .entry-content -->
38 41
 		<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/page.php 2 patches
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
- * Template for displaying all pages
4
- *
5
- * This is the template that displays all pages by default.
6
- * Please note that this is the WordPress construct of pages
7
- * and that other 'pages' on your WordPress site will use a
8
- * different template.
9
- *
10
- * @package WordPress
11
- * @subpackage Twenty_Eleven
12
- * @since Twenty Eleven 1.0
13
- */
3
+					 * Template for displaying all pages
4
+					 *
5
+					 * This is the template that displays all pages by default.
6
+					 * Please note that this is the WordPress construct of pages
7
+					 * and that other 'pages' on your WordPress site will use a
8
+					 * different template.
9
+					 *
10
+					 * @package WordPress
11
+					 * @subpackage Twenty_Eleven
12
+					 * @since Twenty Eleven 1.0
13
+					 */
14 14
 
15 15
 get_header(); ?>
16 16
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
 		<div id="primary">
18 18
 			<div id="content" role="main">
19 19
 
20
-				<?php while ( have_posts() ) : the_post(); ?>
20
+				<?php while (have_posts()) : the_post(); ?>
21 21
 
22
-					<?php get_template_part( 'content', 'page' ); ?>
22
+					<?php get_template_part('content', 'page'); ?>
23 23
 
24
-					<?php comments_template( '', true ); ?>
24
+					<?php comments_template('', true); ?>
25 25
 
26 26
 				<?php endwhile; // end of the loop. ?>
27 27
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-image.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -11,34 +11,34 @@  discard block
 block discarded – undo
11 11
  * @since Twenty Eleven 1.0
12 12
  */
13 13
 ?>
14
-	<article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>>
14
+	<article id="post-<?php the_ID(); ?>" <?php post_class('indexed'); ?>>
15 15
 		<header class="entry-header">
16 16
 			<hgroup>
17 17
 				<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
18
-				<h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3>
18
+				<h3 class="entry-format"><?php _e('Image', 'twentyeleven'); ?></h3>
19 19
 			</hgroup>
20 20
 
21
-			<?php if ( comments_open() && ! post_password_required() ) : ?>
21
+			<?php if (comments_open() && ! post_password_required()) : ?>
22 22
 			<div class="comments-link">
23
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
23
+				<?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?>
24 24
 			</div>
25 25
 			<?php endif; ?>
26 26
 		</header><!-- .entry-header -->
27 27
 
28 28
 		<div class="entry-content">
29
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
30
-			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
29
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?>
30
+			<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
31 31
 		</div><!-- .entry-content -->
32 32
 
33 33
 		<footer class="entry-meta">
34 34
 			<div class="entry-meta">
35 35
 				<?php
36
-					printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
37
-						esc_url( get_permalink() ),
38
-						get_the_date( 'c' ),
36
+					printf(__('<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven'),
37
+						esc_url(get_permalink()),
38
+						get_the_date('c'),
39 39
 						get_the_date(),
40
-						esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
41
-						esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
40
+						esc_url(get_author_posts_url(get_the_author_meta('ID'))),
41
+						esc_attr(sprintf(__('View all posts by %s', 'twentyeleven'), get_the_author())),
42 42
 						get_the_author()
43 43
 					);
44 44
 				?>
@@ -46,27 +46,27 @@  discard block
 block discarded – undo
46 46
 			<div class="entry-meta">
47 47
 				<?php
48 48
 					/* translators: used between list items, there is a space after the comma */
49
-					$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
50
-					if ( $categories_list ):
49
+					$categories_list = get_the_category_list(__(', ', 'twentyeleven'));
50
+					if ($categories_list):
51 51
 				?>
52 52
 				<span class="cat-links">
53
-					<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?>
53
+					<?php printf(__('<span class="%1$s">Posted in</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list); ?>
54 54
 				</span>
55 55
 				<?php endif; // End if categories ?>
56 56
 				<?php
57 57
 					/* translators: used between list items, there is a space after the comma */
58
-					$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
59
-					if ( $tags_list ): ?>
58
+					$tags_list = get_the_tag_list('', __(', ', 'twentyeleven'));
59
+					if ($tags_list): ?>
60 60
 				<span class="tag-links">
61
-					<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
61
+					<?php printf(__('<span class="%1$s">Tagged</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list); ?>
62 62
 				</span>
63 63
 				<?php endif; // End if $tags_list ?>
64 64
 
65
-				<?php if ( comments_open() ) : ?>
66
-				<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
65
+				<?php if (comments_open()) : ?>
66
+				<span class="comments-link"><?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentyeleven').'</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven')); ?></span>
67 67
 				<?php endif; // End if comments_open() ?>
68 68
 			</div><!-- .entry-meta -->
69 69
 
70
-			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
70
+			<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
71 71
 		</footer><!-- .entry-meta -->
72 72
 	</article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.