From cd02bac646f42a0cb402ff2dc8240aa01f1f0fb8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 10 Feb 2016 14:56:20 +0100 Subject: rework crawler; add atom link extraction --- src/phinde/Helper.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/phinde/Helper.php') diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php index 0b98521..40ea751 100644 --- a/src/phinde/Helper.php +++ b/src/phinde/Helper.php @@ -20,5 +20,15 @@ class Helper $url ); } + + public static function addSchema($url) + { + if (substr($url, 0, 7) == 'http://' + || substr($url, 0, 8) == 'https://' + ) { + return $url; + } + return 'http://' . $url; + } } ?> -- cgit v1.2.3