diff options
Diffstat (limited to 'src/phinde/Helper.php')
| -rw-r--r-- | src/phinde/Helper.php | 10 |
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; + } } ?> |
