private function applyPlugins(&$var, BasicObject &$o, $trigger)
    {
        $break_stash = $this->parse_break;

        /** @var bool Psalm bug workaround */
        $this->parse_break = false;

        $plugins = array();

        if (isset($this->plugins[$o->type][$trigger])) {
            $plugins = $this->plugins[$o->type][$trigger];
        }

        foreach ($plugins as $plugin) {
            try {
                $plugin->parse($var, $o, $trigger);
            } catch (Exception $e) {
                \trigger_error(
                    'An exception ('.\get_class($e).') was thrown in '.$e->getFile().' on line '.$e->getLine().' while executing Kint Parser Plugin "'.\get_class($plugin).'". Error message: '.$e->getMessage(),
                    E_USER_WARNING
                );
            }

            if ($this->parse_break) {
                $this->parse_break = $break_stash;

                return false;
            }
        }

        $this->parse_break = $break_stash;

        return true;
    }
private function applyPlugins(&$var, BasicObject &$o, $trigger)
    {
        $break_stash = $this->parse_break;

        /** @var bool Psalm bug workaround */
        $this->parse_break = false;

        $plugins = array();

        if (isset($this->plugins[$o->type][$trigger])) {
            $plugins = $this->plugins[$o->type][$trigger];
        }

        foreach ($plugins as $plugin) {
            try {
                $plugin->parse($var, $o, $trigger);
            } catch (Exception $e) {
                \trigger_error(
                    'An exception ('.\get_class($e).') was thrown in '.$e->getFile().' on line '.$e->getLine().' while executing Kint Parser Plugin "'.\get_class($plugin).'". Error message: '.$e->getMessage(),
                    E_USER_WARNING
                );
            }

            if ($this->parse_break) {
                $this->parse_break = $break_stash;

                return false;
            }
        }

        $this->parse_break = $break_stash;

        return true;
    }
private function applyPlugins ( & $ var , BasicObject & $ o , $ trigger ) { $ break_stash = $ this -> parse_break ; /** @var bool Psalm bug workaround */ $ this -> parse_break = false ; $ plugins = array ( ) ; if ( isset ( $ this -> plugins [ $ o -> type ] [ $ trigger ] ) ) { $ plugins = $ this -> plugins [ $ o -> type ] [ $ trigger ] ; } foreach ( $ plugins as $ plugin ) { try { $ plugin -> parse ( $ var , $ o , $ trigger ) ; } catch ( Exception $ e ) { \ trigger_error ( 'An exception (' . \ get_class ( $ e ) . ') was thrown in ' . $ e -> getFile ( ) . ' on line ' . $ e -> getLine ( ) . ' while executing Kint Parser Plugin "' . \ get_class ( $ plugin ) . '". Error message: ' . $ e -> getMessage ( ) , E_USER_WARNING ) ; } if ( $ this -> parse_break ) { $ this -> parse_break = $ break_stash ; return false ; } } $ this -> parse_break = $ break_stash ; return true ; }
Applies plugins for an object type.

@param mixed       $var     variable
@param BasicObject $o       Kint object parsed so far
@param int         $trigger The trigger to check for the plugins

@return bool Continue parsing
Applies plugins for an object type .