original_string: protected function _reindex($force = false)
      {
          $id = $this->getMimeId();
  
          if (($this->_status & self::STATUS_REINDEX) ||
              ($force && is_null($id))) {
              $this->buildMimeIds(
                  is_null($id)
                      ? (($this->getPrimaryType() === 'multipart') ? '0' : '1')
                      : $id
              );
          }
      }
code: protected function _reindex($force = false)
      {
          $id = $this->getMimeId();
  
          if (($this->_status & self::STATUS_REINDEX) ||
              ($force && is_null($id))) {
              $this->buildMimeIds(
                  is_null($id)
                      ? (($this->getPrimaryType() === 'multipart') ? '0' : '1')
                      : $id
              );
          }
      }
code_tokens: protected function _reindex ( $ force = false ) { $ id = $ this -> getMimeId ( ) ; if ( ( $ this -> _status & self :: STATUS_REINDEX ) || ( $ force && is_null ( $ id ) ) ) { $ this -> buildMimeIds ( is_null ( $ id ) ? ( ( $ this -> getPrimaryType ( ) === 'multipart' ) ? '0' : '1' ) : $ id ) ; } }
docstring: Reindexes the MIME IDs, if necessary.
  
  @param boolean $force  Reindex if the current part doesn't have an ID.
docstring_tokens: Reindexes the MIME IDs if necessary .