From 202448d1812fbff256ff723ba8d7715f63e69d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 16 Mar 2019 20:30:57 +0100 Subject: [PATCH] phpcs fix --- .../class/DataCollector/DolConfigCollector.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/debugbar/class/DataCollector/DolConfigCollector.php b/htdocs/debugbar/class/DataCollector/DolConfigCollector.php index c11355bf8b4..86007cbf2dd 100644 --- a/htdocs/debugbar/class/DataCollector/DolConfigCollector.php +++ b/htdocs/debugbar/class/DataCollector/DolConfigCollector.php @@ -54,8 +54,8 @@ class DolConfigCollector extends ConfigCollector $config = array( 'Dolibarr' => array( 'const' => $const['user'], - '$conf' => $this->object_to_array($conf), - '$user' => $this->object_to_array($user) + '$conf' => $this->objectToArray($conf), + '$user' => $this->objectToArray($user) ), 'PHP' => array( 'version' => PHP_VERSION, @@ -72,14 +72,14 @@ class DolConfigCollector extends ConfigCollector * * @return array Array */ - protected function object_to_array($obj) + protected function objectToArray($obj) { $_arr = is_object($obj) ? get_object_vars($obj) : $obj; foreach ($_arr as $key => $val) { - $val = (is_array($val) || is_object($val)) ? $this->object_to_array($val) : $val; + $val = (is_array($val) || is_object($val)) ? $this->objectToArray($val) : $val; $arr[$key] = $val; } return $arr; } -} \ No newline at end of file +}