Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-02-08 23:53:40 +01:00
parent 7625eb7cd4
commit 5483856543
2 changed files with 1 additions and 2 deletions

View File

@ -271,7 +271,7 @@ class HookManager
{
$error++;
$this->error=$actionclassinstance->error; $this->errors=array_merge($this->errors, (array) $actionclassinstance->errors);
dol_syslog("Error on hook module=".$module.", method ".$method.", class ".get_class($actionclassinstance).", hooktype=".$hooktype.(empty($this->error)?'':" ".$this->error).(empty($this->errors)?'':" ".join(",",$this->errors)), LOG_ERR);
dol_syslog("Error on hook module=".$module.", method ".$method.", class ".get_class($actionclassinstance).", hooktype=".$hooktype.(empty($this->error)?'':" ".$this->error).(empty($this->errors)?'':" ".join(",", $this->errors)), LOG_ERR);
}
// TODO dead code to remove (do not enable this, but fix hook instead): result must not be a string but an int. you must use $actionclassinstance->resprints to return a string
if (! is_array($resaction) && ! is_numeric($resaction))

View File

@ -84,5 +84,4 @@ class ActionsTakePos
return 0; // or return 1 to replace standard code
}
}