@@ -43,13 +43,13 @@ |
||
| 43 | 43 | |
| 44 | 44 | use GanbaroDigital\MissingBits\TraceInspectors\GetCaller; |
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * work out who has called a piece of code |
|
| 48 | - * |
|
| 49 | - * @param array $filterList |
|
| 50 | - * a list of namespaces and classes to skip over |
|
| 51 | - * @return StackFrame |
|
| 52 | - */ |
|
| 46 | + /** |
|
| 47 | + * work out who has called a piece of code |
|
| 48 | + * |
|
| 49 | + * @param array $filterList |
|
| 50 | + * a list of namespaces and classes to skip over |
|
| 51 | + * @return StackFrame |
|
| 52 | + */ |
|
| 53 | 53 | function get_caller(array $filterList = []) |
| 54 | 54 | { |
| 55 | 55 | // we supply the trace |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @param mixed $item |
| 61 | 61 | * the item to examine |
| 62 | - * @return array |
|
| 62 | + * @return string[] |
|
| 63 | 63 | * the list of type(s) that this item can be |
| 64 | 64 | */ |
| 65 | 65 | public function __invoke($item) |
@@ -45,17 +45,17 @@ |
||
| 45 | 45 | use GanbaroDigital\MissingBits\ListTraversals\TraverseList; |
| 46 | 46 | use GanbaroDigital\MissingBits\ListTraversals\TraverseObject; |
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * traverse a list held in an array |
|
| 50 | - * |
|
| 51 | - * @param array $list |
|
| 52 | - * the list to walk |
|
| 53 | - * @param string $listName |
|
| 54 | - * what is the name of $list in the calling code? |
|
| 55 | - * @param callable $callable |
|
| 56 | - * what are we calling |
|
| 57 | - * @return void |
|
| 58 | - */ |
|
| 48 | + /** |
|
| 49 | + * traverse a list held in an array |
|
| 50 | + * |
|
| 51 | + * @param array $list |
|
| 52 | + * the list to walk |
|
| 53 | + * @param string $listName |
|
| 54 | + * what is the name of $list in the calling code? |
|
| 55 | + * @param callable $callable |
|
| 56 | + * what are we calling |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 59 | 59 | function traverse_array($list, $listName, callable $callable) |
| 60 | 60 | { |
| 61 | 61 | return TraverseArray::using($list, $listName, $callable); |
@@ -62,8 +62,6 @@ |
||
| 62 | 62 | * by array, we mean something that you can pass to any of PHP's |
| 63 | 63 | * array_xxx() functions |
| 64 | 64 | * |
| 65 | - * @param mixed $item |
|
| 66 | - * the item to be checked |
|
| 67 | 65 | * @return boolean |
| 68 | 66 | * TRUE if the item is an array |
| 69 | 67 | * FALSE otherwise |