original_string: protected function getTrustedForwardedIp(array $ips)
      {
          if (is_string($this->trustedProxy)) {
              foreach ($ips as $ip) {
                  if (\Jasny\ip_in_cidr($ip, $this->trustedProxy)) {
                      continue;
                  }
                  return $ip;
              }
          }
          
          return end($ips);
      }
code: protected function getTrustedForwardedIp(array $ips)
      {
          if (is_string($this->trustedProxy)) {
              foreach ($ips as $ip) {
                  if (\Jasny\ip_in_cidr($ip, $this->trustedProxy)) {
                      continue;
                  }
                  return $ip;
              }
          }
          
          return end($ips);
      }
code_tokens: protected function getTrustedForwardedIp ( array $ ips ) { if ( is_string ( $ this -> trustedProxy ) ) { foreach ( $ ips as $ ip ) { if ( \ Jasny \ ip_in_cidr ( $ ip , $ this -> trustedProxy ) ) { continue ; } return $ ip ; } } return end ( $ ips ) ; }
docstring: Select an IP which is within the list of trusted ips
  
  @param array $ips
  @return string
docstring_tokens: Select an IP which is within the list of trusted ips