Fix phpcs
This commit is contained in:
parent
f22e4980fe
commit
71d7c11388
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user