From d4c031a2c649281e8ccdefaa2cbf4309936e3efc Mon Sep 17 00:00:00 2001 From: Geoff Date: Thu, 26 Sep 2024 00:20:00 -1000 Subject: [PATCH] Fix linting --- themes/osi/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/osi/functions.php b/themes/osi/functions.php index e94a710..7aa6fea 100755 --- a/themes/osi/functions.php +++ b/themes/osi/functions.php @@ -411,11 +411,11 @@ function osi_adjust_offset_pagination( int $found_posts, WP_Query $query ) { /** * Trim the Discourse comment body to 50 words. * - * @param string $comment_body The comment body. - * + * @param string $comment_body The comment body. + * * @return string The trimmed comment body. */ -function osi_wpdc_comment_body( $comment_body ) { +function osi_wpdc_comment_body( string $comment_body ) { $trimmed_comment_body = wp_trim_words( $comment_body, 50, '(...)' ); return $trimmed_comment_body; }