original_string: public function getQueryText()
      {
          if (is_null($this->_queryText)) {
              if ($this->_getRequest()->getParam('billing')) {
                  $tmp = $this->_getRequest()->getParam('billing');
                  $this->_queryText = $tmp['city'];
              } elseif ($this->_getRequest()->getParam('shipping')) {
                  $tmp = $this->_getRequest()->getParam('shipping');
                  $this->_queryText = $tmp['city'];
              } else {
                  $this->_queryText = $this->_getRequest()->getParam('city');
              }
              $this->_queryText = trim($this->_queryText);
              if (Mage::helper('core/string')->strlen($this->_queryText) > self::MAX_QUERY_LEN) {
                  $this->_queryText = Mage::helper('core/string')->substr($this->_queryText, 0, self::MAX_QUERY_LEN);
              }
          }
          return $this->_queryText;
      }
code: public function getQueryText()
      {
          if (is_null($this->_queryText)) {
              if ($this->_getRequest()->getParam('billing')) {
                  $tmp = $this->_getRequest()->getParam('billing');
                  $this->_queryText = $tmp['city'];
              } elseif ($this->_getRequest()->getParam('shipping')) {
                  $tmp = $this->_getRequest()->getParam('shipping');
                  $this->_queryText = $tmp['city'];
              } else {
                  $this->_queryText = $this->_getRequest()->getParam('city');
              }
              $this->_queryText = trim($this->_queryText);
              if (Mage::helper('core/string')->strlen($this->_queryText) > self::MAX_QUERY_LEN) {
                  $this->_queryText = Mage::helper('core/string')->substr($this->_queryText, 0, self::MAX_QUERY_LEN);
              }
          }
          return $this->_queryText;
      }
code_tokens: public function getQueryText ( ) { if ( is_null ( $ this -> _queryText ) ) { if ( $ this -> _getRequest ( ) -> getParam ( 'billing' ) ) { $ tmp = $ this -> _getRequest ( ) -> getParam ( 'billing' ) ; $ this -> _queryText = $ tmp [ 'city' ] ; } elseif ( $ this -> _getRequest ( ) -> getParam ( 'shipping' ) ) { $ tmp = $ this -> _getRequest ( ) -> getParam ( 'shipping' ) ; $ this -> _queryText = $ tmp [ 'city' ] ; } else { $ this -> _queryText = $ this -> _getRequest ( ) -> getParam ( 'city' ) ; } $ this -> _queryText = trim ( $ this -> _queryText ) ; if ( Mage :: helper ( 'core/string' ) -> strlen ( $ this -> _queryText ) > self :: MAX_QUERY_LEN ) { $ this -> _queryText = Mage :: helper ( 'core/string' ) -> substr ( $ this -> _queryText , 0 , self :: MAX_QUERY_LEN ) ; } } return $ this -> _queryText ; }
docstring: Gets the query text for city lookups in the postcode database.
  
  @return string
docstring_tokens: Gets the query text for city lookups in the postcode database .