Completed
Push — master ( 8ff7a8...c0c536 )
by Stephen
77:04 queued 40:03
created
src/wp-content/themes/twentyfourteen/index.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main template file
4
- *
5
- * This is the most generic template file in a WordPress theme and one
6
- * of the two required files for a theme (the other being style.css).
7
- * It is used to display a page when nothing more specific matches a query,
8
- * e.g., it puts together the home page when no home.php file exists.
9
- *
10
- * @link https://codex.wordpress.org/Template_Hierarchy
11
- *
12
- * @package WordPress
13
- * @subpackage Twenty_Fourteen
14
- * @since Twenty Fourteen 1.0
15
- */
3
+	 * The main template file
4
+	 *
5
+	 * This is the most generic template file in a WordPress theme and one
6
+	 * of the two required files for a theme (the other being style.css).
7
+	 * It is used to display a page when nothing more specific matches a query,
8
+	 * e.g., it puts together the home page when no home.php file exists.
9
+	 *
10
+	 * @link https://codex.wordpress.org/Template_Hierarchy
11
+	 *
12
+	 * @package WordPress
13
+	 * @subpackage Twenty_Fourteen
14
+	 * @since Twenty Fourteen 1.0
15
+	 */
16 16
 
17 17
 get_header(); ?>
18 18
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 <div id="main-content" class="main-content">
20 20
 
21 21
 <?php
22
-	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
22
+	if (is_front_page() && twentyfourteen_has_featured_posts()) {
23 23
 		// Include the featured content template.
24
-		get_template_part( 'featured-content' );
24
+		get_template_part('featured-content');
25 25
 	}
26 26
 ?>
27 27
 
@@ -29,16 +29,16 @@  discard block
 block discarded – undo
29 29
 		<div id="content" class="site-content" role="main">
30 30
 
31 31
 		<?php
32
-			if ( have_posts() ) :
32
+			if (have_posts()) :
33 33
 				// Start the Loop.
34
-				while ( have_posts() ) : the_post();
34
+				while (have_posts()) : the_post();
35 35
 
36 36
 					/*
37 37
 					 * Include the post format-specific template for the content. If you want to
38 38
 					 * use this in a child theme, then include a file called called content-___.php
39 39
 					 * (where ___ is the post format) and that will be used instead.
40 40
 					 */
41
-					get_template_part( 'content', get_post_format() );
41
+					get_template_part('content', get_post_format());
42 42
 
43 43
 				endwhile;
44 44
 				// Previous/next post navigation.
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
 			else :
48 48
 				// If no content, include the "No posts found" template.
49
-				get_template_part( 'content', 'none' );
49
+				get_template_part('content', 'none');
50 50
 
51 51
 			endif;
52 52
 		?>
53 53
 
54 54
 		</div><!-- #content -->
55 55
 	</div><!-- #primary -->
56
-	<?php get_sidebar( 'content' ); ?>
56
+	<?php get_sidebar('content'); ?>
57 57
 </div><!-- #main-content -->
58 58
 
59 59
 <?php
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 			if ( is_single() ) :
23 23
 				the_title( '<h1 class="entry-title">', '</h1>' );
24
-			else :
24
+			else {
25
+				:
25 26
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			}
26 28
 			endif;
27 29
 		?>
28 30
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-video.php 3 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,51 +12,51 @@
 block discarded – undo
12 12
 	<?php twentyfourteen_post_thumbnail(); ?>
13 13
 
14 14
 	<header class="entry-header">
15
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
15
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
16 16
 		<div class="entry-meta">
17
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
17
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
18 18
 		</div><!-- .entry-meta -->
19 19
 		<?php
20 20
 			endif;
21 21
 
22
-			if ( is_single() ) :
23
-				the_title( '<h1 class="entry-title">', '</h1>' );
22
+			if (is_single()) :
23
+				the_title('<h1 class="entry-title">', '</h1>');
24 24
 			else :
25
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
25
+				the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>');
26 26
 			endif;
27 27
 		?>
28 28
 
29 29
 		<div class="entry-meta">
30 30
 			<span class="post-format">
31
-				<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>"><?php echo get_post_format_string( 'video' ); ?></a>
31
+				<a class="entry-format" href="<?php echo esc_url(get_post_format_link('video')); ?>"><?php echo get_post_format_string('video'); ?></a>
32 32
 			</span>
33 33
 
34 34
 			<?php twentyfourteen_posted_on(); ?>
35 35
 
36
-			<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
37
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
36
+			<?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?>
37
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span>
38 38
 			<?php endif; ?>
39 39
 
40
-			<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
40
+			<?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?>
41 41
 		</div><!-- .entry-meta -->
42 42
 	</header><!-- .entry-header -->
43 43
 
44 44
 	<div class="entry-content">
45 45
 		<?php
46 46
 			/* translators: %s: Name of current post */
47
-			the_content( sprintf(
48
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
49
-				the_title( '<span class="screen-reader-text">', '</span>', false )
50
-			) );
47
+			the_content(sprintf(
48
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen'),
49
+				the_title('<span class="screen-reader-text">', '</span>', false)
50
+			));
51 51
 
52
-			wp_link_pages( array(
53
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
52
+			wp_link_pages(array(
53
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
54 54
 				'after'       => '</div>',
55 55
 				'link_before' => '<span>',
56 56
 				'link_after'  => '</span>',
57
-			) );
57
+			));
58 58
 		?>
59 59
 	</div><!-- .entry-content -->
60 60
 
61
-	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
61
+	<?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?>
62 62
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 			if ( is_single() ) :
23 23
 				the_title( '<h1 class="entry-title">', '</h1>' );
24
-			else :
24
+			else {
25
+				:
25 26
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			}
26 28
 			endif;
27 29
 		?>
28 30
 
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 posts in the Video post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
3
+			 * The template for displaying posts in the Video post format
4
+			 *
5
+			 * @package WordPress
6
+			 * @subpackage Twenty_Fourteen
7
+			 * @since Twenty Fourteen 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.
src/wp-content/themes/twentyfourteen/functions.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Twenty Fourteen functions and definitions
4
- *
5
- * Set up the theme and provides some helper functions, which are used in the
6
- * theme as custom template tags. Others are attached to action and filter
7
- * hooks in WordPress to change core functionality.
8
- *
9
- * When using a child theme you can override certain functions (those wrapped
10
- * in a function_exists() call) by defining them first in your child theme's
11
- * functions.php file. The child theme's functions.php file is included before
12
- * the parent theme's file, so the child theme functions would be used.
13
- *
14
- * @link https://codex.wordpress.org/Theme_Development
15
- * @link https://codex.wordpress.org/Child_Themes
16
- *
17
- * Functions that are not pluggable (not wrapped in function_exists()) are
18
- * instead attached to a filter or action hook.
19
- *
20
- * For more information on hooks, actions, and filters,
21
- * @link https://codex.wordpress.org/Plugin_API
22
- *
23
- * @package WordPress
24
- * @subpackage Twenty_Fourteen
25
- * @since Twenty Fourteen 1.0
26
- */
3
+		 * Twenty Fourteen functions and definitions
4
+		 *
5
+		 * Set up the theme and provides some helper functions, which are used in the
6
+		 * theme as custom template tags. Others are attached to action and filter
7
+		 * hooks in WordPress to change core functionality.
8
+		 *
9
+		 * When using a child theme you can override certain functions (those wrapped
10
+		 * in a function_exists() call) by defining them first in your child theme's
11
+		 * functions.php file. The child theme's functions.php file is included before
12
+		 * the parent theme's file, so the child theme functions would be used.
13
+		 *
14
+		 * @link https://codex.wordpress.org/Theme_Development
15
+		 * @link https://codex.wordpress.org/Child_Themes
16
+		 *
17
+		 * Functions that are not pluggable (not wrapped in function_exists()) are
18
+		 * instead attached to a filter or action hook.
19
+		 *
20
+		 * For more information on hooks, actions, and filters,
21
+		 * @link https://codex.wordpress.org/Plugin_API
22
+		 *
23
+		 * @package WordPress
24
+		 * @subpackage Twenty_Fourteen
25
+		 * @since Twenty Fourteen 1.0
26
+		 */
27 27
 
28 28
 /**
29 29
  * Set up the content width value based on the theme's design.
Please login to merge, or discard this patch.
Spacing   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -32,18 +32,18 @@  discard block
 block discarded – undo
32 32
  *
33 33
  * @since Twenty Fourteen 1.0
34 34
  */
35
-if ( ! isset( $content_width ) ) {
35
+if ( ! isset($content_width)) {
36 36
 	$content_width = 474;
37 37
 }
38 38
 
39 39
 /**
40 40
  * Twenty Fourteen only works in WordPress 3.6 or later.
41 41
  */
42
-if ( version_compare( $GLOBALS['wp_version'], '3.6', '<' ) ) {
43
-	require get_template_directory() . '/inc/back-compat.php';
42
+if (version_compare($GLOBALS['wp_version'], '3.6', '<')) {
43
+	require get_template_directory().'/inc/back-compat.php';
44 44
 }
45 45
 
46
-if ( ! function_exists( 'twentyfourteen_setup' ) ) :
46
+if ( ! function_exists('twentyfourteen_setup')) :
47 47
 /**
48 48
  * Twenty Fourteen setup.
49 49
  *
@@ -65,60 +65,60 @@  discard block
 block discarded – undo
65 65
 	 * replace to change 'twentyfourteen' to the name of your theme in all
66 66
 	 * template files.
67 67
 	 */
68
-	load_theme_textdomain( 'twentyfourteen', get_template_directory() . '/languages' );
68
+	load_theme_textdomain('twentyfourteen', get_template_directory().'/languages');
69 69
 
70 70
 	// This theme styles the visual editor to resemble the theme style.
71
-	add_editor_style( array( 'css/editor-style.css', twentyfourteen_font_url(), 'genericons/genericons.css' ) );
71
+	add_editor_style(array('css/editor-style.css', twentyfourteen_font_url(), 'genericons/genericons.css'));
72 72
 
73 73
 	// Add RSS feed links to <head> for posts and comments.
74
-	add_theme_support( 'automatic-feed-links' );
74
+	add_theme_support('automatic-feed-links');
75 75
 
76 76
 	// Enable support for Post Thumbnails, and declare two sizes.
77
-	add_theme_support( 'post-thumbnails' );
78
-	set_post_thumbnail_size( 672, 372, true );
79
-	add_image_size( 'twentyfourteen-full-width', 1038, 576, true );
77
+	add_theme_support('post-thumbnails');
78
+	set_post_thumbnail_size(672, 372, true);
79
+	add_image_size('twentyfourteen-full-width', 1038, 576, true);
80 80
 
81 81
 	// This theme uses wp_nav_menu() in two locations.
82
-	register_nav_menus( array(
83
-		'primary'   => __( 'Top primary menu', 'twentyfourteen' ),
84
-		'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ),
85
-	) );
82
+	register_nav_menus(array(
83
+		'primary'   => __('Top primary menu', 'twentyfourteen'),
84
+		'secondary' => __('Secondary menu in left sidebar', 'twentyfourteen'),
85
+	));
86 86
 
87 87
 	/*
88 88
 	 * Switch default core markup for search form, comment form, and comments
89 89
 	 * to output valid HTML5.
90 90
 	 */
91
-	add_theme_support( 'html5', array(
91
+	add_theme_support('html5', array(
92 92
 		'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
93
-	) );
93
+	));
94 94
 
95 95
 	/*
96 96
 	 * Enable support for Post Formats.
97 97
 	 * See https://codex.wordpress.org/Post_Formats
98 98
 	 */
99
-	add_theme_support( 'post-formats', array(
99
+	add_theme_support('post-formats', array(
100 100
 		'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',
101
-	) );
101
+	));
102 102
 
103 103
 	// This theme allows users to set a custom background.
104
-	add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(
104
+	add_theme_support('custom-background', apply_filters('twentyfourteen_custom_background_args', array(
105 105
 		'default-color' => 'f5f5f5',
106
-	) ) );
106
+	)));
107 107
 
108 108
 	// Add support for featured content.
109
-	add_theme_support( 'featured-content', array(
109
+	add_theme_support('featured-content', array(
110 110
 		'featured_content_filter' => 'twentyfourteen_get_featured_posts',
111 111
 		'max_posts' => 6,
112
-	) );
112
+	));
113 113
 
114 114
 	// This theme uses its own gallery styles.
115
-	add_filter( 'use_default_gallery_style', '__return_false' );
115
+	add_filter('use_default_gallery_style', '__return_false');
116 116
 
117 117
 	// Indicate widget sidebars can use selective refresh in the Customizer.
118
-	add_theme_support( 'customize-selective-refresh-widgets' );
118
+	add_theme_support('customize-selective-refresh-widgets');
119 119
 }
120 120
 endif; // twentyfourteen_setup
121
-add_action( 'after_setup_theme', 'twentyfourteen_setup' );
121
+add_action('after_setup_theme', 'twentyfourteen_setup');
122 122
 
123 123
 /**
124 124
  * Adjust content_width value for image attachment template.
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
  * @since Twenty Fourteen 1.0
127 127
  */
128 128
 function twentyfourteen_content_width() {
129
-	if ( is_attachment() && wp_attachment_is_image() ) {
129
+	if (is_attachment() && wp_attachment_is_image()) {
130 130
 		$GLOBALS['content_width'] = 810;
131 131
 	}
132 132
 }
133
-add_action( 'template_redirect', 'twentyfourteen_content_width' );
133
+add_action('template_redirect', 'twentyfourteen_content_width');
134 134
 
135 135
 /**
136 136
  * Getter function for Featured Content Plugin.
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 *
148 148
 	 * @param array|bool $posts Array of featured posts, otherwise false.
149 149
 	 */
150
-	return apply_filters( 'twentyfourteen_get_featured_posts', array() );
150
+	return apply_filters('twentyfourteen_get_featured_posts', array());
151 151
 }
152 152
 
153 153
 /**
@@ -167,38 +167,38 @@  discard block
 block discarded – undo
167 167
  * @since Twenty Fourteen 1.0
168 168
  */
169 169
 function twentyfourteen_widgets_init() {
170
-	require get_template_directory() . '/inc/widgets.php';
171
-	register_widget( 'Twenty_Fourteen_Ephemera_Widget' );
170
+	require get_template_directory().'/inc/widgets.php';
171
+	register_widget('Twenty_Fourteen_Ephemera_Widget');
172 172
 
173
-	register_sidebar( array(
174
-		'name'          => __( 'Primary Sidebar', 'twentyfourteen' ),
173
+	register_sidebar(array(
174
+		'name'          => __('Primary Sidebar', 'twentyfourteen'),
175 175
 		'id'            => 'sidebar-1',
176
-		'description'   => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ),
176
+		'description'   => __('Main sidebar that appears on the left.', 'twentyfourteen'),
177 177
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
178 178
 		'after_widget'  => '</aside>',
179 179
 		'before_title'  => '<h1 class="widget-title">',
180 180
 		'after_title'   => '</h1>',
181
-	) );
182
-	register_sidebar( array(
183
-		'name'          => __( 'Content Sidebar', 'twentyfourteen' ),
181
+	));
182
+	register_sidebar(array(
183
+		'name'          => __('Content Sidebar', 'twentyfourteen'),
184 184
 		'id'            => 'sidebar-2',
185
-		'description'   => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ),
185
+		'description'   => __('Additional sidebar that appears on the right.', 'twentyfourteen'),
186 186
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
187 187
 		'after_widget'  => '</aside>',
188 188
 		'before_title'  => '<h1 class="widget-title">',
189 189
 		'after_title'   => '</h1>',
190
-	) );
191
-	register_sidebar( array(
192
-		'name'          => __( 'Footer Widget Area', 'twentyfourteen' ),
190
+	));
191
+	register_sidebar(array(
192
+		'name'          => __('Footer Widget Area', 'twentyfourteen'),
193 193
 		'id'            => 'sidebar-3',
194
-		'description'   => __( 'Appears in the footer section of the site.', 'twentyfourteen' ),
194
+		'description'   => __('Appears in the footer section of the site.', 'twentyfourteen'),
195 195
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
196 196
 		'after_widget'  => '</aside>',
197 197
 		'before_title'  => '<h1 class="widget-title">',
198 198
 		'after_title'   => '</h1>',
199
-	) );
199
+	));
200 200
 }
201
-add_action( 'widgets_init', 'twentyfourteen_widgets_init' );
201
+add_action('widgets_init', 'twentyfourteen_widgets_init');
202 202
 
203 203
 /**
204 204
  * Register Lato Google font for Twenty Fourteen.
@@ -213,12 +213,12 @@  discard block
 block discarded – undo
213 213
 	 * Translators: If there are characters in your language that are not supported
214 214
 	 * by Lato, translate this to 'off'. Do not translate into your own language.
215 215
 	 */
216
-	if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {
216
+	if ('off' !== _x('on', 'Lato font: on or off', 'twentyfourteen')) {
217 217
 		$query_args = array(
218
-			'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
219
-			'subset' => urlencode( 'latin,latin-ext' ),
218
+			'family' => urlencode('Lato:300,400,700,900,300italic,400italic,700italic'),
219
+			'subset' => urlencode('latin,latin-ext'),
220 220
 		);
221
-		$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
221
+		$font_url = add_query_arg($query_args, 'https://fonts.googleapis.com/css');
222 222
 	}
223 223
 
224 224
 	return $font_url;
@@ -231,41 +231,41 @@  discard block
 block discarded – undo
231 231
  */
232 232
 function twentyfourteen_scripts() {
233 233
 	// Add Lato font, used in the main stylesheet.
234
-	wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
234
+	wp_enqueue_style('twentyfourteen-lato', twentyfourteen_font_url(), array(), null);
235 235
 
236 236
 	// Add Genericons font, used in the main stylesheet.
237
-	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
237
+	wp_enqueue_style('genericons', get_template_directory_uri().'/genericons/genericons.css', array(), '3.0.3');
238 238
 
239 239
 	// Load our main stylesheet.
240
-	wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
240
+	wp_enqueue_style('twentyfourteen-style', get_stylesheet_uri());
241 241
 
242 242
 	// Load the Internet Explorer specific stylesheet.
243
-	wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
244
-	wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
243
+	wp_enqueue_style('twentyfourteen-ie', get_template_directory_uri().'/css/ie.css', array('twentyfourteen-style'), '20131205');
244
+	wp_style_add_data('twentyfourteen-ie', 'conditional', 'lt IE 9');
245 245
 
246
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
247
-		wp_enqueue_script( 'comment-reply' );
246
+	if (is_singular() && comments_open() && get_option('thread_comments')) {
247
+		wp_enqueue_script('comment-reply');
248 248
 	}
249 249
 
250
-	if ( is_singular() && wp_attachment_is_image() ) {
251
-		wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
250
+	if (is_singular() && wp_attachment_is_image()) {
251
+		wp_enqueue_script('twentyfourteen-keyboard-image-navigation', get_template_directory_uri().'/js/keyboard-image-navigation.js', array('jquery'), '20130402');
252 252
 	}
253 253
 
254
-	if ( is_active_sidebar( 'sidebar-3' ) ) {
255
-		wp_enqueue_script( 'jquery-masonry' );
254
+	if (is_active_sidebar('sidebar-3')) {
255
+		wp_enqueue_script('jquery-masonry');
256 256
 	}
257 257
 
258
-	if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
259
-		wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );
260
-		wp_localize_script( 'twentyfourteen-slider', 'featuredSliderDefaults', array(
261
-			'prevText' => __( 'Previous', 'twentyfourteen' ),
262
-			'nextText' => __( 'Next', 'twentyfourteen' )
263
-		) );
258
+	if (is_front_page() && 'slider' == get_theme_mod('featured_content_layout')) {
259
+		wp_enqueue_script('twentyfourteen-slider', get_template_directory_uri().'/js/slider.js', array('jquery'), '20131205', true);
260
+		wp_localize_script('twentyfourteen-slider', 'featuredSliderDefaults', array(
261
+			'prevText' => __('Previous', 'twentyfourteen'),
262
+			'nextText' => __('Next', 'twentyfourteen')
263
+		));
264 264
 	}
265 265
 
266
-	wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true );
266
+	wp_enqueue_script('twentyfourteen-script', get_template_directory_uri().'/js/functions.js', array('jquery'), '20150315', true);
267 267
 }
268
-add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
268
+add_action('wp_enqueue_scripts', 'twentyfourteen_scripts');
269 269
 
270 270
 /**
271 271
  * Enqueue Google fonts style to admin screen for custom header display.
@@ -273,18 +273,18 @@  discard block
 block discarded – undo
273 273
  * @since Twenty Fourteen 1.0
274 274
  */
275 275
 function twentyfourteen_admin_fonts() {
276
-	wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
276
+	wp_enqueue_style('twentyfourteen-lato', twentyfourteen_font_url(), array(), null);
277 277
 }
278
-add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' );
278
+add_action('admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts');
279 279
 
280
-if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
280
+if ( ! function_exists('twentyfourteen_the_attached_image')) :
281 281
 /**
282 282
  * Print the attached image with a link to the next attached image.
283 283
  *
284 284
  * @since Twenty Fourteen 1.0
285 285
  */
286 286
 function twentyfourteen_the_attached_image() {
287
-	$post                = get_post();
287
+	$post = get_post();
288 288
 	/**
289 289
 	 * Filter the default Twenty Fourteen attachment size.
290 290
 	 *
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 	 *     @type int $width  Width of the image in pixels. Default 810.
298 298
 	 * }
299 299
 	 */
300
-	$attachment_size     = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );
300
+	$attachment_size     = apply_filters('twentyfourteen_attachment_size', array(810, 810));
301 301
 	$next_attachment_url = wp_get_attachment_url();
302 302
 
303 303
 	/*
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	 * looking at the last image in a gallery), or, in a gallery of one, just the
307 307
 	 * link to that image file.
308 308
 	 */
309
-	$attachment_ids = get_posts( array(
309
+	$attachment_ids = get_posts(array(
310 310
 		'post_parent'    => $post->post_parent,
311 311
 		'fields'         => 'ids',
312 312
 		'numberposts'    => -1,
@@ -315,68 +315,68 @@  discard block
 block discarded – undo
315 315
 		'post_mime_type' => 'image',
316 316
 		'order'          => 'ASC',
317 317
 		'orderby'        => 'menu_order ID',
318
-	) );
318
+	));
319 319
 
320 320
 	// If there is more than 1 attachment in a gallery...
321
-	if ( count( $attachment_ids ) > 1 ) {
322
-		foreach ( $attachment_ids as $attachment_id ) {
323
-			if ( $attachment_id == $post->ID ) {
324
-				$next_id = current( $attachment_ids );
321
+	if (count($attachment_ids) > 1) {
322
+		foreach ($attachment_ids as $attachment_id) {
323
+			if ($attachment_id == $post->ID) {
324
+				$next_id = current($attachment_ids);
325 325
 				break;
326 326
 			}
327 327
 		}
328 328
 
329 329
 		// get the URL of the next image attachment...
330
-		if ( $next_id ) {
331
-			$next_attachment_url = get_attachment_link( $next_id );
330
+		if ($next_id) {
331
+			$next_attachment_url = get_attachment_link($next_id);
332 332
 		}
333 333
 
334 334
 		// or get the URL of the first image attachment.
335 335
 		else {
336
-			$next_attachment_url = get_attachment_link( reset( $attachment_ids ) );
336
+			$next_attachment_url = get_attachment_link(reset($attachment_ids));
337 337
 		}
338 338
 	}
339 339
 
340
-	printf( '<a href="%1$s" rel="attachment">%2$s</a>',
341
-		esc_url( $next_attachment_url ),
342
-		wp_get_attachment_image( $post->ID, $attachment_size )
340
+	printf('<a href="%1$s" rel="attachment">%2$s</a>',
341
+		esc_url($next_attachment_url),
342
+		wp_get_attachment_image($post->ID, $attachment_size)
343 343
 	);
344 344
 }
345 345
 endif;
346 346
 
347
-if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
347
+if ( ! function_exists('twentyfourteen_list_authors')) :
348 348
 /**
349 349
  * Print a list of all site contributors who published at least one post.
350 350
  *
351 351
  * @since Twenty Fourteen 1.0
352 352
  */
353 353
 function twentyfourteen_list_authors() {
354
-	$contributor_ids = get_users( array(
354
+	$contributor_ids = get_users(array(
355 355
 		'fields'  => 'ID',
356 356
 		'orderby' => 'post_count',
357 357
 		'order'   => 'DESC',
358 358
 		'who'     => 'authors',
359
-	) );
359
+	));
360 360
 
361
-	foreach ( $contributor_ids as $contributor_id ) :
362
-		$post_count = count_user_posts( $contributor_id );
361
+	foreach ($contributor_ids as $contributor_id) :
362
+		$post_count = count_user_posts($contributor_id);
363 363
 
364 364
 		// Move on if user has not published a post (yet).
365
-		if ( ! $post_count ) {
365
+		if ( ! $post_count) {
366 366
 			continue;
367 367
 		}
368 368
 	?>
369 369
 
370 370
 	<div class="contributor">
371 371
 		<div class="contributor-info">
372
-			<div class="contributor-avatar"><?php echo get_avatar( $contributor_id, 132 ); ?></div>
372
+			<div class="contributor-avatar"><?php echo get_avatar($contributor_id, 132); ?></div>
373 373
 			<div class="contributor-summary">
374
-				<h2 class="contributor-name"><?php echo get_the_author_meta( 'display_name', $contributor_id ); ?></h2>
374
+				<h2 class="contributor-name"><?php echo get_the_author_meta('display_name', $contributor_id); ?></h2>
375 375
 				<p class="contributor-bio">
376
-					<?php echo get_the_author_meta( 'description', $contributor_id ); ?>
376
+					<?php echo get_the_author_meta('description', $contributor_id); ?>
377 377
 				</p>
378
-				<a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">
379
-					<?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?>
378
+				<a class="button contributor-posts-link" href="<?php echo esc_url(get_author_posts_url($contributor_id)); ?>">
379
+					<?php printf(_n('%d Article', '%d Articles', $post_count, 'twentyfourteen'), $post_count); ?>
380 380
 				</a>
381 381
 			</div><!-- .contributor-summary -->
382 382
 		</div><!-- .contributor-info -->
@@ -404,45 +404,45 @@  discard block
 block discarded – undo
404 404
  * @param array $classes A list of existing body class values.
405 405
  * @return array The filtered body class list.
406 406
  */
407
-function twentyfourteen_body_classes( $classes ) {
408
-	if ( is_multi_author() ) {
407
+function twentyfourteen_body_classes($classes) {
408
+	if (is_multi_author()) {
409 409
 		$classes[] = 'group-blog';
410 410
 	}
411 411
 
412
-	if ( get_header_image() ) {
412
+	if (get_header_image()) {
413 413
 		$classes[] = 'header-image';
414
-	} elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) ) {
414
+	} elseif ( ! in_array($GLOBALS['pagenow'], array('wp-activate.php', 'wp-signup.php'))) {
415 415
 		$classes[] = 'masthead-fixed';
416 416
 	}
417 417
 
418
-	if ( is_archive() || is_search() || is_home() ) {
418
+	if (is_archive() || is_search() || is_home()) {
419 419
 		$classes[] = 'list-view';
420 420
 	}
421 421
 
422
-	if ( ( ! is_active_sidebar( 'sidebar-2' ) )
423
-		|| is_page_template( 'page-templates/full-width.php' )
424
-		|| is_page_template( 'page-templates/contributors.php' )
425
-		|| is_attachment() ) {
422
+	if (( ! is_active_sidebar('sidebar-2'))
423
+		|| is_page_template('page-templates/full-width.php')
424
+		|| is_page_template('page-templates/contributors.php')
425
+		|| is_attachment()) {
426 426
 		$classes[] = 'full-width';
427 427
 	}
428 428
 
429
-	if ( is_active_sidebar( 'sidebar-3' ) ) {
429
+	if (is_active_sidebar('sidebar-3')) {
430 430
 		$classes[] = 'footer-widgets';
431 431
 	}
432 432
 
433
-	if ( is_singular() && ! is_front_page() ) {
433
+	if (is_singular() && ! is_front_page()) {
434 434
 		$classes[] = 'singular';
435 435
 	}
436 436
 
437
-	if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
437
+	if (is_front_page() && 'slider' == get_theme_mod('featured_content_layout')) {
438 438
 		$classes[] = 'slider';
439
-	} elseif ( is_front_page() ) {
439
+	} elseif (is_front_page()) {
440 440
 		$classes[] = 'grid';
441 441
 	}
442 442
 
443 443
 	return $classes;
444 444
 }
445
-add_filter( 'body_class', 'twentyfourteen_body_classes' );
445
+add_filter('body_class', 'twentyfourteen_body_classes');
446 446
 
447 447
 /**
448 448
  * Extend the default WordPress post classes.
@@ -455,14 +455,14 @@  discard block
 block discarded – undo
455 455
  * @param array $classes A list of existing post class values.
456 456
  * @return array The filtered post class list.
457 457
  */
458
-function twentyfourteen_post_classes( $classes ) {
459
-	if ( ! post_password_required() && ! is_attachment() && has_post_thumbnail() ) {
458
+function twentyfourteen_post_classes($classes) {
459
+	if ( ! post_password_required() && ! is_attachment() && has_post_thumbnail()) {
460 460
 		$classes[] = 'has-post-thumbnail';
461 461
 	}
462 462
 
463 463
 	return $classes;
464 464
 }
465
-add_filter( 'post_class', 'twentyfourteen_post_classes' );
465
+add_filter('post_class', 'twentyfourteen_post_classes');
466 466
 
467 467
 /**
468 468
  * Create a nicely formatted and more specific title element text for output
@@ -477,39 +477,39 @@  discard block
 block discarded – undo
477 477
  * @param string $sep Optional separator.
478 478
  * @return string The filtered title.
479 479
  */
480
-function twentyfourteen_wp_title( $title, $sep ) {
480
+function twentyfourteen_wp_title($title, $sep) {
481 481
 	global $paged, $page;
482 482
 
483
-	if ( is_feed() ) {
483
+	if (is_feed()) {
484 484
 		return $title;
485 485
 	}
486 486
 
487 487
 	// Add the site name.
488
-	$title .= get_bloginfo( 'name', 'display' );
488
+	$title .= get_bloginfo('name', 'display');
489 489
 
490 490
 	// Add the site description for the home/front page.
491
-	$site_description = get_bloginfo( 'description', 'display' );
492
-	if ( $site_description && ( is_home() || is_front_page() ) ) {
491
+	$site_description = get_bloginfo('description', 'display');
492
+	if ($site_description && (is_home() || is_front_page())) {
493 493
 		$title = "$title $sep $site_description";
494 494
 	}
495 495
 
496 496
 	// Add a page number if necessary.
497
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
498
-		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
497
+	if (($paged >= 2 || $page >= 2) && ! is_404()) {
498
+		$title = "$title $sep ".sprintf(__('Page %s', 'twentyfourteen'), max($paged, $page));
499 499
 	}
500 500
 
501 501
 	return $title;
502 502
 }
503
-add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );
503
+add_filter('wp_title', 'twentyfourteen_wp_title', 10, 2);
504 504
 
505 505
 // Implement Custom Header features.
506
-require get_template_directory() . '/inc/custom-header.php';
506
+require get_template_directory().'/inc/custom-header.php';
507 507
 
508 508
 // Custom template tags for this theme.
509
-require get_template_directory() . '/inc/template-tags.php';
509
+require get_template_directory().'/inc/template-tags.php';
510 510
 
511 511
 // Add Customizer functionality.
512
-require get_template_directory() . '/inc/customizer.php';
512
+require get_template_directory().'/inc/customizer.php';
513 513
 
514 514
 /*
515 515
  * Add Featured Content functionality.
@@ -517,6 +517,6 @@  discard block
 block discarded – undo
517 517
  * To overwrite in a plugin, define your own Featured_Content class on or
518 518
  * before the 'setup_theme' hook.
519 519
  */
520
-if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] ) {
521
-	require get_template_directory() . '/inc/featured-content.php';
520
+if ( ! class_exists('Featured_Content') && 'plugins.php' !== $GLOBALS['pagenow']) {
521
+	require get_template_directory().'/inc/featured-content.php';
522 522
 }
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-featured-post.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,23 +12,23 @@
 block discarded – undo
12 12
 	<a class="post-thumbnail" href="<?php the_permalink(); ?>">
13 13
 	<?php
14 14
 		// Output the featured image.
15
-		if ( has_post_thumbnail() ) :
16
-			if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
15
+		if (has_post_thumbnail()) :
16
+			if ('grid' == get_theme_mod('featured_content_layout')) {
17 17
 				the_post_thumbnail();
18 18
 			} else {
19
-				the_post_thumbnail( 'twentyfourteen-full-width' );
19
+				the_post_thumbnail('twentyfourteen-full-width');
20 20
 			}
21 21
 		endif;
22 22
 	?>
23 23
 	</a>
24 24
 
25 25
 	<header class="entry-header">
26
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
26
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
27 27
 		<div class="entry-meta">
28
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
28
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
29 29
 		</div><!-- .entry-meta -->
30 30
 		<?php endif; ?>
31 31
 
32
-		<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' ); ?>
32
+		<?php the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>'); ?>
33 33
 	</header><!-- .entry-header -->
34 34
 </article><!-- #post-## -->
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 featured posts on the front page
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
3
+		 * The template for displaying featured posts on the front page
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Twenty_Fourteen
7
+		 * @since Twenty Fourteen 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.
src/wp-content/themes/twentyfourteen/content-aside.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,51 +12,51 @@
 block discarded – undo
12 12
 	<?php twentyfourteen_post_thumbnail(); ?>
13 13
 
14 14
 	<header class="entry-header">
15
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
15
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
16 16
 		<div class="entry-meta">
17
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
17
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
18 18
 		</div><!-- .entry-meta -->
19 19
 		<?php
20 20
 			endif;
21 21
 
22
-			if ( is_single() ) :
23
-				the_title( '<h1 class="entry-title">', '</h1>' );
22
+			if (is_single()) :
23
+				the_title('<h1 class="entry-title">', '</h1>');
24 24
 			else :
25
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
25
+				the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>');
26 26
 			endif;
27 27
 		?>
28 28
 
29 29
 		<div class="entry-meta">
30 30
 			<span class="post-format">
31
-				<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'aside' ) ); ?>"><?php echo get_post_format_string( 'aside' ); ?></a>
31
+				<a class="entry-format" href="<?php echo esc_url(get_post_format_link('aside')); ?>"><?php echo get_post_format_string('aside'); ?></a>
32 32
 			</span>
33 33
 
34 34
 			<?php twentyfourteen_posted_on(); ?>
35 35
 
36
-			<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
37
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
36
+			<?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?>
37
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span>
38 38
 			<?php endif; ?>
39 39
 
40
-			<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
40
+			<?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?>
41 41
 		</div><!-- .entry-meta -->
42 42
 	</header><!-- .entry-header -->
43 43
 
44 44
 	<div class="entry-content">
45 45
 		<?php
46 46
 			/* translators: %s: Name of current post */
47
-			the_content( sprintf(
48
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
49
-				the_title( '<span class="screen-reader-text">', '</span>', false )
50
-			) );
47
+			the_content(sprintf(
48
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen'),
49
+				the_title('<span class="screen-reader-text">', '</span>', false)
50
+			));
51 51
 
52
-			wp_link_pages( array(
53
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
52
+			wp_link_pages(array(
53
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
54 54
 				'after'       => '</div>',
55 55
 				'link_before' => '<span>',
56 56
 				'link_after'  => '</span>',
57
-			) );
57
+			));
58 58
 		?>
59 59
 	</div><!-- .entry-content -->
60 60
 
61
-	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
61
+	<?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?>
62 62
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 			if ( is_single() ) :
23 23
 				the_title( '<h1 class="entry-title">', '</h1>' );
24
-			else :
24
+			else {
25
+				:
25 26
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			}
26 28
 			endif;
27 29
 		?>
28 30
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/category.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
- * The template for displaying Category pages
4
- *
5
- * @link https://codex.wordpress.org/Template_Hierarchy
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Fourteen
9
- * @since Twenty Fourteen 1.0
10
- */
3
+		 * The template for displaying Category pages
4
+		 *
5
+		 * @link https://codex.wordpress.org/Template_Hierarchy
6
+		 *
7
+		 * @package WordPress
8
+		 * @subpackage Twenty_Fourteen
9
+		 * @since Twenty Fourteen 1.0
10
+		 */
11 11
 
12 12
 get_header(); ?>
13 13
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,30 +14,30 @@  discard block
 block discarded – undo
14 14
 	<section id="primary" class="content-area">
15 15
 		<div id="content" class="site-content" role="main">
16 16
 
17
-			<?php if ( have_posts() ) : ?>
17
+			<?php if (have_posts()) : ?>
18 18
 
19 19
 			<header class="archive-header">
20
-				<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>
20
+				<h1 class="archive-title"><?php printf(__('Category Archives: %s', 'twentyfourteen'), single_cat_title('', false)); ?></h1>
21 21
 
22 22
 				<?php
23 23
 					// Show an optional term description.
24 24
 					$term_description = term_description();
25
-					if ( ! empty( $term_description ) ) :
26
-						printf( '<div class="taxonomy-description">%s</div>', $term_description );
25
+					if ( ! empty($term_description)) :
26
+						printf('<div class="taxonomy-description">%s</div>', $term_description);
27 27
 					endif;
28 28
 				?>
29 29
 			</header><!-- .archive-header -->
30 30
 
31 31
 			<?php
32 32
 					// Start the Loop.
33
-					while ( have_posts() ) : the_post();
33
+					while (have_posts()) : the_post();
34 34
 
35 35
 					/*
36 36
 					 * Include the post format-specific template for the content. If you want to
37 37
 					 * use this in a child theme, then include a file called called content-___.php
38 38
 					 * (where ___ is the post format) and that will be used instead.
39 39
 					 */
40
-					get_template_part( 'content', get_post_format() );
40
+					get_template_part('content', get_post_format());
41 41
 
42 42
 					endwhile;
43 43
 					// Previous/next page navigation.
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 				else :
47 47
 					// If no content, include the "No posts found" template.
48
-					get_template_part( 'content', 'none' );
48
+					get_template_part('content', 'none');
49 49
 
50 50
 				endif;
51 51
 			?>
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
 	</section><!-- #primary -->
54 54
 
55 55
 <?php
56
-get_sidebar( 'content' );
56
+get_sidebar('content');
57 57
 get_sidebar();
58 58
 get_footer();
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,9 +58,11 @@
 block discarded – undo
58 58
 					// Previous/next page navigation.
59 59
 					twentyfourteen_paging_nav();
60 60
 
61
-				else :
61
+				else {
62
+					:
62 63
 					// If no content, include the "No posts found" template.
63 64
 					get_template_part( 'content', 'none' );
65
+				}
64 66
 
65 67
 				endif;
66 68
 			?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-link.php 3 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,51 +12,51 @@
 block discarded – undo
12 12
 	<?php twentyfourteen_post_thumbnail(); ?>
13 13
 
14 14
 	<header class="entry-header">
15
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
15
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
16 16
 		<div class="entry-meta">
17
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
17
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
18 18
 		</div><!-- .entry-meta -->
19 19
 		<?php
20 20
 			endif;
21 21
 
22
-			if ( is_single() ) :
23
-				the_title( '<h1 class="entry-title">', '</h1>' );
22
+			if (is_single()) :
23
+				the_title('<h1 class="entry-title">', '</h1>');
24 24
 			else :
25
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
25
+				the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>');
26 26
 			endif;
27 27
 		?>
28 28
 
29 29
 		<div class="entry-meta">
30 30
 			<span class="post-format">
31
-				<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'link' ) ); ?>"><?php echo get_post_format_string( 'link' ); ?></a>
31
+				<a class="entry-format" href="<?php echo esc_url(get_post_format_link('link')); ?>"><?php echo get_post_format_string('link'); ?></a>
32 32
 			</span>
33 33
 
34 34
 			<?php twentyfourteen_posted_on(); ?>
35 35
 
36
-			<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
37
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
36
+			<?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?>
37
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span>
38 38
 			<?php endif; ?>
39 39
 
40
-			<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
40
+			<?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?>
41 41
 		</div><!-- .entry-meta -->
42 42
 	</header><!-- .entry-header -->
43 43
 
44 44
 	<div class="entry-content">
45 45
 		<?php
46 46
 			/* translators: %s: Name of current post */
47
-			the_content( sprintf(
48
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
49
-				the_title( '<span class="screen-reader-text">', '</span>', false )
50
-			) );
47
+			the_content(sprintf(
48
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen'),
49
+				the_title('<span class="screen-reader-text">', '</span>', false)
50
+			));
51 51
 
52
-			wp_link_pages( array(
53
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
52
+			wp_link_pages(array(
53
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
54 54
 				'after'       => '</div>',
55 55
 				'link_before' => '<span>',
56 56
 				'link_after'  => '</span>',
57
-			) );
57
+			));
58 58
 		?>
59 59
 	</div><!-- .entry-content -->
60 60
 
61
-	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
61
+	<?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?>
62 62
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 			if ( is_single() ) :
23 23
 				the_title( '<h1 class="entry-title">', '</h1>' );
24
-			else :
24
+			else {
25
+				:
25 26
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			}
26 28
 			endif;
27 29
 		?>
28 30
 
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 posts in the Link post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
3
+	 * The template for displaying posts in the Link post format
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Fourteen
7
+	 * @since Twenty Fourteen 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.
src/wp-content/themes/twentyfourteen/page.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 <div id="main-content" class="main-content">
17 17
 
18 18
 <?php
19
-	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
19
+	if (is_front_page() && twentyfourteen_has_featured_posts()) {
20 20
 		// Include the featured content template.
21
-		get_template_part( 'featured-content' );
21
+		get_template_part('featured-content');
22 22
 	}
23 23
 ?>
24 24
 	<div id="primary" class="content-area">
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
 
27 27
 			<?php
28 28
 				// Start the Loop.
29
-				while ( have_posts() ) : the_post();
29
+				while (have_posts()) : the_post();
30 30
 
31 31
 					// Include the page content template.
32
-					get_template_part( 'content', 'page' );
32
+					get_template_part('content', 'page');
33 33
 
34 34
 					// If comments are open or we have at least one comment, load up the comment template.
35
-					if ( comments_open() || get_comments_number() ) {
35
+					if (comments_open() || get_comments_number()) {
36 36
 						comments_template();
37 37
 					}
38 38
 				endwhile;
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 		</div><!-- #content -->
42 42
 	</div><!-- #primary -->
43
-	<?php get_sidebar( 'content' ); ?>
43
+	<?php get_sidebar('content'); ?>
44 44
 </div><!-- #main-content -->
45 45
 
46 46
 <?php
Please login to merge, or discard this patch.
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 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 and that
7
- * other 'pages' on your WordPress site will use a different template.
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Fourteen
11
- * @since Twenty Fourteen 1.0
12
- */
3
+	 * The 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 and that
7
+	 * other 'pages' on your WordPress site will use a different template.
8
+	 *
9
+	 * @package WordPress
10
+	 * @subpackage Twenty_Fourteen
11
+	 * @since Twenty Fourteen 1.0
12
+	 */
13 13
 
14 14
 get_header(); ?>
15 15
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-image.php 3 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,51 +12,51 @@
 block discarded – undo
12 12
 	<?php twentyfourteen_post_thumbnail(); ?>
13 13
 
14 14
 	<header class="entry-header">
15
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
15
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
16 16
 		<div class="entry-meta">
17
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
17
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
18 18
 		</div><!-- .entry-meta -->
19 19
 		<?php
20 20
 			endif;
21 21
 
22
-			if ( is_single() ) :
23
-				the_title( '<h1 class="entry-title">', '</h1>' );
22
+			if (is_single()) :
23
+				the_title('<h1 class="entry-title">', '</h1>');
24 24
 			else :
25
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
25
+				the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>');
26 26
 			endif;
27 27
 		?>
28 28
 
29 29
 		<div class="entry-meta">
30 30
 			<span class="post-format">
31
-				<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>"><?php echo get_post_format_string( 'image' ); ?></a>
31
+				<a class="entry-format" href="<?php echo esc_url(get_post_format_link('image')); ?>"><?php echo get_post_format_string('image'); ?></a>
32 32
 			</span>
33 33
 
34 34
 			<?php twentyfourteen_posted_on(); ?>
35 35
 
36
-			<?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
37
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
36
+			<?php if ( ! post_password_required() && (comments_open() || get_comments_number())) : ?>
37
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span>
38 38
 			<?php endif; ?>
39 39
 
40
-			<?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
40
+			<?php edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>'); ?>
41 41
 		</div><!-- .entry-meta -->
42 42
 	</header><!-- .entry-header -->
43 43
 
44 44
 	<div class="entry-content">
45 45
 		<?php
46 46
 			/* translators: %s: Name of current post */
47
-			the_content( sprintf(
48
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
49
-				the_title( '<span class="screen-reader-text">', '</span>', false )
50
-			) );
47
+			the_content(sprintf(
48
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen'),
49
+				the_title('<span class="screen-reader-text">', '</span>', false)
50
+			));
51 51
 
52
-			wp_link_pages( array(
53
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
52
+			wp_link_pages(array(
53
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
54 54
 				'after'       => '</div>',
55 55
 				'link_before' => '<span>',
56 56
 				'link_after'  => '</span>',
57
-			) );
57
+			));
58 58
 		?>
59 59
 	</div><!-- .entry-content -->
60 60
 
61
-	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
61
+	<?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?>
62 62
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
 			if ( is_single() ) :
23 23
 				the_title( '<h1 class="entry-title">', '</h1>' );
24
-			else :
24
+			else {
25
+				:
25 26
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+			}
26 28
 			endif;
27 29
 		?>
28 30
 
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 posts in the Image post format
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
3
+		 * The template for displaying posts in the Image post format
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Twenty_Fourteen
7
+		 * @since Twenty Fourteen 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.