Refactor using WordPress brace style
https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#brace-style
This commit is contained in:
@@ -13,8 +13,9 @@ if ( ! isset( $id ) )
|
|||||||
$id = get_the_ID();
|
$id = get_the_ID();
|
||||||
|
|
||||||
$format = get_option( 'sportspress_team_events_format', 'blocks' );
|
$format = get_option( 'sportspress_team_events_format', 'blocks' );
|
||||||
if ( 'calendar' === $format )
|
if ( 'calendar' === $format ) {
|
||||||
sp_get_template( 'event-calendar.php', array( 'team' => $id ) );
|
sp_get_template( 'event-calendar.php', array( 'team' => $id ) );
|
||||||
|
}
|
||||||
elseif ( 'list' === $format ) {
|
elseif ( 'list' === $format ) {
|
||||||
$args = array(
|
$args = array(
|
||||||
'team' => $id,
|
'team' => $id,
|
||||||
@@ -27,5 +28,6 @@ elseif ( 'list' === $format ) {
|
|||||||
);
|
);
|
||||||
$args = apply_filters( 'sportspress_team_events_list_args', $args );
|
$args = apply_filters( 'sportspress_team_events_list_args', $args );
|
||||||
sp_get_template( 'event-list.php', $args );
|
sp_get_template( 'event-list.php', $args );
|
||||||
} else
|
} else {
|
||||||
sp_get_template( 'event-fixtures-results.php', array( 'team' => $id ) );
|
sp_get_template( 'event-fixtures-results.php', array( 'team' => $id ) );
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user