fix tab indentation

This commit is contained in:
pascal
2023-09-26 18:43:25 +02:00
parent 871f896962
commit 80f060c771
36 changed files with 508 additions and 509 deletions

View File

@@ -58,9 +58,9 @@ class Orders extends DolibarrApi
*
* @param int $id ID of order
* @param int $contact_list 0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id
* @return array|mixed data without useless information
* @return array|mixed data without useless information
*
* @throws RestException
* @throws RestException
*/
public function get($id, $contact_list = 1)
{
@@ -74,11 +74,11 @@ class Orders extends DolibarrApi
*
* @param string $ref Ref of object
* @param int $contact_list 0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id
* @return array|mixed data without useless information
* @return array|mixed data without useless information
*
* @url GET ref/{ref}
*
* @throws RestException
* @throws RestException
*/
public function getByRef($ref, $contact_list = 1)
{
@@ -92,11 +92,11 @@ class Orders extends DolibarrApi
*
* @param string $ref_ext External reference of object
* @param int $contact_list 0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id
* @return array|mixed data without useless information
* @return array|mixed data without useless information
*
* @url GET ref_ext/{ref_ext}
*
* @throws RestException
* @throws RestException
*/
public function getByRefExt($ref_ext, $contact_list = 1)
{
@@ -108,13 +108,13 @@ class Orders extends DolibarrApi
*
* Return an array with order informations
*
* @param int $id ID of order
* @param int $id ID of order
* @param string $ref Ref of object
* @param string $ref_ext External reference of object
* @param int $contact_list 0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id
* @return Object Object with cleaned properties
* @param int $contact_list 0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id
* @return Object Object with cleaned properties
*
* @throws RestException
* @throws RestException
*/
private function _fetch($id, $ref = '', $ref_ext = '', $contact_list = 1)
{
@@ -150,11 +150,11 @@ class Orders extends DolibarrApi
*
* Get a list of orders
*
* @param string $sortfield Sort field
* @param string $sortorder Sort order
* @param int $limit Limit for list
* @param int $page Page number
* @param string $thirdparty_ids Thirdparty ids to filter orders of (example '1' or '1,2,3') {@pattern /^[0-9,]*$/i}
* @param string $sortfield Sort field
* @param string $sortorder Sort order
* @param int $limit Limit for list
* @param int $page Page number
* @param string $thirdparty_ids Thirdparty ids to filter orders of (example '1' or '1,2,3') {@pattern /^[0-9,]*$/i}
* @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.date_creation:<:'20160101')"
* @param string $properties Restrict the data returned to theses properties. Ignored if empty. Comma separated list of properties names
* @return array Array of order objects
@@ -392,9 +392,9 @@ class Orders extends DolibarrApi
/**
* Update a line to given order
*
* @param int $id Id of order to update
* @param int $lineid Id of line to update
* @param array $request_data OrderLine data
* @param int $id Id of order to update
* @param int $lineid Id of line to update
* @param array $request_data OrderLine data
* @return Object|false Object with cleaned properties
*
* @url PUT {id}/lines/{lineid}
@@ -458,8 +458,8 @@ class Orders extends DolibarrApi
/**
* Delete a line of a given order
*
* @param int $id Id of order to update
* @param int $lineid Id of line to delete
* @param int $id Id of order to update
* @param int $lineid Id of line to delete
* @return Object Object with cleaned properties
*
* @url DELETE {id}/lines/{lineid}
@@ -495,13 +495,13 @@ class Orders extends DolibarrApi
*
* Return an array with contact informations
*
* @param int $id ID of order
* @param string $type Type of the contact (BILLING, SHIPPING, CUSTOMER)
* @param int $id ID of order
* @param string $type Type of the contact (BILLING, SHIPPING, CUSTOMER)
* @return Object Object with cleaned properties
*
* @url GET {id}/contacts
*
* @throws RestException
* @throws RestException
*/
public function getContacts($id, $type = '')
{
@@ -622,8 +622,8 @@ class Orders extends DolibarrApi
/**
* Update order general fields (won't touch lines of order)
*
* @param int $id Id of order to update
* @param array $request_data Datas
* @param int $id Id of order to update
* @param array $request_data Datas
* @return Object Object with cleaned properties
*/
public function put($id, $request_data = null)
@@ -792,7 +792,7 @@ class Orders extends DolibarrApi
/**
* Classify the order as invoiced. Could be also called setbilled
*
* @param int $id Id of the order
* @param int $id Id of the order
* @return Object Object with cleaned properties
*
* @url POST {id}/setinvoiced
@@ -884,7 +884,7 @@ class Orders extends DolibarrApi
* Set an order to draft
*
* @param int $id Order ID
* @param int $idwarehouse Warehouse ID to use for stock change (Used only if option STOCK_CALCULATE_ON_VALIDATE_ORDER is on)
* @param int $idwarehouse Warehouse ID to use for stock change (Used only if option STOCK_CALCULATE_ON_VALIDATE_ORDER is on)
* @return Object Object with cleaned properties
*
* @url POST {id}/settodraft
@@ -1108,4 +1108,3 @@ class Orders extends DolibarrApi
return $commande;
}
}