@@ -250,6 +250,10 @@ discard block |
||
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | /* Transforms the incoming calls to native calls */ |
| 253 | + |
|
| 254 | + /** |
|
| 255 | + * @param Arrgh $object |
|
| 256 | + */ |
|
| 253 | 257 | private static function invoke($method, $args, $object = null) |
| 254 | 258 | { |
| 255 | 259 | self::getSortDirection(); |
@@ -318,6 +322,11 @@ discard block |
||
| 318 | 322 | } |
| 319 | 323 | |
| 320 | 324 | /* Handles special case: asort - In PHP5 reverses equals ("arsort" doen't mess up for some reason) */ |
| 325 | + |
|
| 326 | + /** |
|
| 327 | + * @param string|null $matching_handler |
|
| 328 | + * @param string $matching_function |
|
| 329 | + */ |
|
| 321 | 330 | private static function handleCaseAsort(&$matching_handler, &$matching_function, &$post_handler, &$args) |
| 322 | 331 | { |
| 323 | 332 | $matching_function = "uasort"; |
@@ -327,6 +336,11 @@ discard block |
||
| 327 | 336 | /* Handles special case: array_column - Native array_column filters away null values. |
| 328 | 337 | * That means you cannot use array_column for multisort since array size no longer matches. |
| 329 | 338 | * This version of array_column returns null if the column is missing. */ |
| 339 | + |
|
| 340 | + /** |
|
| 341 | + * @param string|null $matching_handler |
|
| 342 | + * @param string $matching_function |
|
| 343 | + */ |
|
| 330 | 344 | private static function handleCaseArrayColumn(&$matching_handler, &$matching_function, &$post_handler, &$args) |
| 331 | 345 | { |
| 332 | 346 | $matching_handler = "_rotateRight"; |
@@ -682,7 +696,7 @@ discard block |
||
| 682 | 696 | * Partion the input based on the result of the callback function. |
| 683 | 697 | * |
| 684 | 698 | * @param array $array A collection |
| 685 | - * @param \Closeure $callable A callable returning true or false depending on which way to partion the element—left or right. |
|
| 699 | + * @param Closure $callable A callable returning true or false depending on which way to partion the element—left or right. |
|
| 686 | 700 | * @return array An array with two arrays—left and right: [left, right] |
| 687 | 701 | */ |
| 688 | 702 | private static function arr_partition($array, Closure $callable) |