original_string: public function getRemoteIP(): string
      {
          if (null === $this->remote_ip) {
              $ip = $_SERVER['REMOTE_ADDR'];
              if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
                  $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
                  $ip = explode(',', $ip);
                  $ip = trim($ip[0]);
              }
              $this->remote_ip = $ip;
          }
          return $this->remote_ip;
      }
code: public function getRemoteIP(): string
      {
          if (null === $this->remote_ip) {
              $ip = $_SERVER['REMOTE_ADDR'];
              if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
                  $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
                  $ip = explode(',', $ip);
                  $ip = trim($ip[0]);
              }
              $this->remote_ip = $ip;
          }
          return $this->remote_ip;
      }
code_tokens: public function getRemoteIP ( ) : string { if ( null === $ this -> remote_ip ) { $ ip = $ _SERVER [ 'REMOTE_ADDR' ] ; if ( ! empty ( $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ) ) { $ ip = $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ; $ ip = explode ( ',' , $ ip ) ; $ ip = trim ( $ ip [ 0 ] ) ; } $ this -> remote_ip = $ ip ; } return $ this -> remote_ip ; }
docstring: Get the IP address of the user
  
  @return string The remote IP address. If the user passes through a proxy, this will attempt to return the origin
  IP address.
docstring_tokens: Get the IP address of the user