@@ -55,10 +55,8 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Underscore function. |
| 58 | - |
|
| 59 | 58 | * This function is meant to work sort of like jQuery's "$()". It is a contextual catch-all type function. It works |
| 60 | 59 | * as a short-hand alias for invoke, collect, and with. |
| 61 | - |
|
| 62 | 60 | * @param callable|mixed $in |
| 63 | 61 | * @param mixed ... $_ |
| 64 | 62 | * |
@@ -136,10 +134,8 @@ discard block |
||
| 136 | 134 | * |
| 137 | 135 | * Accepts any kind of data and converts it to an array. If strict mode is on, only data that returns true from |
| 138 | 136 | * is_arrayable() will be converted to an array. Anything else will cause an InvalidArgumentException to be thrown. |
| 139 | - |
|
| 140 | 137 | * @param mixed $data Data to convert to array |
| 141 | 138 | * @param bool $strict Whether to use strict mode |
| 142 | - |
|
| 143 | 139 | * @return array |
| 144 | 140 | * |
| 145 | 141 | * @throws InvalidArgumentException |
@@ -245,12 +241,9 @@ discard block |
||
| 245 | 241 | * Provided with the requested offset, whether it be a string, an integer (positive or negative), or some type of |
| 246 | 242 | * object, this function will normalize it to a positive integer offset or, failing that, it will throw an exception. |
| 247 | 243 | * A negative offset will require either the traversable that is being indexed or its total count in order to normalize |
| 248 | - |
|
| 249 | 244 | * @param int|mixed $offset The offset to normalize |
| 250 | 245 | * @param int|array|traversable $count Either the traversable count, or the traversable itself. |
| 251 | - |
|
| 252 | 246 | * @return int |
| 253 | - |
|
| 254 | 247 | * @throws RuntimeException If offset cannot be normalized |
| 255 | 248 | * @throws InvalidArgumentException If offset is negative and count is not provided |
| 256 | 249 | */ |