original_string: protected static function get_post_area_for_parent(\stdClass $post) {
          global $DB;
  
          $subcontext = [];
          if ($parent = $DB->get_record('forum_posts', ['id' => $post->parent], 'id, created, subject')) {
              $subcontext = array_merge($subcontext, static::get_post_area($parent));
          }
          $subcontext = array_merge($subcontext, static::get_post_area($post));
  
          return $subcontext;
      }
code: protected static function get_post_area_for_parent(\stdClass $post) {
          global $DB;
  
          $subcontext = [];
          if ($parent = $DB->get_record('forum_posts', ['id' => $post->parent], 'id, created, subject')) {
              $subcontext = array_merge($subcontext, static::get_post_area($parent));
          }
          $subcontext = array_merge($subcontext, static::get_post_area($post));
  
          return $subcontext;
      }
code_tokens: protected static function get_post_area_for_parent ( \ stdClass $ post ) { global $ DB ; $ subcontext = [ ] ; if ( $ parent = $ DB -> get_record ( 'forum_posts' , [ 'id' => $ post -> parent ] , 'id, created, subject' ) ) { $ subcontext = array_merge ( $ subcontext , static :: get_post_area ( $ parent ) ) ; } $ subcontext = array_merge ( $ subcontext , static :: get_post_area ( $ post ) ) ; return $ subcontext ; }
docstring: Get the parent subcontext for the supplied forum, discussion, and post combination.
  
  @param   \stdClass   $post The post.
  @return  array
docstring_tokens: Get the parent subcontext for the supplied forum discussion and post combination .