Skip to content

Commit

Permalink
Resolve phpcs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mehidi258 committed Apr 8, 2024
1 parent 449cebb commit bc1961c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions includes/blocks/podcast/markup.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<div class="wp-block-podcasting-podcast__image">
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail( 'medium' );
else:
the_post_thumbnail( 'medium' );
else :
$term_image_id = get_term_meta( $podcast_show->term_id, 'podcasting_image', true );
echo wp_get_attachment_image( $term_image_id, 'medium' );
endif;
Expand Down
2 changes: 1 addition & 1 deletion includes/customize-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function bloginfo_rss_name( $output ) {
}
$title = get_term_meta( $term->term_id, 'podcasting_title', true );
if ( empty( $title ) ) {
$title = get_bloginfo( 'name' );
$title = get_bloginfo( 'name' );
$output = "$title &#187; {$term->name}";
} else {
$output = $title;
Expand Down
10 changes: 8 additions & 2 deletions simple-podcasting.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ function setup_edit_screen() {
* Registers block assets for Podcast block.
*/
function register_podcast_block_assets() {
$block_asset = [ 'version' => PODCASTING_VERSION, 'dependencies' => [] ];
$block_asset = [
'version' => PODCASTING_VERSION,
'dependencies' => []
];
if ( file_exists( PODCASTING_PATH . 'dist/podcast.asset.php' ) ) {
$block_asset = require PODCASTING_PATH . 'dist/podcast.asset.php';
}
Expand All @@ -276,7 +279,10 @@ function register_podcast_block_assets() {
* Registers block assets for Podcast block in admin.
*/
function register_podcast_block_assets_admin() {
$block_asset = [ 'version' => PODCASTING_VERSION, 'dependencies' => [] ];
$block_asset = [
'version' => PODCASTING_VERSION,
'dependencies' => []
];
if ( file_exists( PODCASTING_PATH . 'dist/podcast.asset.php' ) ) {
$block_asset = require PODCASTING_PATH . 'dist/podcast.asset.php';
}
Expand Down

0 comments on commit bc1961c

Please sign in to comment.