| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | private function getBactrace() |
||
| 29 | { |
||
| 30 | //TODO: format args using ValueExporter() class |
||
| 31 | $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
||
| 32 | |||
| 33 | foreach ($backtrace as $key => $debug) { |
||
| 34 | if (!isset($debug['class'])) { |
||
| 35 | continue; |
||
| 36 | } |
||
| 37 | |||
| 38 | if (!$this->isInternalClass($debug['class'])) { |
||
| 39 | return array_slice($backtrace, $key - 1, 10); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | return array(); |
||
| 44 | } |
||
| 45 | |||
| 51 |