original_string: public function getClientIp()
      {
          $ipaddress = getenv('HTTP_CLIENT_IP') ?:
              getenv('HTTP_X_FORWARDED_FOR') ?:
                  getenv('HTTP_X_FORWARDED') ?:
                      getenv('HTTP_FORWARDED_FOR') ?:
                          getenv('HTTP_FORWARDED') ?:
                              getenv('REMOTE_ADDR');
  			    
  	//Try to get client IP from SERVER variables
          if(!$ipaddress)
          {
              return $this->getClientIpFromServerVar();
          }
          return $ipaddress;
      }
code: public function getClientIp()
      {
          $ipaddress = getenv('HTTP_CLIENT_IP') ?:
              getenv('HTTP_X_FORWARDED_FOR') ?:
                  getenv('HTTP_X_FORWARDED') ?:
                      getenv('HTTP_FORWARDED_FOR') ?:
                          getenv('HTTP_FORWARDED') ?:
                              getenv('REMOTE_ADDR');
  			    
  	//Try to get client IP from SERVER variables
          if(!$ipaddress)
          {
              return $this->getClientIpFromServerVar();
          }
          return $ipaddress;
      }
code_tokens: public function getClientIp ( ) { $ ipaddress = getenv ( 'HTTP_CLIENT_IP' ) ? : getenv ( 'HTTP_X_FORWARDED_FOR' ) ? : getenv ( 'HTTP_X_FORWARDED' ) ? : getenv ( 'HTTP_FORWARDED_FOR' ) ? : getenv ( 'HTTP_FORWARDED' ) ? : getenv ( 'REMOTE_ADDR' ) ; //Try to get client IP from SERVER variables if ( ! $ ipaddress ) { return $ this -> getClientIpFromServerVar ( ) ; } return $ ipaddress ; }
docstring: Get the customers IP Address
  
  @return string
docstring_tokens: Get the customers IP Address