@@ -12,9 +12,9 @@ |
||
| 12 | 12 | $varDump = ob_get_clean(); |
| 13 | 13 | |
| 14 | 14 | $output = '```php' . PHP_EOL |
| 15 | - . $code . PHP_EOL . PHP_EOL |
|
| 16 | - . "// outputs" . PHP_EOL |
|
| 17 | - . "//" . PHP_EOL; |
|
| 15 | + . $code . PHP_EOL . PHP_EOL |
|
| 16 | + . "// outputs" . PHP_EOL |
|
| 17 | + . "//" . PHP_EOL; |
|
| 18 | 18 | |
| 19 | 19 | foreach (explode("\n", trim($varDump)) as $line) { |
| 20 | 20 | $output .= "// {$line}" . PHP_EOL; |
@@ -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 |