original_string: protected function listQueryParams(array $list)
      {
          $result = [];
          $params = $this->getRequest()->getQueryParams();
          
          foreach ($list as $key => $value) {
              if (is_int($key)) {
                  $key = $value;
                  $value = null;
              }
              
              $result[] = isset($params[$key]) ? $params[$key] : $value;
          }
          
          return $result;
      }
code: protected function listQueryParams(array $list)
      {
          $result = [];
          $params = $this->getRequest()->getQueryParams();
          
          foreach ($list as $key => $value) {
              if (is_int($key)) {
                  $key = $value;
                  $value = null;
              }
              
              $result[] = isset($params[$key]) ? $params[$key] : $value;
          }
          
          return $result;
      }
code_tokens: protected function listQueryParams ( array $ list ) { $ result = [ ] ; $ params = $ this -> getRequest ( ) -> getQueryParams ( ) ; foreach ( $ list as $ key => $ value ) { if ( is_int ( $ key ) ) { $ key = $ value ; $ value = null ; } $ result [ ] = isset ( $ params [ $ key ] ) ? $ params [ $ key ] : $ value ; } return $ result ; }
docstring: Apply list to query params
  
  @param array $list
  @return array
docstring_tokens: Apply list to query params