src/base/AbstractDriver.php
final protected function addUrlParam(&$link, $name, $value)
    {
        $base = $name . '=' . $value;

        if (false !== \strpos($link, '?')) {
            $last = \substr($link, -1);

            if ('?' === $last || '&' === $last) {
                $link .= $base;
            } else {
                $link .= '&' . $base;
            }
        } else {
            $link .= '?' . $base;
        }
    }
final protected function addUrlParam(&$link, $name, $value)
    {
        $base = $name . '=' . $value;

        if (false !== \strpos($link, '?')) {
            $last = \substr($link, -1);

            if ('?' === $last || '&' === $last) {
                $link .= $base;
            } else {
                $link .= '&' . $base;
            }
        } else {
            $link .= '?' . $base;
        }
    }
final protected function addUrlParam ( & $ link , $ name , $ value ) { $ base = $ name . '=' . $ value ; if ( false !== \ strpos ( $ link , '?' ) ) { $ last = \ substr ( $ link , - 1 ) ; if ( '?' === $ last || '&' === $ last ) { $ link .= $ base ; } else { $ link .= '&' . $ base ; } } else { $ link .= '?' . $ base ; } }
Adds URL param to link.

@param string $link
@param string $name  Param name.
@param string $value Param value.

@since 1.4.0
Adds URL param to link .