From 87ec3862deaf44886058da3f76df4e98b3d3798e Mon Sep 17 00:00:00 2001 From: Alexandru Bucur Date: Mon, 28 Oct 2013 10:59:18 +0200 Subject: [PATCH] code style update --- src/DebugBar/DataCollector/DataCollector.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;