view->escape( is_string($struct) ? $struct : var_export($struct, true) ), false); } elseif (is_array($struct)) { return $this->renderArray($struct); } elseif (is_object($struct)) { return $this->renderObject($struct); } } protected function renderArray($array) { if (empty($array)) { return '[]'; } $out = "\n"; } protected function renderObject($object) { if (0 === count((array) $object)) { return '{}'; } $out = "{}"; } }