1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +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 * @param $var
* @return mixed * @return mixed
*/ */
public function flattenVar($var){ public function flattenVar($var)
{
if (is_array($var)) { if (is_array($var)) {
foreach ($var as &$v) { foreach ($var as &$v) {
$v = $this->flattenVar($v); $v = $this->flattenVar($v);
} }
} else if (is_object($var)) { } else if (is_object($var)) {
$var = "Object(" . get_class($var) . ")"; $var = "Object(" . get_class($var) . ")";
}else{ } else {
$var = htmlentities($var, ENT_QUOTES, 'UTF-8', false); $var = htmlentities($var, ENT_QUOTES, 'UTF-8', false);
} }
return $var; return $var;