60 ) { $cut = mb_substr( $text, 0, 60 ); $last = mb_strrpos( $cut, ' ' ); $text = rtrim( false !== $last && $last > 30 ? mb_substr( $cut, 0, $last ) : $cut, ' ,.;:' ) . '…'; } return ConversationRepository::clean_title( $text ); } }