public function can_split_post(stdClass $user, discussion_entity $discussion, post_entity $post) : bool {
        if ($post->is_private_reply()) {
            // It is not possible to create a private discussion.
            return false;
        }

        return $this->can_split_discussions($user) && $post->has_parent();
    }
public function can_split_post(stdClass $user, discussion_entity $discussion, post_entity $post) : bool {
        if ($post->is_private_reply()) {
            // It is not possible to create a private discussion.
            return false;
        }

        return $this->can_split_discussions($user) && $post->has_parent();
    }
public function can_split_post ( stdClass $ user , discussion_entity $ discussion , post_entity $ post ) : bool { if ( $ post -> is_private_reply ( ) ) { // It is not possible to create a private discussion. return false ; } return $ this -> can_split_discussions ( $ user ) && $ post -> has_parent ( ) ; }
Can the user split the post in this discussion?

@param stdClass $user The user to check
@param discussion_entity $discussion The discussion to check
@param post_entity $post The post the user wants to split
@return bool
Can the user split the post in this discussion?