test phpcs v3
This commit is contained in:
parent
b00164ca39
commit
62b83412ee
@ -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];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2071,4 +2071,3 @@ if (! function_exists("llxFooter"))
|
|||||||
print "</html>\n";
|
print "</html>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user