From 235565901c6debf67f3eeeadc110811b6f4c153b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20SAUVAT?= Date: Fri, 24 Mar 2017 16:40:46 +0100 Subject: [PATCH] Fix typo in README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c75fb18..0a78826 100644 --- a/README.md +++ b/README.md @@ -83,13 +83,13 @@ T::Map($mapping)->transform(array('10', '1')); // array('key10', 'key1') T::Map($mapping)->transform('unknown key'); // unknown key ``` -## NormalizeUrl(string $protocol) +## NormalizeURL(string $protocol) Prepend a default protocol if not present to any url. ```php -T::NormalizeUrl('http')->transform('https://www.google.com'); // https://www.google.com -T::NormalizeUrl('http')->transform('www.google.com'); // http://www.google.com -T::NormalizeUrl('http')->transform('ssh://github.com'); // ssh://github.com -T::NormalizeUrl('ssh')->transform('github.com'); // ssh://github.com +T::NormalizeURL('http')->transform('https://www.google.com'); // https://www.google.com +T::NormalizeURL('http')->transform('www.google.com'); // http://www.google.com +T::NormalizeURL('http')->transform('ssh://github.com'); // ssh://github.com +T::NormalizeURL('ssh')->transform('github.com'); // ssh://github.com ``` ## Replace(string $search, string $replace)