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

code style update

This commit is contained in:
Alexandru Bucur 2013-10-28 10:59:18 +02:00
parent 9b0cfc40ab
commit 87ec3862de

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;