1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

Merge pull request #42 from CoolGoose/patch-1

code style update
This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-10-28 06:16:10 -07:00
commit db7bf99c4c

View File

@ -33,14 +33,15 @@ abstract class DataCollector implements DataCollectorInterface
* @param $var
* @return mixed
*/
public function flattenVar($var){
public function flattenVar($var)
{
if (is_array($var)) {
foreach ($var as &$v) {
$v = $this->flattenVar($v);
}
} else if (is_object($var)) {
$var = "Object(" . get_class($var) . ")";
}else{
} else {
$var = htmlentities($var, ENT_QUOTES, 'UTF-8', false);
}
return $var;