src/Zicht/Bundle/FrameworkExtraBundle/Twig/Extension.php
public function dump($var, $mode = null)
    {
        if (null === $mode && class_exists('Zicht\Util\Debug')) {
            return htmlspecialchars(Debug::dump($var));
        } else {
            switch ($mode) {
                case 'export':
                    VarDumper::dump($var);
                    break;
                default:
                    var_dump($var);
                    break;
            }
        }
        return null;
    }
public function dump($var, $mode = null)
    {
        if (null === $mode && class_exists('Zicht\Util\Debug')) {
            return htmlspecialchars(Debug::dump($var));
        } else {
            switch ($mode) {
                case 'export':
                    VarDumper::dump($var);
                    break;
                default:
                    var_dump($var);
                    break;
            }
        }
        return null;
    }
public function dump ( $ var , $ mode = null ) { if ( null === $ mode && class_exists ( 'Zicht\Util\Debug' ) ) { return htmlspecialchars ( Debug :: dump ( $ var ) ) ; } else { switch ( $ mode ) { case 'export' : VarDumper :: dump ( $ var ) ; break ; default : var_dump ( $ var ) ; break ; } } return null ; }
Dumps given variable in styled format

@param mixed $var
@param string $mode
@return mixed
Dumps given variable in styled format