Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Sauvat committed Mar 29, 2017
2 parents f79f96c + 2355659 commit 8ee2623
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 8ee2623

Please sign in to comment.