code: protected function escape($varValue)
  	{
  		if (is_numeric($varValue) && !preg_match('/e|^[+-]?0[^.]/', $varValue) && $varValue < PHP_INT_MAX)
  		{
  			return $varValue;
  		}
  
  		if (\is_bool($varValue))
  		{
  			return $varValue ? 'true' : 'false';
  		}
  
  		if ($varValue == 'true')
  		{
  			return 'true';
  		}
  
  		if ($varValue == 'false')
  		{
  			return 'false';
  		}
  
  		return "'" . str_replace('\\"', '"', preg_replace('/[\n\r\t ]+/', ' ', addslashes($varValue))) . "'";
  	}
docs: Escape a value depending on its type
  
  @param mixed $varValue The value
  
  @return mixed The escaped value