@@ -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 |
@@ -52,7 +52,8 @@ discard block |
||
52 | 52 | * the unmodified $key if it is not a string |
53 | 53 | * the quoted $key if it is a string |
54 | 54 | */ |
55 | -function quote_index($key) { |
|
55 | +function quote_index($key) |
|
56 | +{ |
|
56 | 57 | if (!is_string($key)) { |
57 | 58 | return $key; |
58 | 59 | } |
@@ -68,7 +69,8 @@ discard block |
||
68 | 69 | * the property name to add braces to (if required) |
69 | 70 | * @return string |
70 | 71 | */ |
71 | -function quote_property($propertyName) { |
|
72 | +function quote_property($propertyName) |
|
73 | +{ |
|
72 | 74 | // robustness! |
73 | 75 | if (!is_stringy($propertyName)) { |
74 | 76 | throw new InvalidArgumentException('$propertyName is not a valid class or object property name'); |