diff --git a/src/DebugBar/DataCollector/DataCollector.php b/src/DebugBar/DataCollector/DataCollector.php index 01ca81d..54f1d8b 100644 --- a/src/DebugBar/DataCollector/DataCollector.php +++ b/src/DebugBar/DataCollector/DataCollector.php @@ -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;