Fix Generic.WhiteSpace.ScopeIndent violations

This commit fixes all violations of the Generic.WhiteSpace.ScopeIndent sniff automatically using phpcbf.
This commit is contained in:
Rodrigo Primo 2019-12-20 14:48:11 -03:00
parent 73b5fff29e
commit 86c1b61f03
8 changed files with 65 additions and 61 deletions

View File

@ -22,23 +22,27 @@ if ( ! defined( 'ABSPATH' ) ) {
} }
?> ?>
<p><?php <p>
<?php
printf( printf(
/* translators: 1: user display name 2: logout url */ /* translators: 1: user display name 2: logout url */
__( 'Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)', 'woocommerce' ), __( 'Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)', 'woocommerce' ),
'<strong>' . esc_html( $current_user->display_name ) . '</strong>', '<strong>' . esc_html( $current_user->display_name ) . '</strong>',
esc_url( wc_logout_url() ) esc_url( wc_logout_url() )
); );
?></p> ?>
</p>
<p><?php <p>
<?php
printf( printf(
__( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' ), __( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' ),
esc_url( wc_get_endpoint_url( 'orders' ) ), esc_url( wc_get_endpoint_url( 'orders' ) ),
esc_url( wc_get_endpoint_url( 'edit-address' ) ), esc_url( wc_get_endpoint_url( 'edit-address' ) ),
esc_url( wc_get_endpoint_url( 'edit-account' ) ) esc_url( wc_get_endpoint_url( 'edit-account' ) )
); );
?></p> ?>
</p>
<?php <?php
/** /**

View File

@ -41,5 +41,5 @@ if ( '0' === $comment->comment_approved ) { ?>
<span class="woocommerce-review__dash">&ndash;</span> <time class="woocommerce-review__published-date" datetime="<?php echo esc_attr( get_comment_date( 'c' ) ); ?>"><?php echo esc_html( get_comment_date( wc_date_format() ) ); ?></time> <span class="woocommerce-review__dash">&ndash;</span> <time class="woocommerce-review__published-date" datetime="<?php echo esc_attr( get_comment_date( 'c' ) ); ?>"><?php echo esc_html( get_comment_date( wc_date_format() ) ); ?></time>
</p> </p>
<?php <?php
} }