Mistři v programování na #hovnokod

PHP #668

protected function _buildParamsUrl($additional = array()) {
       $url = array();
       $params = $this->_request->getParams();
       $params = array_merge($params);
       foreach ($params as $var => $val) {
           if (in_array($var,$this->_neededParams) && is_scalar($val)) {
                $url[$var] = $val;
           }
       }
       
       $url = array_merge($url,$additional);
       
       return $url;
    }

HovnoKod,