@@ -240,7 +240,7 @@ |
||
240 | 240 | } |
241 | 241 | |
242 | 242 | if ($matching_function === null) { |
243 | - throw new InvalidArgumentException("Method {$method} doesn't exist"); |
|
243 | + throw new InvalidArgumentException("method {$method} doesn't exist"); |
|
244 | 244 | } |
245 | 245 | |
246 | 246 | // asort in PHP5 reverses equals ("arsort" doen't mess up for some reason) |
@@ -488,6 +488,7 @@ discard block |
||
488 | 488 | * |
489 | 489 | * @internal |
490 | 490 | * |
491 | + * @param string $method |
|
491 | 492 | * @return array Returns a tuble of [handler, function, postHandler] |
492 | 493 | */ |
493 | 494 | private static function findFunction($method) |
@@ -522,6 +523,7 @@ discard block |
||
522 | 523 | * Handles special case: asort - In PHP5 reverses equals ("arsort" doen't mess up for some reason) |
523 | 524 | * |
524 | 525 | * @internal |
526 | + * @param string $matching_function |
|
525 | 527 | */ |
526 | 528 | private static function handleCaseAsort(&$matching_function, &$args) |
527 | 529 | { |
@@ -536,6 +538,8 @@ discard block |
||
536 | 538 | * This version of array_column returns null if the column is missing. |
537 | 539 | * |
538 | 540 | * @internal |
541 | + * @param string|null $matching_handler |
|
542 | + * @param string $matching_function |
|
539 | 543 | */ |
540 | 544 | private static function handleCaseArrayColumn(&$matching_handler, &$matching_function, &$post_handler, &$args) |
541 | 545 | { |
@@ -860,6 +864,9 @@ discard block |
||
860 | 864 | return null; |
861 | 865 | } |
862 | 866 | |
867 | + /** |
|
868 | + * @param boolean $collapse |
|
869 | + */ |
|
863 | 870 | private static function _arr_get_traverse_collection($path, $next_node, $collapse, $functions) |
864 | 871 | { |
865 | 872 | $node_depth = self::arr_depth($next_node); |
@@ -897,6 +904,10 @@ discard block |
||
897 | 904 | } |
898 | 905 | |
899 | 906 | /* arr_get: Find next node by index */ |
907 | + |
|
908 | + /** |
|
909 | + * @param integer $plug_index |
|
910 | + */ |
|
900 | 911 | private static function _arr_get_traverse_next_node_index($data, $plug_index) |
901 | 912 | { |
902 | 913 | // Adjust negative index |
@@ -979,7 +990,7 @@ discard block |
||
979 | 990 | * Partion the input based on the result of the callback function. |
980 | 991 | * |
981 | 992 | * @param array $array A collection |
982 | - * @param \Closeure $callable A callable returning true or false depending on which way to partion the element—left or right. |
|
993 | + * @param Closure $callable A callable returning true or false depending on which way to partion the element—left or right. |
|
983 | 994 | * @return array An array with two arrays—left and right: [left, right] |
984 | 995 | */ |
985 | 996 | private static function arr_partition($array, Closure $callable) |
@@ -40,10 +40,10 @@ |
||
40 | 40 | private $array; |
41 | 41 | |
42 | 42 | /** |
43 | - * The original array value |
|
44 | - * |
|
45 | - * @var array |
|
46 | - */ |
|
43 | + * The original array value |
|
44 | + * |
|
45 | + * @var array |
|
46 | + */ |
|
47 | 47 | private $original_array; |
48 | 48 | |
49 | 49 | /** |