original_string: public function can_view_post_shell(stdClass $user, post_entity $post) : bool {
          if (!$post->is_private_reply()) {
              return true;
          }
  
          if ($post->is_private_reply_intended_for_user($user)) {
              return true;
          }
  
          return $this->can_view_any_private_reply($user);
      }
code: public function can_view_post_shell(stdClass $user, post_entity $post) : bool {
          if (!$post->is_private_reply()) {
              return true;
          }
  
          if ($post->is_private_reply_intended_for_user($user)) {
              return true;
          }
  
          return $this->can_view_any_private_reply($user);
      }
code_tokens: public function can_view_post_shell ( stdClass $ user , post_entity $ post ) : bool { if ( ! $ post -> is_private_reply ( ) ) { return true ; } if ( $ post -> is_private_reply_intended_for_user ( $ user ) ) { return true ; } return $ this -> can_view_any_private_reply ( $ user ) ; }
docstring: Can the user view the post at all?
  In some situations the user can view the shell of a post without being able to view its content.
  
  @param   stdClass $user The user to check
  @param   post_entity $post The post the user wants to view
  @return  bool
docstring_tokens: Can the user view the post at all? In some situations the user can view the shell of a post without being able to view its content .