original_string: protected function parseBody($stream, $uid)
      {
          $struct = imap_fetchstructure($stream, $uid, static::$fetchFlags);
  
          if (!isset($struct->parts)) {
              return array_filter([$this->parsePart($stream, $uid, $struct)]);
          }
  
          $parsedParts = [];
          foreach ($this->flattenParts($struct->parts) as $partNo => $part) {
              $parsedParts[] = $this->parsePart($stream, $uid, $part, $partNo);
          }
          return array_filter($parsedParts);
      }
code: protected function parseBody($stream, $uid)
      {
          $struct = imap_fetchstructure($stream, $uid, static::$fetchFlags);
  
          if (!isset($struct->parts)) {
              return array_filter([$this->parsePart($stream, $uid, $struct)]);
          }
  
          $parsedParts = [];
          foreach ($this->flattenParts($struct->parts) as $partNo => $part) {
              $parsedParts[] = $this->parsePart($stream, $uid, $part, $partNo);
          }
          return array_filter($parsedParts);
      }
code_tokens: protected function parseBody ( $ stream , $ uid ) { $ struct = imap_fetchstructure ( $ stream , $ uid , static :: $ fetchFlags ) ; if ( ! isset ( $ struct -> parts ) ) { return array_filter ( [ $ this -> parsePart ( $ stream , $ uid , $ struct ) ] ) ; } $ parsedParts = [ ] ; foreach ( $ this -> flattenParts ( $ struct -> parts ) as $ partNo => $ part ) { $ parsedParts [ ] = $ this -> parsePart ( $ stream , $ uid , $ part , $ partNo ) ; } return array_filter ( $ parsedParts ) ; }
docstring: Parse the email body and its parts
  
  @param  resource $stream
  @param  int $uid
  @return array
docstring_tokens: Parse the email body and its parts