Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffguillain committed Sep 26, 2024
1 parent f95840d commit d4c031a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/osi/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d4c031a

Please sign in to comment.