From 3a0f950ad072f93743e7a1690be838bf788f774c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Jun 2020 18:46:49 +0200 Subject: [PATCH] Fix phpcs --- htdocs/mrp/class/api_mos.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/htdocs/mrp/class/api_mos.class.php b/htdocs/mrp/class/api_mos.class.php index 963da439180..9dcb26149ef 100644 --- a/htdocs/mrp/class/api_mos.class.php +++ b/htdocs/mrp/class/api_mos.class.php @@ -225,12 +225,9 @@ class Mos extends DolibarrApi $this->mo->$field = $value; } - if ($this->mo->update($id, DolibarrApiAccess::$user) > 0) - { + if ($this->mo->update($id, DolibarrApiAccess::$user) > 0) { return $this->get($id); - } - else - { + } else { throw new RestException(500, $this->mo->error); } }