src/Base/Logger/Debugger.php
public static function reduceBacktrace($trace = [], $withLineNum = false)
    {
        $traceNew = [];
        if ($withLineNum) {
            $trace = array_filter($trace, function($row) {
                return isset($row['file']) && isset($row['line']);
            });
        }
        foreach ($trace as $row) {
            if (isset($row['class']) && isset($exclude[$row['class']])) {
                if (empty($exclude[$row['class']])) {
                    continue;
                } elseif (!empty($row['function']) && in_array($row['function'], $exclude[$row['class']])) {
                    continue;
                }
            }
            $traceNew[] = $row;
        }
        return $traceNew;
    }
public static function reduceBacktrace($trace = [], $withLineNum = false)
    {
        $traceNew = [];
        if ($withLineNum) {
            $trace = array_filter($trace, function($row) {
                return isset($row['file']) && isset($row['line']);
            });
        }
        foreach ($trace as $row) {
            if (isset($row['class']) && isset($exclude[$row['class']])) {
                if (empty($exclude[$row['class']])) {
                    continue;
                } elseif (!empty($row['function']) && in_array($row['function'], $exclude[$row['class']])) {
                    continue;
                }
            }
            $traceNew[] = $row;
        }
        return $traceNew;
    }
Reduce backtrace
@param array $trace
@param bool  $withLineNum
@return array