original_string: protected function checkBrowserAndroidHTCDesire()
      {
          if( stripos($this->_agent,'Android') !== false )
          {
              if( stripos($this->_agent,'HTC_DesireHD') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE_HD);
                  return true;
              }
              if( stripos($this->_agent,'HTC Desire Z') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE_Z);
                  return true;
              }
              if( stripos($this->_agent,'HTC_DesireS') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE_S);
                  return true;
              }
              if( stripos($this->_agent,'HTC_Desire')   !== false ||
                  stripos($this->_agent,'HTC Desire')   !== false ||
              	stripos($this->_agent,'Desire_A8181') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE);
                  return true;
              }
          }
          return false;
      }
code: protected function checkBrowserAndroidHTCDesire()
      {
          if( stripos($this->_agent,'Android') !== false )
          {
              if( stripos($this->_agent,'HTC_DesireHD') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE_HD);
                  return true;
              }
              if( stripos($this->_agent,'HTC Desire Z') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE_Z);
                  return true;
              }
              if( stripos($this->_agent,'HTC_DesireS') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE_S);
                  return true;
              }
              if( stripos($this->_agent,'HTC_Desire')   !== false ||
                  stripos($this->_agent,'HTC Desire')   !== false ||
              	stripos($this->_agent,'Desire_A8181') !== false )
              {
                  $this->setVersion(self::VERSION_UNKNOWN);
                  $this->setMobile(true);
                  $this->setBrowser(self::BROWSER_HTC_DESIRE);
                  return true;
              }
          }
          return false;
      }
code_tokens: protected function checkBrowserAndroidHTCDesire ( ) { if ( stripos ( $ this -> _agent , 'Android' ) !== false ) { if ( stripos ( $ this -> _agent , 'HTC_DesireHD' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE_HD ) ; return true ; } if ( stripos ( $ this -> _agent , 'HTC Desire Z' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE_Z ) ; return true ; } if ( stripos ( $ this -> _agent , 'HTC_DesireS' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE_S ) ; return true ; } if ( stripos ( $ this -> _agent , 'HTC_Desire' ) !== false || stripos ( $ this -> _agent , 'HTC Desire' ) !== false || stripos ( $ this -> _agent , 'Desire_A8181' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE ) ; return true ; } } return false ; }
docstring: Determine if the browser is Android and HTC Desire or not, add by BugBuster
  @return boolean True if the browser is HTC Desire otherwise false
docstring_tokens: Determine if the browser is Android and HTC Desire or not add by BugBuster