aboutsummaryrefslogtreecommitdiff
path: root/src/phinde/Helper.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-02-10 14:56:20 +0100
committerChristian Weiske <cweiske@cweiske.de>2016-02-10 14:56:20 +0100
commitcd02bac646f42a0cb402ff2dc8240aa01f1f0fb8 (patch)
tree8cc7ee5d841f868e38ccc0b54d8cc6d33a852ed7 /src/phinde/Helper.php
parentf67e8f0bc3f51f2d280a86a8c7cffa68d812efe1 (diff)
downloadphinde-cd02bac646f42a0cb402ff2dc8240aa01f1f0fb8.tar.gz
phinde-cd02bac646f42a0cb402ff2dc8240aa01f1f0fb8.zip
rework crawler; add atom link extraction
Diffstat (limited to 'src/phinde/Helper.php')
-rw-r--r--src/phinde/Helper.php10
1 files changed, 10 insertions, 0 deletions
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;
+ }
}
?>