protected static function saveExternalFile($url, $path)
    {
        if ($data = file_get_contents($url)) {
            return (self::saveFile($path, $data)) ? $data : '';
        }

        return '';
    }
protected static function saveExternalFile($url, $path)
    {
        if ($data = file_get_contents($url)) {
            return (self::saveFile($path, $data)) ? $data : '';
        }

        return '';
    }
protected static function saveExternalFile ( $ url , $ path ) { if ( $ data = file_get_contents ( $ url ) ) { return ( self :: saveFile ( $ path , $ data ) ) ? $ data : '' ; } return '' ; }
Save external file.

@since 1.1.5

@param string $url  → external url
@param string $path → internal file path

@return string → file content or empty
Save external file .