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;
    }
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;
    }
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 ; }
Apply list to query params

@param array $list
@return array
Apply list to query params