original_string: public function getRelatedPartByID( $cid )
      {
          $parts = $this->getRelatedParts();
          foreach ( $parts as $part )
          {
              if ( ( $part->getHeader( 'Content-ID' ) !== '' ) &&
                  ( $part->getHeader( 'Content-ID' ) == "<$cid>" ) )
              {
                  return $part;
              }
          }
          return false;
      }
code: public function getRelatedPartByID( $cid )
      {
          $parts = $this->getRelatedParts();
          foreach ( $parts as $part )
          {
              if ( ( $part->getHeader( 'Content-ID' ) !== '' ) &&
                  ( $part->getHeader( 'Content-ID' ) == "<$cid>" ) )
              {
                  return $part;
              }
          }
          return false;
      }
code_tokens: public function getRelatedPartByID ( $ cid ) { $ parts = $ this -> getRelatedParts ( ) ; foreach ( $ parts as $ part ) { if ( ( $ part -> getHeader ( 'Content-ID' ) !== '' ) && ( $ part -> getHeader ( 'Content-ID' ) == "<$cid>" ) ) { return $ part ; } } return false ; }
docstring: Returns the part associated with the passed Content-ID.
  
  @param string $cid
  @return ezcMailPart
docstring_tokens: Returns the part associated with the passed Content - ID .