From 71d7c11388f325ca3834ce7844288295e4b7ff07 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Mar 2019 23:31:48 +0100 Subject: [PATCH] Fix phpcs --- htdocs/debugbar/class/DataCollector/DolConfigCollector.php | 2 ++ htdocs/debugbar/class/TraceableDB.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/htdocs/debugbar/class/DataCollector/DolConfigCollector.php b/htdocs/debugbar/class/DataCollector/DolConfigCollector.php index 7e3e8bdf39d..5cc24c7ebe2 100644 --- a/htdocs/debugbar/class/DataCollector/DolConfigCollector.php +++ b/htdocs/debugbar/class/DataCollector/DolConfigCollector.php @@ -67,6 +67,7 @@ class DolConfigCollector extends ConfigCollector return $config; } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Convert an object to array * @@ -75,6 +76,7 @@ class DolConfigCollector extends ConfigCollector */ protected function object_to_array($obj) { + // phpcs:enable $_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; diff --git a/htdocs/debugbar/class/TraceableDB.php b/htdocs/debugbar/class/TraceableDB.php index 6646e34094c..0caf6c2489f 100644 --- a/htdocs/debugbar/class/TraceableDB.php +++ b/htdocs/debugbar/class/TraceableDB.php @@ -64,6 +64,7 @@ class TraceableDB extends DoliDB return $this->db->ifsql($test, $resok, $resko); } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Return datas as an array * @@ -72,6 +73,7 @@ class TraceableDB extends DoliDB */ public function fetch_row($resultset) { + // phpcs:enable return $this->db->fetch_row($resultset); }