src/Http/Redirect/Redirector.php
protected function setParams(array $args)
    {
        if (!empty($args)) {
            $request = '?';
        } else {
            $request = '';
        }

        foreach ($args as $key => $value) {
            if (is_numeric($key)) {
                if ($request != '?') {
                    $request .= '&';
                }
                $request .= $value;
            } elseif (is_string($key)) {
                if ($request != '?') {
                    $request .= '&';
                }
                $request .= $key.'='.$value;
            }
        }

        return $request;
    }
protected function setParams(array $args)
    {
        if (!empty($args)) {
            $request = '?';
        } else {
            $request = '';
        }

        foreach ($args as $key => $value) {
            if (is_numeric($key)) {
                if ($request != '?') {
                    $request .= '&';
                }
                $request .= $value;
            } elseif (is_string($key)) {
                if ($request != '?') {
                    $request .= '&';
                }
                $request .= $key.'='.$value;
            }
        }

        return $request;
    }
protected function setParams ( array $ args ) { if ( ! empty ( $ args ) ) { $ request = '?' ; } else { $ request = '' ; } foreach ( $ args as $ key => $ value ) { if ( is_numeric ( $ key ) ) { if ( $ request != '?' ) { $ request .= '&' ; } $ request .= $ value ; } elseif ( is_string ( $ key ) ) { if ( $ request != '?' ) { $ request .= '&' ; } $ request .= $ key . '=' . $ value ; } } return $ request ; }
To set get parameters.

@param array $args

@return string
To set get parameters .