src/Debug/Debug.php
public function groupEnd($value = \bdk\Debug\Abstracter::UNDEFINED)
    {
        $args = \func_get_args();
        $meta = $this->internal->getMetaVals(
            $args,
            array('channel' => $this->cfg['channel']),
            array('value' => \bdk\Debug\Abstracter::UNDEFINED)
        );
        \extract($args);
        $groupStackWas = $this->rootInstance->groupStackRef;
        $appendLog = false;
        if ($groupStackWas && \end($groupStackWas)['collect'] == $this->cfg['collect']) {
            \array_pop($this->rootInstance->groupStackRef);
            $appendLog = $this->cfg['collect'];
        }
        if ($appendLog && $value !== \bdk\Debug\Abstracter::UNDEFINED) {
            $this->appendLog(
                'groupEndValue',
                array('return', $value),
                $meta
            );
        }
        if ($this->data['groupPriorityStack'] && !$groupStackWas) {
            // we're closing a summary group
            $priorityClosing = \array_pop($this->data['groupPriorityStack']);
            // not really necessary to remove this empty placeholder, but lets keep things tidy
            unset($this->data['groupStacks'][$priorityClosing]);
            $this->setLogDest('auto');
            /*
                Publish the debug.log event (regardless of cfg.collect)
                don't actually log
            */
            $meta['closesSummary'] = true;
            $this->internal->publishBubbleEvent(
                'debug.log',
                $this,
                array(
                    'method' => __FUNCTION__,
                    'args' => array(),
                    'meta' => $meta,
                )
            );
        } elseif ($appendLog) {
            $this->appendLog('groupEnd', array(), $meta);
        }
        $errorCaller = $this->errorHandler->get('errorCaller');
        if ($errorCaller && isset($errorCaller['groupDepth']) && $this->getGroupDepth() < $errorCaller['groupDepth']) {
            $this->errorHandler->setErrorCaller(false);
        }
    }
public function groupEnd($value = \bdk\Debug\Abstracter::UNDEFINED)
    {
        $args = \func_get_args();
        $meta = $this->internal->getMetaVals(
            $args,
            array('channel' => $this->cfg['channel']),
            array('value' => \bdk\Debug\Abstracter::UNDEFINED)
        );
        \extract($args);
        $groupStackWas = $this->rootInstance->groupStackRef;
        $appendLog = false;
        if ($groupStackWas && \end($groupStackWas)['collect'] == $this->cfg['collect']) {
            \array_pop($this->rootInstance->groupStackRef);
            $appendLog = $this->cfg['collect'];
        }
        if ($appendLog && $value !== \bdk\Debug\Abstracter::UNDEFINED) {
            $this->appendLog(
                'groupEndValue',
                array('return', $value),
                $meta
            );
        }
        if ($this->data['groupPriorityStack'] && !$groupStackWas) {
            // we're closing a summary group
            $priorityClosing = \array_pop($this->data['groupPriorityStack']);
            // not really necessary to remove this empty placeholder, but lets keep things tidy
            unset($this->data['groupStacks'][$priorityClosing]);
            $this->setLogDest('auto');
            /*
                Publish the debug.log event (regardless of cfg.collect)
                don't actually log
            */
            $meta['closesSummary'] = true;
            $this->internal->publishBubbleEvent(
                'debug.log',
                $this,
                array(
                    'method' => __FUNCTION__,
                    'args' => array(),
                    'meta' => $meta,
                )
            );
        } elseif ($appendLog) {
            $this->appendLog('groupEnd', array(), $meta);
        }
        $errorCaller = $this->errorHandler->get('errorCaller');
        if ($errorCaller && isset($errorCaller['groupDepth']) && $this->getGroupDepth() < $errorCaller['groupDepth']) {
            $this->errorHandler->setErrorCaller(false);
        }
    }
Close current group

@param mixed $value Value

@return void