original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: 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
docstring_tokens: Can the user split the post in this discussion?