@@ -184,6 +184,10 @@ discard block |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | /* Wraps a callable with the purpose of fixing bad PHP sort implementations */ |
187 | + |
|
188 | + /** |
|
189 | + * @param Closure $callable |
|
190 | + */ |
|
187 | 191 | static private function wrapCallable($callable) |
188 | 192 | { |
189 | 193 | $direction = Arrgh::getSortDirection(); |
@@ -195,6 +199,10 @@ discard block |
||
195 | 199 | } |
196 | 200 | |
197 | 201 | /* Transforms the incoming calls to native calls */ |
202 | + |
|
203 | + /** |
|
204 | + * @param Arrgh $object |
|
205 | + */ |
|
198 | 206 | static private function invoke($method, $args, $object = null) |
199 | 207 | { |
200 | 208 | self::getSortDirection(); |
@@ -628,6 +636,7 @@ discard block |
||
628 | 636 | * |
629 | 637 | * @param array A collection |
630 | 638 | * @param callable A callable returning true or false depending on which way to partion the element—left or right. |
639 | + * @param Closure $callable |
|
631 | 640 | * @return [left, right] An array with two arrays—left and right. |
632 | 641 | */ |
633 | 642 | static private function arrgh_partition($array, $callable) |