From a7698f6cccd0ddf7c924166e223b7ef90483b367 Mon Sep 17 00:00:00 2001 From: Vipul Gupta Date: Thu, 9 May 2024 02:50:32 +0530 Subject: [PATCH] fix: phpcs linting. --- packages/block-library/src/query-title/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/query-title/index.php b/packages/block-library/src/query-title/index.php index 0c4c438482f79b..dd6b4c37fa2824 100644 --- a/packages/block-library/src/query-title/index.php +++ b/packages/block-library/src/query-title/index.php @@ -38,20 +38,20 @@ function render_block_core_query_title( $attributes ) { } } if ( $is_search ) { - $title = isset($attributes['searchResultsTerm']) && !empty($attributes['searchResultsTerm']) ? $attributes['searchResultsTerm'] : __( 'Search results' ); + $title = isset( $attributes['searchResultsTerm'] ) && ! empty( $attributes['searchResultsTerm'] ) ? $attributes['searchResultsTerm'] : __( 'Search results' ); if ( isset( $attributes['showSearchTerm'] ) && $attributes['showSearchTerm'] ) { // Get the prefix and suffix. - $prefix = isset($attributes['searchResultsTerm']) ? $attributes['searchResultsTerm'] : __('Search results for: '); - $suffix = isset($attributes['searchResultsTermSuffix']) ? $attributes['searchResultsTermSuffix'] : ''; + $prefix = isset( $attributes['searchResultsTerm'] ) ? $attributes['searchResultsTerm'] : __( 'Search results for: ' ); + $suffix = isset( $attributes['searchResultsTermSuffix'] ) ? $attributes['searchResultsTermSuffix'] : ''; // Get the search query. $search_query = get_search_query(); $title = sprintf( /* translators: 1: Search term prefix, 2: Search term, 3: Search term suffix. */ - __('%1$s "%2$s" %3$s'), + __( '%1$s "%2$s" %3$s' ), $prefix, $search_query, $suffix