original_string: private function httpBuildQuery($params)
      {
          $query = [];
          foreach ($params as $key => $param) {
              if (!is_array($param)) {
                  continue;
              }
              // when a param has many values, it generate the query string separated to join late
              foreach ($param as $subParam) {
                  $query[] = http_build_query([$key => $subParam]);
              }
              unset($params[$key]);
          }
  
          // join queries strings
          $query[] = http_build_query($params);
          $query = implode('&', $query);
  
          return $query;
      }
code: private function httpBuildQuery($params)
      {
          $query = [];
          foreach ($params as $key => $param) {
              if (!is_array($param)) {
                  continue;
              }
              // when a param has many values, it generate the query string separated to join late
              foreach ($param as $subParam) {
                  $query[] = http_build_query([$key => $subParam]);
              }
              unset($params[$key]);
          }
  
          // join queries strings
          $query[] = http_build_query($params);
          $query = implode('&', $query);
  
          return $query;
      }
code_tokens: private function httpBuildQuery ( $ params ) { $ query = [ ] ; foreach ( $ params as $ key => $ param ) { if ( ! is_array ( $ param ) ) { continue ; } // when a param has many values, it generate the query string separated to join late foreach ( $ param as $ subParam ) { $ query [ ] = http_build_query ( [ $ key => $ subParam ] ) ; } unset ( $ params [ $ key ] ) ; } // join queries strings $ query [ ] = http_build_query ( $ params ) ; $ query = implode ( '&' , $ query ) ; return $ query ; }
docstring: Create a query string
  
  @param array $params
  @return string
docstring_tokens: Create a query string