Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-03-16 23:31:48 +01:00
parent f22e4980fe
commit 71d7c11388
2 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class DolConfigCollector extends ConfigCollector
return $config; return $config;
} }
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Convert an object to array * Convert an object to array
* *
@ -75,6 +76,7 @@ class DolConfigCollector extends ConfigCollector
*/ */
protected function object_to_array($obj) protected function object_to_array($obj)
{ {
// phpcs:enable
$_arr = is_object($obj) ? get_object_vars($obj) : $obj; $_arr = is_object($obj) ? get_object_vars($obj) : $obj;
foreach ($_arr as $key => $val) { 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->object_to_array($val) : $val;

View File

@ -64,6 +64,7 @@ class TraceableDB extends DoliDB
return $this->db->ifsql($test, $resok, $resko); return $this->db->ifsql($test, $resok, $resko);
} }
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Return datas as an array * Return datas as an array
* *
@ -72,6 +73,7 @@ class TraceableDB extends DoliDB
*/ */
public function fetch_row($resultset) public function fetch_row($resultset)
{ {
// phpcs:enable
return $this->db->fetch_row($resultset); return $this->db->fetch_row($resultset);
} }