src/Sulu/Bundle/PageBundle/Resources/phpcr-migrations/Version201511240844.php
private function upgradeUrl(&$value)
    {
        if (!empty($value)
            && false === strpos($value, 'http://')
            && false === strpos($value, 'https://')
            && false === strpos($value, 'ftp://')
            && false === strpos($value, 'ftps://')
            && false === strpos($value, 'mailto:')
            && false === strpos($value, '//')
        ) {
            $value = 'http://' . $value;
        }

        return $value;
    }
private function upgradeUrl(&$value)
    {
        if (!empty($value)
            && false === strpos($value, 'http://')
            && false === strpos($value, 'https://')
            && false === strpos($value, 'ftp://')
            && false === strpos($value, 'ftps://')
            && false === strpos($value, 'mailto:')
            && false === strpos($value, '//')
        ) {
            $value = 'http://' . $value;
        }

        return $value;
    }
private function upgradeUrl ( & $ value ) { if ( ! empty ( $ value ) && false === strpos ( $ value , 'http://' ) && false === strpos ( $ value , 'https://' ) && false === strpos ( $ value , 'ftp://' ) && false === strpos ( $ value , 'ftps://' ) && false === strpos ( $ value , 'mailto:' ) && false === strpos ( $ value , '//' ) ) { $ value = 'http://' . $ value ; } return $ value ; }
Upgrades the given URL to the new representation.

@param string $value The url to change

@return string
Upgrades the given URL to the new representation .