Skip to content

Commit 5f5b651

Browse files
committed
Fix PHPCS Errors
1 parent 7978741 commit 5f5b651

8 files changed

Lines changed: 23 additions & 23 deletions

File tree

src/wp-content/themes/twentyeleven/header.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
<header id="branding">
8080
<hgroup>
8181
<?php
82-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
83-
$site_name = get_bloginfo( 'name' );
82+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
83+
$site_name = get_bloginfo( 'name' );
8484
$site_description = get_bloginfo( 'description' );
85-
85+
8686
if ( $site_name || $site_description ) :
8787
?>
8888
<?php if ( $site_name ) : ?>

src/wp-content/themes/twentyfifteen/header.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,24 @@
3333
<div class="site-branding">
3434
<?php
3535
twentyfifteen_the_custom_logo();
36-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
36+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
3737
$site_name = get_bloginfo( 'name' );
3838

3939
if ( $site_name && is_front_page() && is_home() ) :
4040
?>
4141
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></h1>
4242
<?php elseif ( $site_name ) : ?>
4343
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></p>
44-
<?php
44+
<?php
4545
endif;
4646

47-
$description = get_bloginfo( 'description', 'display' );
48-
if ( $description || is_customize_preview() ) :
49-
?>
47+
$description = get_bloginfo( 'description', 'display' );
48+
if ( $description || is_customize_preview() ) :
49+
?>
5050
<p class="site-description"><?php echo $description; ?></p>
51-
<?php
51+
<?php
5252
endif;
53-
?>
53+
?>
5454
<button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
5555
</div><!-- .site-branding -->
5656
</header><!-- .site-header -->

src/wp-content/themes/twentyfourteen/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<?php
5454
$site_name = get_bloginfo( 'name' );
5555
if ( $site_name ) :
56-
?>
56+
?>
5757
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></h1>
5858
<?php endif; ?>
5959

src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<div class="site-branding-text">
1818
<?php
19-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
19+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
2020
$site_name = get_bloginfo( 'name' );
2121

2222
if ( $site_name && is_front_page() ) :

src/wp-content/themes/twentysixteen/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="site-branding">
3838
<?php twentysixteen_the_custom_logo(); ?>
3939
<?php
40-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
40+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
4141
$site_name = get_bloginfo( 'name' );
4242

4343
if ( $site_name && is_front_page() && is_home() ) :

src/wp-content/themes/twentyten/header.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
<div id="masthead">
7070
<div id="branding" role="banner">
7171
<?php
72-
$heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div';
73-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
74-
$site_name = get_bloginfo( 'name' );
72+
$heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div';
73+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
74+
$site_name = get_bloginfo( 'name' );
7575
$site_description = get_bloginfo( 'description' );
76-
76+
7777
if ( $site_name || $site_description ) :
7878
?>
7979
<?php if ( $site_name ) : ?>

src/wp-content/themes/twentythirteen/header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
</a>
3131
<header id="masthead" class="site-header">
3232
<?php
33-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
34-
$site_name = get_bloginfo( 'name' );
33+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
34+
$site_name = get_bloginfo( 'name' );
3535
$site_description = get_bloginfo( 'description' );
3636

3737
if ( $site_name || $site_description ) :

src/wp-content/themes/twentytwelve/header.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
3838
<header id="masthead" class="site-header">
3939
<hgroup>
40-
<?php
41-
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
42-
$site_name = get_bloginfo( 'name' );
40+
<?php
41+
$is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
42+
$site_name = get_bloginfo( 'name' );
4343
$site_description = get_bloginfo( 'description' );
44-
44+
4545
if ( $site_name || $site_description ) :
4646
?>
4747
<?php if ( $site_name ) : ?>

0 commit comments

Comments
 (0)