Skip to content

Commit

Permalink
Added @throws annotations for possible exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraulle committed Aug 15, 2019
1 parent f37b8c7 commit 6edf549
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/compta/bank/class/api_bankaccounts.class.php
Expand Up @@ -184,7 +184,9 @@ public function post($request_data = null)
* @status 201
*
* @throws 401 Unauthorized: User does not have permission to configure bank accounts
* @throws 404 Not Found: Either the source or the destination bankaccount for the provided id does not exist
* @throws 422 Unprocessable Entity: Refer to detailed exception message for the cause
* @throws 500 Internal Server Error: Error(s) returned by the RDBMS
*/
public function transfer($bankaccount_from_id = 0, $bankaccount_to_id = 0, $date = null, $description = "", $amount = 0.0, $amount_to = 0.0)
{
Expand Down Expand Up @@ -283,7 +285,7 @@ public function transfer($bankaccount_from_id = 0, $bankaccount_to_id = 0, $date
$error++;
}

if (! $error)
if (!$error)
{
$this->db->commit();

Expand Down

0 comments on commit 6edf549

Please sign in to comment.