test phpcs v3

This commit is contained in:
Frédéric FRANCE 2018-08-09 11:31:48 +02:00
parent b00164ca39
commit 62b83412ee
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
5 changed files with 315 additions and 319 deletions

View File

@ -295,8 +295,7 @@ class Orders extends DolibarrApi
if ($updateRes > 0) { if ($updateRes > 0) {
return $updateRes; return $updateRes;
} } else {
else {
throw new RestException(400, $this->commande->error); throw new RestException(400, $this->commande->error);
} }
} }
@ -391,9 +390,7 @@ class Orders extends DolibarrApi
$updateRes = $this->commande->deleteline(DolibarrApiAccess::$user,$lineid); $updateRes = $this->commande->deleteline(DolibarrApiAccess::$user,$lineid);
if ($updateRes > 0) { if ($updateRes > 0) {
return $this->get($id); return $this->get($id);
} } else {
else
{
throw new RestException(405, $this->commande->error); throw new RestException(405, $this->commande->error);
} }
} }
@ -785,7 +782,7 @@ class Orders extends DolibarrApi
$commande = array(); $commande = array();
foreach (Orders::$FIELDS as $field) { foreach (Orders::$FIELDS as $field) {
if (!isset($data[$field])) if (!isset($data[$field]))
throw new RestException(400, "$field field missing"); throw new RestException(400, $field ." field missing");
$commande[$field] = $data[$field]; $commande[$field] = $data[$field];
} }

View File

@ -2071,4 +2071,3 @@ if (! function_exists("llxFooter"))
print "</html>\n"; print "</html>\n";
} }
} }