@@ -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 |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | // PHP's stack trace is a little esoteric. To find all the details about |
| 90 | 90 | // a caller, we have to combine information from two stack frames. |
| 91 | - $prevFrame = $backtrace[max($index - 1,0)]; |
|
| 91 | + $prevFrame = $backtrace[max($index - 1, 0)]; |
|
| 92 | 92 | |
| 93 | 93 | // find the first backtrace entry that passes our filters |
| 94 | 94 | for ($i = $index; $i <= $maxIndex; $i++) { |