Skip to content

Commit

Permalink
Fix typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi SAUVAT committed Mar 24, 2017
1 parent ac49b73 commit 2355659
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2355659

Please sign in to comment.