Skip to content

Commit d4c031a

Browse files
committed
Fix linting
1 parent f95840d commit d4c031a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

themes/osi/functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ function osi_adjust_offset_pagination( int $found_posts, WP_Query $query ) {
411411
/**
412412
* Trim the Discourse comment body to 50 words.
413413
*
414-
* @param string $comment_body The comment body.
415-
*
414+
* @param string $comment_body The comment body.
415+
*
416416
* @return string The trimmed comment body.
417417
*/
418-
function osi_wpdc_comment_body( $comment_body ) {
418+
function osi_wpdc_comment_body( string $comment_body ) {
419419
$trimmed_comment_body = wp_trim_words( $comment_body, 50, '(...)' );
420420
return $trimmed_comment_body;
421421
}

0 commit comments

Comments
 (0)