Skip to content

Commit

Permalink
Documentation updated for method wrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
royvanv committed Jun 26, 2017
1 parent 78e81f8 commit 6812b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Text::toWords('aCow', null); //=> 'a Cow'

### `wrap(string $text, string $before, string $after = null): string`

Wrap a text with a prefix and a (different) suffix.
Wrap a text with a prefix and a (different) suffix. If the suffix is empty the prefix is also used as the suffix.

```php
Text::wrap('directory', '/'); //=> '/directory/'
Expand Down
2 changes: 1 addition & 1 deletion src/Vendeka/Text/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function finish($value, $cap)
}

/**
* Wrap a text with a prefix and a (different) suffix.
* Wrap a text with a prefix and a (different) suffix. If the suffix is empty the prefix is also used as the suffix.
*
* @param string $text
* @param string $before
Expand Down

0 comments on commit 6812b42

Please sign in to comment.