src/Service/Partner.php
public function verifyProtocol($url, $append = 'http://')
    {
        if (strpos($url, 'http://') === false && strpos($url, 'https://') === false) {
            $url = $append.$url;
        }
        
        return $url;
    }
public function verifyProtocol($url, $append = 'http://')
    {
        if (strpos($url, 'http://') === false && strpos($url, 'https://') === false) {
            $url = $append.$url;
        }
        
        return $url;
    }
public function verifyProtocol ( $ url , $ append = 'http://' ) { if ( strpos ( $ url , 'http://' ) === false && strpos ( $ url , 'https://' ) === false ) { $ url = $ append . $ url ; } return $ url ; }
Add protocol to an url if missing

@param  url
@param  append
@return string
Add protocol to an url if missing