original_string: protected function mapUriPartsFromServerParams(array $params)
      {
          $parts = [];
          
          $map = [
              'PHP_AUTH_USER' => 'user',
              'PHP_AUTH_PWD' => 'password',
              'HTTP_HOST' => 'host',
              'SERVER_PORT' => 'port',
              'REQUEST_URI' => 'path',
              'QUERY_STRING' => 'query'
          ];
          
          foreach ($map as $param => $key) {
              if (isset($params[$param])) {
                  $parts[$key] = $params[$param];
              }
          }
          
          return $parts;
      }
code: protected function mapUriPartsFromServerParams(array $params)
      {
          $parts = [];
          
          $map = [
              'PHP_AUTH_USER' => 'user',
              'PHP_AUTH_PWD' => 'password',
              'HTTP_HOST' => 'host',
              'SERVER_PORT' => 'port',
              'REQUEST_URI' => 'path',
              'QUERY_STRING' => 'query'
          ];
          
          foreach ($map as $param => $key) {
              if (isset($params[$param])) {
                  $parts[$key] = $params[$param];
              }
          }
          
          return $parts;
      }
code_tokens: protected function mapUriPartsFromServerParams ( array $ params ) { $ parts = [ ] ; $ map = [ 'PHP_AUTH_USER' => 'user' , 'PHP_AUTH_PWD' => 'password' , 'HTTP_HOST' => 'host' , 'SERVER_PORT' => 'port' , 'REQUEST_URI' => 'path' , 'QUERY_STRING' => 'query' ] ; foreach ( $ map as $ param => $ key ) { if ( isset ( $ params [ $ param ] ) ) { $ parts [ $ key ] = $ params [ $ param ] ; } } return $ parts ; }
docstring: Map server params for URI
  
  @param array $params
  @return array
docstring_tokens: Map server params for URI