1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-13 16:53:59 +02:00

Small fixes from #105

This commit is contained in:
Daniel St. Jules
2015-12-20 12:08:36 -08:00
parent 264eed18dd
commit b223a2c320

View File

@@ -104,7 +104,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
*
* @param string $start Delimiter marking the start of the substring
* @param string $end Delimiter marketing the end of the substring
* @param string $offset Index from which to begin the search
* @param int $offset Index from which to begin the search
* @return Stringy Object whose $str has been converted to an URL slug
*/
public function between($start, $end, $offset = 0)
@@ -890,7 +890,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
* @param string $padStr String used to pad, defaults to space
* @param string $padType One of 'left', 'right', 'both'
* @return Stringy Object with a padded $str
* @throws InvalidArgumentException If $padType isn't one of 'right',
* @throws /InvalidArgumentException If $padType isn't one of 'right',
* 'left' or 'both'
*/
public function pad($length, $padStr = ' ', $padType = 'right')