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:
parent
9b0cfc40ab
commit
87ec3862de
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user