Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-06-20 18:46:49 +02:00
parent 871ba8d08c
commit 3a0f950ad0

View File

@ -225,12 +225,9 @@ class Mos extends DolibarrApi
$this->mo->$field = $value; $this->mo->$field = $value;
} }
if ($this->mo->update($id, DolibarrApiAccess::$user) > 0) if ($this->mo->update($id, DolibarrApiAccess::$user) > 0) {
{
return $this->get($id); return $this->get($id);
} } else {
else
{
throw new RestException(500, $this->mo->error); throw new RestException(500, $this->mo->error);
} }
} }