From 53c8a3acf8f488c382ebedb430177558ff728f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 1 Dec 2023 19:51:32 +0100 Subject: [PATCH] clean phpdoc for phpstan (#26905) --- .../class/accountancycategory.class.php | 16 +++--- .../class/accountingaccount.class.php | 10 ++-- .../class/accountingjournal.class.php | 10 ++-- .../accountancy/class/bookkeeping.class.php | 32 +++++------ htdocs/adherents/class/adherent.class.php | 28 +++++----- .../adherents/class/adherent_type.class.php | 8 +-- htdocs/adherents/class/subscription.class.php | 4 +- htdocs/asset/class/asset.class.php | 18 +++--- .../class/assetaccountancycodes.class.php | 4 +- .../class/assetdepreciationoptions.class.php | 8 +-- htdocs/asset/class/assetmodel.class.php | 12 ++-- htdocs/blockedlog/class/authority.class.php | 6 +- htdocs/blockedlog/class/blockedlog.class.php | 2 +- htdocs/bom/class/bom.class.php | 26 ++++----- htdocs/bookcal/class/availabilities.class.php | 12 ++-- htdocs/bookcal/class/calendar.class.php | 12 ++-- htdocs/bookmarks/class/bookmark.class.php | 4 +- htdocs/categories/class/categorie.class.php | 10 ++-- htdocs/comm/action/class/actioncomm.class.php | 12 ++-- .../action/class/actioncommreminder.class.php | 8 +-- .../mailing/class/advtargetemailing.class.php | 18 +++--- htdocs/comm/mailing/class/mailing.class.php | 10 ++-- htdocs/comm/propal/class/propal.class.php | 26 ++++----- htdocs/commande/class/commande.class.php | 28 +++++----- htdocs/compta/bank/class/account.class.php | 20 +++---- htdocs/compta/bank/class/bankcateg.class.php | 8 +-- .../bank/class/paymentvarious.class.php | 10 ++-- .../cashcontrol/class/cashcontrol.class.php | 10 ++-- .../deplacement/class/deplacement.class.php | 8 +-- .../facture/class/facture-rec.class.php | 16 +++--- htdocs/compta/facture/class/facture.class.php | 46 +++++++-------- .../facture/class/paymentterm.class.php | 10 ++-- .../compta/localtax/class/localtax.class.php | 10 ++-- .../cheque/class/remisecheque.class.php | 10 ++-- .../compta/paiement/class/cpaiement.class.php | 8 +-- .../compta/paiement/class/paiement.class.php | 14 ++--- .../class/bonprelevement.class.php | 2 +- .../sociales/class/cchargesociales.class.php | 8 +-- .../sociales/class/chargesociales.class.php | 14 ++--- .../class/paymentsocialcontribution.class.php | 8 +-- htdocs/compta/tva/class/paymentvat.class.php | 8 +-- htdocs/compta/tva/class/tva.class.php | 16 +++--- htdocs/contact/class/contact.class.php | 18 +++--- htdocs/contrat/class/contrat.class.php | 32 +++++------ htdocs/core/boxes/modules_boxes.php | 2 +- htdocs/core/class/ccountry.class.php | 6 +- htdocs/core/class/cgenericdic.class.php | 10 ++-- htdocs/core/class/comment.class.php | 6 +- htdocs/core/class/commonincoterm.class.php | 2 +- htdocs/core/class/commoninvoice.class.php | 4 +- htdocs/core/class/commonobject.class.php | 56 +++++++++---------- htdocs/core/class/commonobjectline.class.php | 2 +- htdocs/core/class/cproductnature.class.php | 8 +-- htdocs/core/class/cregion.class.php | 6 +- htdocs/core/class/cstate.class.php | 8 +-- htdocs/core/class/ctypent.class.php | 8 +-- htdocs/core/class/ctyperesource.class.php | 10 ++-- htdocs/core/class/cunits.class.php | 8 +-- htdocs/core/class/defaultvalues.class.php | 8 +-- htdocs/core/class/discount.class.php | 8 +-- .../core/class/emailsenderprofile.class.php | 10 ++-- htdocs/core/class/events.class.php | 8 +-- htdocs/core/class/fiscalyear.class.php | 8 +-- htdocs/core/class/html.formfile.class.php | 2 +- htdocs/core/class/html.formorder.class.php | 2 +- htdocs/core/class/ldap.class.php | 18 +++--- htdocs/core/class/menubase.class.php | 6 +- htdocs/core/class/rssparser.class.php | 2 +- htdocs/core/class/timespent.class.php | 10 ++-- htdocs/core/class/utils.class.php | 4 +- htdocs/core/db/Database.interface.php | 6 +- htdocs/core/db/mysqli.class.php | 6 +- htdocs/core/db/pgsql.class.php | 6 +- htdocs/core/db/sqlite3.class.php | 6 +- htdocs/core/lib/admin.lib.php | 6 +- htdocs/core/lib/files.lib.php | 4 +- htdocs/core/lib/functions2.lib.php | 2 +- htdocs/core/lib/security2.lib.php | 2 +- htdocs/core/lib/sendings.lib.php | 2 +- htdocs/core/lib/website.lib.php | 2 +- .../barcode/doc/phpbarcode.modules.php | 4 +- .../barcode/doc/tcpdfbarcode.modules.php | 4 +- .../modules/cheque/modules_chequereceipts.php | 2 +- .../commande/doc/pdf_einstein.modules.php | 2 +- .../commande/doc/pdf_eratosthene.modules.php | 2 +- .../doc/pdf_standard.modules.php | 2 +- .../modules/export/export_csviso.modules.php | 4 +- .../modules/export/export_csvutf8.modules.php | 4 +- .../export/export_excel2007.modules.php | 10 ++-- .../modules/export/export_tsv.modules.php | 10 ++-- .../core/modules/export/exportcsv.class.php | 10 ++-- .../modules/facture/doc/pdf_crabe.modules.php | 2 +- .../facture/doc/pdf_sponge.modules.php | 2 +- .../modules/import/import_csv.modules.php | 2 +- .../modules/import/import_xlsx.modules.php | 2 +- htdocs/core/modules/member/modules_cards.php | 2 +- .../modules/mrp/doc/pdf_vinci.modules.php | 2 +- .../modules/printsheet/modules_labels.php | 2 +- .../modules/propale/doc/pdf_azur.modules.php | 2 +- .../modules/propale/doc/pdf_cyan.modules.php | 2 +- .../modules/rapport/pdf_paiement.class.php | 2 +- .../doc/pdf_eagle_proforma.modules.php | 2 +- .../doc/pdf_canelle.modules.php | 2 +- .../supplier_order/doc/pdf_cornas.modules.php | 2 +- .../doc/pdf_muscadet.modules.php | 2 +- .../doc/pdf_aurore.modules.php | 2 +- .../doc/pdf_zenith.modules.php | 2 +- htdocs/cron/class/cronjob.class.php | 16 +++--- htdocs/debugbar/class/TraceableDB.php | 6 +- htdocs/delivery/class/delivery.class.php | 8 +-- htdocs/don/class/don.class.php | 12 ++-- htdocs/don/class/paymentdonation.class.php | 8 +-- htdocs/ecm/class/ecmdirectory.class.php | 12 ++-- htdocs/ecm/class/ecmfiles.class.php | 10 ++-- .../class/emailcollector.class.php | 16 +++--- .../class/emailcollectoraction.class.php | 8 +-- .../class/emailcollectorfilter.class.php | 8 +-- .../class/conferenceorbooth.class.php | 10 ++-- .../class/conferenceorboothattendee.class.php | 12 ++-- htdocs/expedition/class/expedition.class.php | 18 +++--- .../class/expensereport.class.php | 38 ++++++------- .../class/expensereport_ik.class.php | 8 +-- .../class/expensereport_rule.class.php | 10 ++-- .../class/paymentexpensereport.class.php | 8 +-- htdocs/exports/class/export.class.php | 10 ++-- htdocs/fichinter/class/fichinter.class.php | 26 ++++----- htdocs/fichinter/class/fichinterrec.class.php | 12 ++-- htdocs/fourn/class/fournisseur.class.php | 2 +- .../class/fournisseur.commande.class.php | 30 +++++----- .../fournisseur.commande.dispatch.class.php | 10 ++-- .../class/fournisseur.facture-rec.class.php | 16 +++--- .../fourn/class/fournisseur.facture.class.php | 20 +++---- .../fourn/class/fournisseur.product.class.php | 4 +- htdocs/fourn/class/paiementfourn.class.php | 2 +- htdocs/holiday/class/holiday.class.php | 18 +++--- htdocs/hrm/class/establishment.class.php | 6 +- htdocs/hrm/class/evaluation.class.php | 12 ++-- htdocs/hrm/class/evaluationdet.class.php | 12 ++-- htdocs/hrm/class/job.class.php | 12 ++-- htdocs/hrm/class/position.class.php | 12 ++-- htdocs/hrm/class/skill.class.php | 10 ++-- htdocs/hrm/class/skilldet.class.php | 12 ++-- htdocs/hrm/class/skillrank.class.php | 12 ++-- htdocs/imports/class/import.class.php | 10 ++-- htdocs/install/inc.php | 2 +- htdocs/install/lib/repair.lib.php | 2 +- htdocs/install/upgrade2.php | 4 +- .../class/intracommreport.class.php | 4 +- .../class/knowledgerecord.class.php | 14 ++--- htdocs/loan/class/loan.class.php | 10 ++-- htdocs/loan/class/loanschedule.class.php | 8 +-- htdocs/loan/class/paymentloan.class.php | 8 +-- .../template/class/myobject.class.php | 12 ++-- htdocs/mrp/class/mo.class.php | 22 ++++---- .../class/multicurrency.class.php | 22 ++++---- .../class/opensurveysondage.class.php | 10 ++-- .../partnership/class/partnership.class.php | 10 ++-- .../class/partnership_type.class.php | 8 +-- htdocs/product/class/product.class.php | 30 +++++----- htdocs/product/class/productbatch.class.php | 10 ++-- .../class/productcustomerprice.class.php | 12 ++-- .../class/productfournisseurprice.class.php | 10 ++-- .../class/propalmergepdfproduct.class.php | 14 ++--- .../class/price_expression.class.php | 6 +- .../class/price_global_variable.class.php | 6 +- .../price_global_variable_updater.class.php | 10 ++-- .../inventory/class/inventory.class.php | 28 +++++----- htdocs/product/stock/class/entrepot.class.php | 4 +- .../stock/class/mouvementstock.class.php | 8 +-- .../product/stock/class/productlot.class.php | 8 +-- .../class/productstockentrepot.class.php | 8 +-- .../class/stocktransfer.class.php | 12 ++-- .../class/stocktransferline.class.php | 12 ++-- htdocs/projet/class/project.class.php | 6 +- htdocs/projet/class/task.class.php | 12 ++-- htdocs/reception/class/reception.class.php | 8 +-- .../class/recruitmentcandidature.class.php | 12 ++-- .../class/recruitmentjobposition.class.php | 14 ++--- htdocs/resource/class/dolresource.class.php | 12 ++-- htdocs/salaries/class/paymentsalary.class.php | 8 +-- htdocs/salaries/class/salary.class.php | 16 +++--- htdocs/societe/class/client.class.php | 4 +- .../class/companybankaccount.class.php | 4 +- .../class/companypaymentmode.class.php | 10 ++-- htdocs/societe/class/societe.class.php | 28 +++++----- htdocs/societe/class/societeaccount.class.php | 10 ++-- .../class/supplier_proposal.class.php | 18 +++--- htdocs/support/inc.php | 2 +- htdocs/ticket/class/actions_ticket.class.php | 2 +- htdocs/ticket/class/cticketcategory.class.php | 10 ++-- htdocs/ticket/class/ticket.class.php | 20 +++---- htdocs/user/class/user.class.php | 20 +++---- htdocs/user/class/userbankaccount.class.php | 4 +- htdocs/user/class/usergroup.class.php | 2 +- .../variants/class/ProductAttribute.class.php | 6 +- .../class/ProductAttributeValue.class.php | 2 +- .../class/ProductCombination.class.php | 4 +- htdocs/webhook/class/target.class.php | 10 ++-- htdocs/website/class/website.class.php | 8 +-- htdocs/website/class/websitepage.class.php | 10 ++-- .../workstation/class/workstation.class.php | 16 +++--- htdocs/zapier/class/hook.class.php | 10 ++-- 202 files changed, 1004 insertions(+), 1004 deletions(-) diff --git a/htdocs/accountancy/class/accountancycategory.class.php b/htdocs/accountancy/class/accountancycategory.class.php index 0010120d560..208888cdf7d 100644 --- a/htdocs/accountancy/class/accountancycategory.class.php +++ b/htdocs/accountancy/class/accountancycategory.class.php @@ -153,7 +153,7 @@ class AccountancyCategory // extends CommonObject * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -252,7 +252,7 @@ class AccountancyCategory // extends CommonObject * @param int $id Id object * @param string $code Code * @param string $label Label - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $code = '', $label = '') { @@ -311,7 +311,7 @@ class AccountancyCategory // extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -392,7 +392,7 @@ class AccountancyCategory // extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -429,7 +429,7 @@ class AccountancyCategory // extends CommonObject * Function to select into ->lines_display all accounting accounts for a given custom accounting group * * @param int $id Id - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function display($id) { @@ -464,7 +464,7 @@ class AccountancyCategory // extends CommonObject * Function to fill ->lines_cptbk with accounting account (defined in chart of account) and not yet into a custom group * * @param int $id Id of category to know which account to exclude - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function getAccountsWithNoCategory($id) { @@ -508,7 +508,7 @@ class AccountancyCategory // extends CommonObject * @param int $id_cat Id category * @param array $cpts list of accounts array * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateAccAcc($id_cat, $cpts = array()) { @@ -579,7 +579,7 @@ class AccountancyCategory // extends CommonObject * * @param int $cpt_id Id of accounting account * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteCptCat($cpt_id) { diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php index 005056112f8..fd6ca803e11 100644 --- a/htdocs/accountancy/class/accountingaccount.class.php +++ b/htdocs/accountancy/class/accountingaccount.class.php @@ -249,7 +249,7 @@ class AccountingAccount extends CommonObject * * @param User $user User making action * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $notrigger = 0) { @@ -395,7 +395,7 @@ class AccountingAccount extends CommonObject /** * Check usage of accounting code * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function checkUsage() { @@ -430,7 +430,7 @@ class AccountingAccount extends CommonObject * * @param User $user User that deletes * @param int $notrigger 0=triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -619,7 +619,7 @@ class AccountingAccount extends CommonObject * * @param int $id Id * @param int $mode 0=field active, 1=field reconcilable - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function accountDeactivate($id, $mode = 0) { @@ -659,7 +659,7 @@ class AccountingAccount extends CommonObject * * @param int $id Id * @param int $mode 0=field active, 1=field reconcilable - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function accountActivate($id, $mode = 0) { diff --git a/htdocs/accountancy/class/accountingjournal.class.php b/htdocs/accountancy/class/accountingjournal.class.php index 242cf6d8752..74cdb100516 100644 --- a/htdocs/accountancy/class/accountingjournal.class.php +++ b/htdocs/accountancy/class/accountingjournal.class.php @@ -168,7 +168,7 @@ class AccountingJournal extends CommonObject * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND') { @@ -379,7 +379,7 @@ class AccountingJournal extends CommonObject * @param int $date_start Filter 'start date' * @param int $date_end Filter 'end date' * @param string $in_bookkeeping Filter 'in bookkeeping' ('already', 'notyet') - * @return array|int <0 if KO, >0 if OK + * @return array|int Return integer <0 if KO, >0 if OK */ public function getData(User $user, $type = 'view', $date_start = null, $date_end = null, $in_bookkeeping = 'notyet') { @@ -423,7 +423,7 @@ class AccountingJournal extends CommonObject * @param int $date_start Filter 'start date' * @param int $date_end Filter 'end date' * @param string $in_bookkeeping Filter 'in bookkeeping' ('already', 'notyet') - * @return array|int <0 if KO, >0 if OK + * @return array|int Return integer <0 if KO, >0 if OK */ public function getAssetData(User $user, $type = 'view', $date_start = null, $date_end = null, $in_bookkeeping = 'notyet') { @@ -778,7 +778,7 @@ class AccountingJournal extends CommonObject * ), * ); * @param int $max_nb_errors Nb error authorized before stop the process - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function writeIntoBookkeeping(User $user, &$journal_data = array(), $max_nb_errors = 10) { @@ -919,7 +919,7 @@ class AccountingJournal extends CommonObject * ); * @param int $search_date_end Search date end * @param string $sep CSV separator - * @return int|string <0 if KO, >0 if OK + * @return int|string Return integer <0 if KO, >0 if OK */ public function exportCsv(&$journal_data = array(), $search_date_end = 0, $sep = '') { diff --git a/htdocs/accountancy/class/bookkeeping.class.php b/htdocs/accountancy/class/bookkeeping.class.php index 711b6a8601a..b0e2cea6c76 100644 --- a/htdocs/accountancy/class/bookkeeping.class.php +++ b/htdocs/accountancy/class/bookkeeping.class.php @@ -218,7 +218,7 @@ class BookKeeping extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -570,7 +570,7 @@ class BookKeeping extends CommonObject * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * @param string $mode Mode - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function createStd(User $user, $notrigger = false, $mode = '') { @@ -762,7 +762,7 @@ class BookKeeping extends CommonObject * @param string $ref Ref * @param string $mode Mode * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null, $mode = '') { @@ -1046,7 +1046,7 @@ class BookKeeping extends CommonObject * @param array $filter Filter array * @param string $filtermode Filter mode (AND or OR) * @param int $showAlreadyExportMovements Show movements when field 'date_export' is not empty (0:No / 1:Yes (Default)) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND', $showAlreadyExportMovements = 1) { @@ -1197,7 +1197,7 @@ class BookKeeping extends CommonObject * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) * @param int $option option (0: aggregate by general account or 1: aggreegate by subaccount) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAllBalance($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND', $option = 0) { @@ -1307,7 +1307,7 @@ class BookKeeping extends CommonObject * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * @param string $mode Mode ('' or _tmp') - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false, $mode = '') { @@ -1452,7 +1452,7 @@ class BookKeeping extends CommonObject * @param string $field Field * @param string $value Value * @param string $mode Mode ('' or _tmp') - * @return number <0 if KO, >0 if OK + * @return number Return integer <0 if KO, >0 if OK */ public function updateByMvt($piece_num = '', $field = '', $value = '', $mode = '') { @@ -1494,7 +1494,7 @@ class BookKeeping extends CommonObject * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * @param string $mode Mode - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false, $mode = '') { @@ -1593,7 +1593,7 @@ class BookKeeping extends CommonObject * @param string $journal Journal to delete * @param string $mode Mode * @param int $delmonth Month - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteByYearAndJournal($delyear = 0, $journal = '', $mode = '', $delmonth = 0) { @@ -1778,7 +1778,7 @@ class BookKeeping extends CommonObject * * @param int $piecenum Accounting document to get * @param string $mode Mode - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchPerMvt($piecenum, $mode = '') { @@ -1858,7 +1858,7 @@ class BookKeeping extends CommonObject * * @param int $piecenum Id of line to get * @param string $mode Mode - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAllPerMvt($piecenum, $mode = '') { @@ -1992,7 +1992,7 @@ class BookKeeping extends CommonObject * * @param number $direction If 0: tmp => real, if 1: real => tmp * @param string $piece_num Piece num = Transaction ref - * @return int int <0 if KO, >0 if OK + * @return int int Return integer <0 if KO, >0 if OK */ public function transformTransaction($direction = 0, $piece_num = '') { @@ -2404,7 +2404,7 @@ class BookKeeping extends CommonObject * * @param bool $force Force reload * @param string $mode active or closed ? - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function loadFiscalPeriods($force = false, $mode = 'active') { @@ -2565,7 +2565,7 @@ class BookKeeping extends CommonObject * * @param int $date_start Date start * @param int $date_end Date end - * @return int int <0 if KO, >0 if OK + * @return int int Return integer <0 if KO, >0 if OK */ public function validateMovementForFiscalPeriod($date_start, $date_end) { @@ -2598,7 +2598,7 @@ class BookKeeping extends CommonObject * @param int $new_fiscal_period_id New fiscal year ID * @param bool $separate_auxiliary_account Separate auxiliary account * @param bool $generate_bookkeeping_records Generate closure bookkeeping records - * @return int int <0 if KO, >0 if OK + * @return int int Return integer <0 if KO, >0 if OK */ public function closeFiscalPeriod($fiscal_period_id, $new_fiscal_period_id, $separate_auxiliary_account = false, $generate_bookkeeping_records = true) { @@ -2834,7 +2834,7 @@ class BookKeeping extends CommonObject * @param int $new_fiscal_period_id New fiscal year ID * @param int $date_start Date start * @param int $date_end Date end - * @return int int <0 if KO, >0 if OK + * @return int int Return integer <0 if KO, >0 if OK */ public function insertAccountingReversal($fiscal_period_id, $inventory_journal_id, $new_fiscal_period_id, $date_start, $date_end) { diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 45fabefd02a..7926675123a 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -377,7 +377,7 @@ class Adherent extends CommonObject * @param string $moreinheader Add more html headers * @deprecated since V18 * @see sendEmail() - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function send_an_email($text, $subject, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $addr_cc = "", $addr_bcc = "", $deliveryreceipt = 0, $msgishtml = -1, $errors_to = '', $moreinheader = '') { @@ -402,7 +402,7 @@ class Adherent extends CommonObject * @param string $errors_to erros to * @param string $moreinheader Add more html headers * @since V18 - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function sendEmail($text, $subject, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $addr_cc = "", $addr_bcc = "", $deliveryreceipt = 0, $msgishtml = -1, $errors_to = '', $moreinheader = '') { @@ -573,7 +573,7 @@ class Adherent extends CommonObject * * @param User $user Objet user qui demande la creation * @param int $notrigger 1 ne declenche pas les triggers, 0 sinon - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $notrigger = 0) { @@ -704,7 +704,7 @@ class Adherent extends CommonObject * @param int $nosyncuserpass 0=Synchronize linked user (password), 1=Do not synchronize linked user * @param int $nosyncthirdparty 0=Synchronize linked thirdparty (standard info), 1=Do not synchronize linked thirdparty * @param string $action Current action for hookmanager - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0, $nosyncuser = 0, $nosyncuserpass = 0, $nosyncthirdparty = 0, $action = 'update') { @@ -975,7 +975,7 @@ class Adherent extends CommonObject * This function is called when we delete a subscription for example. * * @param User $user User making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_end_date($user) { @@ -1510,7 +1510,7 @@ class Adherent extends CommonObject * first_subscription_date, first_subscription_date_start, first_subscription_date_end, first_subscription_amount * last_subscription_date, last_subscription_date_start, last_subscription_date_end, last_subscription_amount * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_subscriptions() { @@ -1575,7 +1575,7 @@ class Adherent extends CommonObject * Function to get partnerships array * * @param string $mode 'member' or 'thirdparty' - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchPartnerships($mode) { @@ -1683,7 +1683,7 @@ class Adherent extends CommonObject * @param string $autocreatethirdparty Auto create new thirdparty if member not yet linked to a thirdparty and we request an option that generate invoice. * @param string $ext_payment_id External id of payment (for example Stripe charge id) * @param string $ext_payment_site Name of external paymentmode (for example 'stripe') - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function subscriptionComplementaryActions($subscriptionid, $option, $accountid, $datesubscription, $paymentdate, $operation, $label, $amount, $num_chq, $emetteur_nom = '', $emetteur_banque = '', $autocreatethirdparty = 0, $ext_payment_id = '', $ext_payment_site = '') { @@ -1992,7 +1992,7 @@ class Adherent extends CommonObject * Fonction qui resilie un adherent * * @param User $user User making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function resiliate($user) { @@ -2042,7 +2042,7 @@ class Adherent extends CommonObject * For historical purpose it add an "extra-subscription" type excluded * * @param User $user User making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function exclude($user) { @@ -2089,7 +2089,7 @@ class Adherent extends CommonObject /** * Function to add member into external tools mailing-list, spip, etc. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function add_to_abo() { @@ -2141,7 +2141,7 @@ class Adherent extends CommonObject /** * Function to delete a member from external tools like mailing-list, spip, etc. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function del_to_abo() { @@ -2469,7 +2469,7 @@ class Adherent extends CommonObject /** * Charge indicateurs this->nb de tableau de bord * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -2932,7 +2932,7 @@ class Adherent extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php index d9eb9cffdbe..0a15cd66524 100644 --- a/htdocs/adherents/class/adherent_type.class.php +++ b/htdocs/adherents/class/adherent_type.class.php @@ -159,7 +159,7 @@ class AdherentType extends CommonObject /** * Load array this->multilangs * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getMultiLangs() { @@ -195,7 +195,7 @@ class AdherentType extends CommonObject * Update or add a translation for this member type * * @param User $user Object user making update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setMultiLangs($user) { @@ -281,7 +281,7 @@ class AdherentType extends CommonObject * * @param string $langtodelete Language code to delete * @param User $user Object user making delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delMultiLangs($langtodelete, $user) { @@ -486,7 +486,7 @@ class AdherentType extends CommonObject * Function that retrieves the properties of a membership type * * @param int $rowid Id of member type to load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { diff --git a/htdocs/adherents/class/subscription.class.php b/htdocs/adherents/class/subscription.class.php index b2b1f369575..6753f8a8714 100644 --- a/htdocs/adherents/class/subscription.class.php +++ b/htdocs/adherents/class/subscription.class.php @@ -256,7 +256,7 @@ class Subscription extends CommonObject * * @param User $user User who updated * @param int $notrigger 0=Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -321,7 +321,7 @@ class Subscription extends CommonObject * * @param User $user User that delete * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function delete($user, $notrigger = false) { diff --git a/htdocs/asset/class/asset.class.php b/htdocs/asset/class/asset.class.php index 606aaa9b60c..e6f8128aed8 100644 --- a/htdocs/asset/class/asset.class.php +++ b/htdocs/asset/class/asset.class.php @@ -213,7 +213,7 @@ class Asset extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -341,7 +341,7 @@ class Asset extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -367,7 +367,7 @@ class Asset extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -462,7 +462,7 @@ class Asset extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -499,7 +499,7 @@ class Asset extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -512,7 +512,7 @@ class Asset extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function setDataFromAssetModel(User $user, $notrigger = false) { @@ -621,7 +621,7 @@ class Asset extends CommonObject /** * Fetch depreciation lines for each mode in $this->depreciation_lines (sort by depreciation date) * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function fetchDepreciationLines() { @@ -799,7 +799,7 @@ class Asset extends CommonObject /** * Calculation depreciation lines (reversal and future) for each mode * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function calculationDepreciation() { @@ -1090,7 +1090,7 @@ class Asset extends CommonObject * Set last cumulative depreciation for each mode * * @param int $asset_depreciation_id Asset depreciation line ID - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setLastCumulativeDepreciation($asset_depreciation_id) { diff --git a/htdocs/asset/class/assetaccountancycodes.class.php b/htdocs/asset/class/assetaccountancycodes.class.php index f52dc20a5f5..e05929c3bb8 100644 --- a/htdocs/asset/class/assetaccountancycodes.class.php +++ b/htdocs/asset/class/assetaccountancycodes.class.php @@ -102,7 +102,7 @@ class AssetAccountancyCodes extends CommonObject * * @param int $asset_id Asset ID to set * @param int $asset_model_id Asset model ID to set - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAccountancyCodes($asset_id = 0, $asset_model_id = 0) { @@ -170,7 +170,7 @@ class AssetAccountancyCodes extends CommonObject * @param int $asset_id Asset ID to set * @param int $asset_model_id Asset model ID to set * @param int $notrigger 1=disable trigger UPDATE (when called by create) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateAccountancyCodes($user, $asset_id = 0, $asset_model_id = 0, $notrigger = 0) { diff --git a/htdocs/asset/class/assetdepreciationoptions.class.php b/htdocs/asset/class/assetdepreciationoptions.class.php index ae667fa85d0..a054afcdf11 100644 --- a/htdocs/asset/class/assetdepreciationoptions.class.php +++ b/htdocs/asset/class/assetdepreciationoptions.class.php @@ -146,7 +146,7 @@ class AssetDepreciationOptions extends CommonObject * @param string $mode Depreciation mode (economic, accelerated_depreciation, ...) * @param int $class_type Type (0:asset, 1:asset model) * @param bool $all_field Get all fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setInfosForMode($mode, $class_type = 0, $all_field = false) { @@ -190,7 +190,7 @@ class AssetDepreciationOptions extends CommonObject * Fill deprecation_options property of object (using for data sent by forms) * * @param int $class_type Type (0:asset, 1:asset model) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDeprecationOptionsFromPost($class_type = 0) { @@ -304,7 +304,7 @@ class AssetDepreciationOptions extends CommonObject * * @param int $asset_id Asset ID to set * @param int $asset_model_id Asset model ID to set - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchDeprecationOptions($asset_id = 0, $asset_model_id = 0) { @@ -413,7 +413,7 @@ class AssetDepreciationOptions extends CommonObject * @param int $asset_id Asset ID to set * @param int $asset_model_id Asset model ID to set * @param int $notrigger 1=disable trigger UPDATE (when called by create) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateDeprecationOptions($user, $asset_id = 0, $asset_model_id = 0, $notrigger = 0) { diff --git a/htdocs/asset/class/assetmodel.class.php b/htdocs/asset/class/assetmodel.class.php index 7525d9fb0c2..26068c00b59 100644 --- a/htdocs/asset/class/assetmodel.class.php +++ b/htdocs/asset/class/assetmodel.class.php @@ -188,7 +188,7 @@ class AssetModel extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -301,7 +301,7 @@ class AssetModel extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -315,7 +315,7 @@ class AssetModel extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -410,7 +410,7 @@ class AssetModel extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -422,7 +422,7 @@ class AssetModel extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -502,7 +502,7 @@ class AssetModel extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/blockedlog/class/authority.class.php b/htdocs/blockedlog/class/authority.class.php index c25f7163189..d95a7499fee 100644 --- a/htdocs/blockedlog/class/authority.class.php +++ b/htdocs/blockedlog/class/authority.class.php @@ -211,7 +211,7 @@ class BlockedLogAuthority * Create authority in database. * * @param User $user Object user that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -259,7 +259,7 @@ class BlockedLogAuthority * Create authority in database. * * @param User $user Object user that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user) { @@ -293,7 +293,7 @@ class BlockedLogAuthority /** * For cron to sync to authority. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function syncSignatureWithAuthority() { diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php index 37ef8a166c5..08265f8c472 100644 --- a/htdocs/blockedlog/class/blockedlog.class.php +++ b/htdocs/blockedlog/class/blockedlog.class.php @@ -854,7 +854,7 @@ class BlockedLog * * @param User $user Object user that create * @param int $forcesignature Force signature (for example '0000000000' when we disabled the module) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $forcesignature = '') { diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php index ceda788b0e5..de65b0e7585 100644 --- a/htdocs/bom/class/bom.class.php +++ b/htdocs/bom/class/bom.class.php @@ -298,7 +298,7 @@ class BOM extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -405,7 +405,7 @@ class BOM extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -422,7 +422,7 @@ class BOM extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -437,7 +437,7 @@ class BOM extends CommonObject * * @param int $typeproduct 0 type product, 1 type service - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLinesbytypeproduct($typeproduct = 0) { @@ -563,7 +563,7 @@ class BOM extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -579,7 +579,7 @@ class BOM extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -601,7 +601,7 @@ class BOM extends CommonObject * @param string $fk_unit Unit * @param array $array_options extrafields array * @param int $fk_default_workstation Default workstation - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function addLine($fk_product, $qty, $qty_frozen = 0, $disable_stock_change = 0, $efficiency = 1.0, $position = -1, $fk_bom_child = null, $import_key = null, $fk_unit = '', $array_options = 0, $fk_default_workstation = null) { @@ -1039,7 +1039,7 @@ class BOM extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { @@ -1407,7 +1407,7 @@ class BOM extends CommonObject * BOM costs calculation based on cost_price or pmp of each BOM line. * Set the property ->total_cost and ->unit_cost of BOM. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function calculateCosts() { @@ -1836,7 +1836,7 @@ class BOMLine extends CommonObjectLine * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -1852,7 +1852,7 @@ class BOMLine extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -1940,7 +1940,7 @@ class BOMLine extends CommonObjectLine * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -1956,7 +1956,7 @@ class BOMLine extends CommonObjectLine * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/bookcal/class/availabilities.class.php b/htdocs/bookcal/class/availabilities.class.php index bf11c2cdca7..fd3711cb145 100644 --- a/htdocs/bookcal/class/availabilities.class.php +++ b/htdocs/bookcal/class/availabilities.class.php @@ -239,7 +239,7 @@ class Availabilities extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -355,7 +355,7 @@ class Availabilities extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -369,7 +369,7 @@ class Availabilities extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -465,7 +465,7 @@ class Availabilities extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -477,7 +477,7 @@ class Availabilities extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -640,7 +640,7 @@ class Availabilities extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/bookcal/class/calendar.class.php b/htdocs/bookcal/class/calendar.class.php index 4b7b6dad9ba..26186a63175 100644 --- a/htdocs/bookcal/class/calendar.class.php +++ b/htdocs/bookcal/class/calendar.class.php @@ -199,7 +199,7 @@ class Calendar extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -314,7 +314,7 @@ class Calendar extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -328,7 +328,7 @@ class Calendar extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -422,7 +422,7 @@ class Calendar extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -434,7 +434,7 @@ class Calendar extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -597,7 +597,7 @@ class Calendar extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/bookmarks/class/bookmark.class.php b/htdocs/bookmarks/class/bookmark.class.php index e6df13f904e..06aa4105a9d 100644 --- a/htdocs/bookmarks/class/bookmark.class.php +++ b/htdocs/bookmarks/class/bookmark.class.php @@ -109,7 +109,7 @@ class Bookmark extends CommonObject * Directs the bookmark * * @param int $id Bookmark Id Loader - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -235,7 +235,7 @@ class Bookmark extends CommonObject * Removes the bookmark * * @param User $user User deleting - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index ab98d88a7d1..c0cad279762 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -339,7 +339,7 @@ class Categorie extends CommonObject * @param string $label Label of category * @param string $type Type of category ('product', '...') or (0, 1, ...) * @param string $ref_ext External reference of object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $label = '', $type = null, $ref_ext = '') { @@ -1087,7 +1087,7 @@ class Categorie extends CommonObject /** * Load the array this->motherof that is array(id_son=>id_parent, ...) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function load_motherof() { @@ -1236,7 +1236,7 @@ class Categorie extends CommonObject * * @param int $id_categ id_categ entry to update * @param int $protection Deep counter to avoid infinite loop - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see get_full_arbo() */ private function buildPathFromId($id_categ, $protection = 1000) @@ -1874,7 +1874,7 @@ class Categorie extends CommonObject * * @param User $user Object user * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setMultiLangs($user) { @@ -1944,7 +1944,7 @@ class Categorie extends CommonObject /** * Load array this->multilangs * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getMultiLangs() { diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 488cf4f2c3e..dda230e342c 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -785,7 +785,7 @@ class ActionComm extends CommonObject * @param string $ref_ext Ref ext to get * @param string $email_msgid Email msgid * @param string $loadresources 1=Load also resources - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '', $ref_ext = '', $email_msgid = '', $loadresources = 1) { @@ -931,7 +931,7 @@ class ActionComm extends CommonObject /** * Initialize $this->userassigned & this->socpeopleassigned array with list of id of user and contact assigned to event * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchResources() { @@ -977,7 +977,7 @@ class ActionComm extends CommonObject * Initialize this->userassigned array with list of id of user assigned to event * * @param bool $override Override $this->userownerid when empty. TODO This should be false by default. True is here to fix corrupted data. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_userassigned($override = true) { @@ -1024,7 +1024,7 @@ class ActionComm extends CommonObject * @TODO Add User $user as first param * * @param int $notrigger 1 = disable triggers, 0 = enable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($notrigger = 0) { @@ -1122,7 +1122,7 @@ class ActionComm extends CommonObject * * @param User $user Object user making change * @param int $notrigger 1 = disable triggers, 0 = enable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -1908,7 +1908,7 @@ class ActionComm extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/comm/action/class/actioncommreminder.class.php b/htdocs/comm/action/class/actioncommreminder.class.php index 92011190b69..65ca8f8df62 100644 --- a/htdocs/comm/action/class/actioncommreminder.class.php +++ b/htdocs/comm/action/class/actioncommreminder.class.php @@ -167,7 +167,7 @@ class ActionCommReminder extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -180,7 +180,7 @@ class ActionCommReminder extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -193,7 +193,7 @@ class ActionCommReminder extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -205,7 +205,7 @@ class ActionCommReminder extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/comm/mailing/class/advtargetemailing.class.php b/htdocs/comm/mailing/class/advtargetemailing.class.php index 9561770eb33..cc8e473c045 100644 --- a/htdocs/comm/mailing/class/advtargetemailing.class.php +++ b/htdocs/comm/mailing/class/advtargetemailing.class.php @@ -143,7 +143,7 @@ class AdvanceTargetingMailing extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -219,7 +219,7 @@ class AdvanceTargetingMailing extends CommonObject * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -273,7 +273,7 @@ class AdvanceTargetingMailing extends CommonObject * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_by_mailing($id = 0) { @@ -336,7 +336,7 @@ class AdvanceTargetingMailing extends CommonObject * * @param int $id Id object * @param string $type_element Type target - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_by_element($id = 0, $type_element = 'mailing') { @@ -395,7 +395,7 @@ class AdvanceTargetingMailing extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -458,7 +458,7 @@ class AdvanceTargetingMailing extends CommonObject * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -498,7 +498,7 @@ class AdvanceTargetingMailing extends CommonObject * * @param User $user User that deletes * @param array $arrayquery All element to Query - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function savequery($user, $arrayquery) { @@ -526,7 +526,7 @@ class AdvanceTargetingMailing extends CommonObject * Load object in memory from database * * @param array $arrayquery All element to Query - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function query_thirdparty($arrayquery) { @@ -678,7 +678,7 @@ class AdvanceTargetingMailing extends CommonObject * * @param array $arrayquery All element to Query * @param int $withThirdpartyFilter add contact with tridparty filter - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function query_contact($arrayquery, $withThirdpartyFilter = 0) { diff --git a/htdocs/comm/mailing/class/mailing.class.php b/htdocs/comm/mailing/class/mailing.class.php index 70824302bb4..6af564a57ca 100644 --- a/htdocs/comm/mailing/class/mailing.class.php +++ b/htdocs/comm/mailing/class/mailing.class.php @@ -237,7 +237,7 @@ class Mailing extends CommonObject * * @param User $user Object of user making creation * @param int $notrigger Disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -366,7 +366,7 @@ class Mailing extends CommonObject * * @param int $rowid Id of emailing * @param string $ref Title to search from title - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid, $ref = '') { @@ -559,7 +559,7 @@ class Mailing extends CommonObject * Validate emailing * * @param User $user Objet user qui valide - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function valid($user) { @@ -661,7 +661,7 @@ class Mailing extends CommonObject * Change status of each recipient * * @param User $user Objet user qui valide - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reset_targets_status($user) { @@ -719,7 +719,7 @@ class Mailing extends CommonObject * Refresh denormalized value ->nbemail into emailing record * Note: There is also the method update_nb into modules_mailings that is used for this. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function refreshNbOfTargets() { diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 8915d4b8b25..c90c09eb56e 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -423,7 +423,7 @@ class Propal extends CommonObject * @param int $idproduct Product Id to add * @param int $qty Quantity * @param int $remise_percent Discount effected on Product - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * * TODO Replace calls to this function by generation objet Ligne */ @@ -1729,7 +1729,7 @@ class Propal extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -1840,7 +1840,7 @@ class Propal extends CommonObject * @param int $only_product Return only physical products * @param int $loadalsotranslation Return translation for products * @param string $sqlforgedfilters Filter on other fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines($only_product = 0, $loadalsotranslation = 0, $sqlforgedfilters = '') { @@ -2097,7 +2097,7 @@ class Propal extends CommonObject * @param User $user Object user that modify * @param int $date Date * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_date($user, $date, $notrigger = 0) { @@ -2161,7 +2161,7 @@ class Propal extends CommonObject * @param User $user Object user that modify * @param int $date_end_validity End of validity date * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_echeance($user, $date_end_validity, $notrigger = 0) { @@ -2292,7 +2292,7 @@ class Propal extends CommonObject * @param User $user Object user that modify * @param int $id Availability id * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_availability($user, $id, $notrigger = 0) { @@ -2355,7 +2355,7 @@ class Propal extends CommonObject * @param User $user Object user that modify * @param int $id Input reason id * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_demand_reason($user, $id, $notrigger = 0) { @@ -2608,7 +2608,7 @@ class Propal extends CommonObject * @param int $status Status * @param string $note Comment * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reopen($user, $status, $note = '', $notrigger = 0) { @@ -2667,7 +2667,7 @@ class Propal extends CommonObject * @param int $status Status (self::STATUS_BILLED or self::STATUS_REFUSED) * @param string $note Complete private note with this note * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function closeProposal($user, $status, $note = '', $notrigger = 0) { @@ -2865,7 +2865,7 @@ class Propal extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { @@ -4183,7 +4183,7 @@ class PropaleLigne extends CommonObjectLine * Retrieve the propal line object * * @param int $rowid Propal line id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { @@ -4271,7 +4271,7 @@ class PropaleLigne extends CommonObjectLine * Insert object line propal in database * * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0) { @@ -4649,7 +4649,7 @@ class PropaleLigne extends CommonObjectLine * Update DB line fields total_xxx * Used by migration * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_total() { diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 19bf21da00d..565b3d93d35 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -623,7 +623,7 @@ class Commande extends CommonOrder * * @param User $user Object user that modify * @param int $idwarehouse Warehouse ID to use for stock change (Used only if option STOCK_CALCULATE_ON_VALIDATE_ORDER is on) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $idwarehouse = -1) { @@ -764,7 +764,7 @@ class Commande extends CommonOrder * * @param User $user Objet user that close * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function cloture($user, $notrigger = 0) { @@ -824,7 +824,7 @@ class Commande extends CommonOrder * If stock is decremented on order validation, we must reincrement it * * @param int $idwarehouse Id warehouse to use for stock change. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function cancel($idwarehouse = -1) { @@ -897,7 +897,7 @@ class Commande extends CommonOrder * * @param User $user Objet user that make creation * @param int $notrigger Disable all triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $notrigger = 0) { @@ -2071,7 +2071,7 @@ class Commande extends CommonOrder * * @param int $only_product Return only physical products, not services * @param int $loadalsotranslation Return translation for products - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines($only_product = 0, $loadalsotranslation = 0) { @@ -2442,7 +2442,7 @@ class Commande extends CommonOrder * @param User $user User qui positionne la remise * @param float $remise Discount (percent) * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_remise($user, $remise, $notrigger = 0) { @@ -2457,7 +2457,7 @@ class Commande extends CommonOrder * @param User $user User setting the discount * @param float $remise Discount (percent) * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated remise_percent is a deprecated field for object parent */ public function setDiscount($user, $remise, $notrigger = 0) @@ -2521,7 +2521,7 @@ class Commande extends CommonOrder * @param User $user User qui positionne la remise * @param float $remise Discount * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ /* public function set_remise_absolue($user, $remise, $notrigger = 0) @@ -2588,7 +2588,7 @@ class Commande extends CommonOrder * @param User $user Object user making change * @param int $date Date * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_date($user, $date, $notrigger = 0) { @@ -2918,7 +2918,7 @@ class Commande extends CommonOrder * @param User $user User that make change * @param string $ref_client Customer ref * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_ref_client($user, $ref_client, $notrigger = 0) { @@ -3316,7 +3316,7 @@ class Commande extends CommonOrder * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -4294,7 +4294,7 @@ class OrderLine extends CommonOrderLine * Load line order * * @param int $rowid Id line order - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { @@ -4469,7 +4469,7 @@ class OrderLine extends CommonOrderLine * * @param User $user User that modify * @param int $notrigger 1 = disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($user = null, $notrigger = 0) { @@ -4797,7 +4797,7 @@ class OrderLine extends CommonOrderLine * Update DB line fields total_xxx * Used by migration * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_total() { diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 786f6f799d6..34bdb724caf 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -834,7 +834,7 @@ class Account extends CommonObject * * @param User $user Object user making action * @param int $notrigger 1=Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -938,7 +938,7 @@ class Account extends CommonObject * Update BBAN (RIB) account fields * * @param User|null $user Object user making update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_bban(User $user = null) { @@ -993,7 +993,7 @@ class Account extends CommonObject * * @param int $id Id of bank account to get * @param string $ref Ref of bank account to get - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -1103,7 +1103,7 @@ class Account extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { @@ -1115,7 +1115,7 @@ class Account extends CommonObject * Delete bank account from database * * @param User|null $user User deleting - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user = null) { @@ -1342,7 +1342,7 @@ class Account extends CommonObject * Charge indicateurs this->nb de tableau de bord * * @param int $filteraccountid To get info for a particular account id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board($filteraccountid = 0) { @@ -2181,7 +2181,7 @@ class AccountLine extends CommonObjectLine * * @param User|null $user User object that delete * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user = null, $notrigger = 0) { @@ -2264,7 +2264,7 @@ class AccountLine extends CommonObjectLine * Delete bank line records * * @param User|null $user User object that delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete_urls(User $user = null) { @@ -2301,7 +2301,7 @@ class AccountLine extends CommonObjectLine * * @param User $user Object user making update * @param int $notrigger 0=Disable all triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -2333,7 +2333,7 @@ class AccountLine extends CommonObjectLine * @param User $user Objet user making update * @param int $cat Category id * @param int $conciliated 1=Set transaction to conciliated, 0=Keep transaction non conciliated - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_conciliation(User $user, $cat, $conciliated = 1) { diff --git a/htdocs/compta/bank/class/bankcateg.class.php b/htdocs/compta/bank/class/bankcateg.class.php index 7c4ef7600d1..ad9d08b9fbc 100644 --- a/htdocs/compta/bank/class/bankcateg.class.php +++ b/htdocs/compta/bank/class/bankcateg.class.php @@ -82,7 +82,7 @@ class BankCateg // extends CommonObject * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = 0) { @@ -136,7 +136,7 @@ class BankCateg // extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -172,7 +172,7 @@ class BankCateg // extends CommonObject * * @param User|null $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user = null, $notrigger = 0) { @@ -221,7 +221,7 @@ class BankCateg // extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0) { diff --git a/htdocs/compta/bank/class/paymentvarious.class.php b/htdocs/compta/bank/class/paymentvarious.class.php index e059833fdde..612aef730d3 100644 --- a/htdocs/compta/bank/class/paymentvarious.class.php +++ b/htdocs/compta/bank/class/paymentvarious.class.php @@ -197,7 +197,7 @@ class PaymentVarious extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -267,7 +267,7 @@ class PaymentVarious extends CommonObject * * @param int $id id object * @param User $user User that load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $user = null) { @@ -339,7 +339,7 @@ class PaymentVarious extends CommonObject * Delete object in database * * @param User $user User that delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { @@ -415,7 +415,7 @@ class PaymentVarious extends CommonObject * Create in database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -589,7 +589,7 @@ class PaymentVarious extends CommonObject * Update link between payment various and line generate into llx_bank * * @param int $id_bank Id bank account - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_fk_bank($id_bank) { diff --git a/htdocs/compta/cashcontrol/class/cashcontrol.class.php b/htdocs/compta/cashcontrol/class/cashcontrol.class.php index e14977c04a4..6a2233cee9e 100644 --- a/htdocs/compta/cashcontrol/class/cashcontrol.class.php +++ b/htdocs/compta/cashcontrol/class/cashcontrol.class.php @@ -162,7 +162,7 @@ class CashControl extends CommonObject * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = 0) { @@ -247,7 +247,7 @@ class CashControl extends CommonObject * * @param User $user User * @param number $notrigger No trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function valid(User $user, $notrigger = 0) { @@ -325,7 +325,7 @@ class CashControl extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -339,7 +339,7 @@ class CashControl extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -351,7 +351,7 @@ class CashControl extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/compta/deplacement/class/deplacement.class.php b/htdocs/compta/deplacement/class/deplacement.class.php index d67458eceae..e101aab8317 100644 --- a/htdocs/compta/deplacement/class/deplacement.class.php +++ b/htdocs/compta/deplacement/class/deplacement.class.php @@ -134,7 +134,7 @@ class Deplacement extends CommonObject * TODO Add ref number * * @param User $user User that creates - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -210,7 +210,7 @@ class Deplacement extends CommonObject * Update record * * @param User $user User making update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user) { @@ -266,7 +266,7 @@ class Deplacement extends CommonObject * * @param int $id Id of record to load * @param string $ref Ref of record - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -309,7 +309,7 @@ class Deplacement extends CommonObject * Delete record * * @param User $user USer that Delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index 0a6ad7c2423..1eadac28074 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -789,7 +789,7 @@ class FactureRec extends CommonInvoice * @param User $user User that delete. * @param int $notrigger 1=Does not execute triggers, 0= execute triggers * @param int $idwarehouse Id warehouse to use for stock change. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0, $idwarehouse = -1) { @@ -1874,7 +1874,7 @@ class FactureRec extends CommonInvoice * @param int $frequency value of frequency * @param string $unit unit of frequency (d, m, y) * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setFrequencyAndUnit($frequency, $unit, $notrigger = 0) { @@ -1926,7 +1926,7 @@ class FactureRec extends CommonInvoice * @param datetime $date date of execution * @param int $increment_nb_gen_done 0 do nothing more, >0 increment nb_gen_done * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setNextDate($date, $increment_nb_gen_done = 0, $notrigger = 0) { @@ -1971,7 +1971,7 @@ class FactureRec extends CommonInvoice * * @param int $nb number of maximum period * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setMaxPeriod($nb, $notrigger = 0) { @@ -2016,7 +2016,7 @@ class FactureRec extends CommonInvoice * * @param int $validate 0 to create in draft, 1 to create and validate invoice * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setAutoValidate($validate, $notrigger = 0) { @@ -2056,7 +2056,7 @@ class FactureRec extends CommonInvoice * * @param int $validate 0 no document, 1 to generate document * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setGeneratePdf($validate, $notrigger = 0) { @@ -2096,7 +2096,7 @@ class FactureRec extends CommonInvoice * * @param string $model model of document generator * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setModelPdf($model, $notrigger = 0) { @@ -2174,7 +2174,7 @@ class FactureLigneRec extends CommonInvoiceLine * * @param User $user Object user * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 4ef28173dda..a285b1b8a4f 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -449,7 +449,7 @@ class Facture extends CommonInvoice * @param User $user Object user that create * @param int $notrigger 1=Does not execute triggers, 0 otherwise * @param int $forceduedate If set, do not recalculate due date from payment condition but force it with value - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create(User $user, $notrigger = 0, $forceduedate = 0) { @@ -1122,7 +1122,7 @@ class Facture extends CommonInvoice * * @param User $user Object user that ask creation * @param int $invertdetail Reverse sign of amounts for lines - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function createFromCurrent(User $user, $invertdetail = 0) { @@ -2440,7 +2440,7 @@ class Facture extends CommonInvoice * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -2679,7 +2679,7 @@ class Facture extends CommonInvoice * * @param string $ref_client Customer ref * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_ref_client($ref_client, $notrigger = 0) { @@ -2933,7 +2933,7 @@ class Facture extends CommonInvoice * @param User $user Object user that modify * @param string $close_code Code renseigne si on classe a payee completement alors que paiement incomplet (cas escompte par exemple) * @param string $close_note Commentaire renseigne si on classe a payee alors que paiement incomplet (cas escompte par exemple) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_paid($user, $close_code = '', $close_note = '') { @@ -2950,7 +2950,7 @@ class Facture extends CommonInvoice * @param User $user Object user that modify * @param string $close_code Code renseigne si on classe a payee completement alors que paiement incomplet (cas escompte par exemple) * @param string $close_note Commentaire renseigne si on classe a payee alors que paiement incomplet (cas escompte par exemple) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($user, $close_code = '', $close_note = '') { @@ -3013,7 +3013,7 @@ class Facture extends CommonInvoice * @deprecated * @see setUnpaid() * @param User $user Object user that change status - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_unpaid($user) { @@ -3028,7 +3028,7 @@ class Facture extends CommonInvoice * ou quand une facture annulee et reouverte. * * @param User $user Object user that change status - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setUnpaid($user) { @@ -3078,7 +3078,7 @@ class Facture extends CommonInvoice * @param User $user Object user making change * @param string $close_code Code of closing invoice (CLOSECODE_REPLACED, CLOSECODE_...) * @param string $close_note Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_canceled($user, $close_code = '', $close_note = '') { @@ -3095,7 +3095,7 @@ class Facture extends CommonInvoice * @param User $user Object user making change * @param string $close_code Code of closing invoice (CLOSECODE_REPLACED, CLOSECODE_...) * @param string $close_note Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCanceled($user, $close_code = '', $close_note = '') { @@ -3641,7 +3641,7 @@ class Facture extends CommonInvoice * * @param User $user Object user that modify * @param int $idwarehouse Id warehouse to use for stock change. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $idwarehouse = -1) { @@ -4341,7 +4341,7 @@ class Facture extends CommonInvoice * * @param int $rowid Id of line to delete * @param int $id Id of object (for a check) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteline($rowid, $id = 0) { @@ -4403,7 +4403,7 @@ class Facture extends CommonInvoice * @param User $user User that set discount * @param double $remise Discount * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_remise($user, $remise, $notrigger = 0) { @@ -4418,7 +4418,7 @@ class Facture extends CommonInvoice * @param User $user User that set discount * @param double $remise Discount * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated remise_percent is a deprecated field for object parent */ public function setDiscount($user, $remise, $notrigger = 0) @@ -4483,7 +4483,7 @@ class Facture extends CommonInvoice * @param User $user User that set discount * @param double $remise Discount * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ /* public function set_remise_absolue($user, $remise, $notrigger = 0) @@ -5144,7 +5144,7 @@ class Facture extends CommonInvoice /** * Load indicators for dashboard (this->nbtodo and this->nbtodolate) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -5198,7 +5198,7 @@ class Facture extends CommonInvoice * @param int $hidedesc Hide description * @param int $hideref Hide ref * @param null|array $moreparams Array to provide more information - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null) { @@ -5301,7 +5301,7 @@ class Facture extends CommonInvoice * * @param User $user Object user * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setFinal(User $user, $notrigger = 0) { @@ -6096,7 +6096,7 @@ class FactureLigne extends CommonInvoiceLine * Load invoice line from database * * @param int $rowid id of invoice line to get - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { @@ -6194,7 +6194,7 @@ class FactureLigne extends CommonInvoiceLine * * @param int $notrigger 1 no triggers * @param int $noerrorifdiscountalreadylinked 1=Do not make error if lines is linked to a discount and discount already linked to another - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0, $noerrorifdiscountalreadylinked = 0) { @@ -6430,7 +6430,7 @@ class FactureLigne extends CommonInvoiceLine * * @param User $user User object * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = '', $notrigger = 0) { @@ -6602,7 +6602,7 @@ class FactureLigne extends CommonInvoiceLine * * @param User $tmpuser User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($tmpuser = null, $notrigger = false) { @@ -6669,7 +6669,7 @@ class FactureLigne extends CommonInvoiceLine * Update DB line fields total_xxx * Used by migration * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_total() { diff --git a/htdocs/compta/facture/class/paymentterm.class.php b/htdocs/compta/facture/class/paymentterm.class.php index df9153d4407..ef248858a7b 100644 --- a/htdocs/compta/facture/class/paymentterm.class.php +++ b/htdocs/compta/facture/class/paymentterm.class.php @@ -85,7 +85,7 @@ class PaymentTerm // extends CommonObject * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -179,7 +179,7 @@ class PaymentTerm // extends CommonObject * * @param int $id Id object * @param string $code Code object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $code = '') { @@ -232,7 +232,7 @@ class PaymentTerm // extends CommonObject /** * Return id of default payment term * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getDefaultId() { @@ -269,7 +269,7 @@ class PaymentTerm // extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -350,7 +350,7 @@ class PaymentTerm // extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/compta/localtax/class/localtax.class.php b/htdocs/compta/localtax/class/localtax.class.php index 1010590c818..01c254206eb 100644 --- a/htdocs/compta/localtax/class/localtax.class.php +++ b/htdocs/compta/localtax/class/localtax.class.php @@ -102,7 +102,7 @@ class Localtax extends CommonObject * Create in database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -171,7 +171,7 @@ class Localtax extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -230,7 +230,7 @@ class Localtax extends CommonObject * Load object in memory from database * * @param int $id Object id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -290,7 +290,7 @@ class Localtax extends CommonObject * Delete object in database * * @param User $user User that delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { @@ -573,7 +573,7 @@ class Localtax extends CommonObject * Update the link betwen localtax payment and the line into llx_bank * * @param int $id Id bank account - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_fk_bank($id) { diff --git a/htdocs/compta/paiement/cheque/class/remisecheque.class.php b/htdocs/compta/paiement/cheque/class/remisecheque.class.php index 8ffaecad6f8..5be488fcb5c 100644 --- a/htdocs/compta/paiement/cheque/class/remisecheque.class.php +++ b/htdocs/compta/paiement/cheque/class/remisecheque.class.php @@ -142,7 +142,7 @@ class RemiseCheque extends CommonObject * @param int $account_id Bank account for cheque receipt * @param int $limit Limit ref of cheque to this * @param array $toRemise array with cheques to remise - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $account_id, $limit, $toRemise) { @@ -339,7 +339,7 @@ class RemiseCheque extends CommonObject * Validate a receipt * * @param User $user User - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function validate($user) { @@ -568,7 +568,7 @@ class RemiseCheque extends CommonObject * * @param string $model Model name * @param Translate $outputlangs Object langs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function generatePdf($model, $outputlangs) { @@ -815,7 +815,7 @@ class RemiseCheque extends CommonObject * * @param User $user Object user * @param int $date Date creation - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_date($user, $date) { @@ -845,7 +845,7 @@ class RemiseCheque extends CommonObject * * @param User $user Object user * @param int $ref ref of bordereau - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_number($user, $ref) { diff --git a/htdocs/compta/paiement/class/cpaiement.class.php b/htdocs/compta/paiement/class/cpaiement.class.php index 7c7a275e8b6..97bdaf30e47 100644 --- a/htdocs/compta/paiement/class/cpaiement.class.php +++ b/htdocs/compta/paiement/class/cpaiement.class.php @@ -73,7 +73,7 @@ class Cpaiement extends CommonDict * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -170,7 +170,7 @@ class Cpaiement extends CommonDict * @param int $id Id object * @param string $ref Ref * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -229,7 +229,7 @@ class Cpaiement extends CommonDict * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -314,7 +314,7 @@ class Cpaiement extends CommonDict * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index 6c30ab2ff9e..c277e9c3bac 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -176,7 +176,7 @@ class Paiement extends CommonObject * @param int $id Id of payment to get * @param string $ref Ref of payment to get (currently ref = id but this may change in future) * @param int $fk_bank Id of bank line associated to payment - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = '', $fk_bank = '') { @@ -548,7 +548,7 @@ class Paiement extends CommonObject * @TODO Add first param User $user * * @param int $notrigger No trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($notrigger = 0) { @@ -843,7 +843,7 @@ class Paiement extends CommonObject * Mise a jour du lien entre le paiement et la ligne generee dans llx_bank * * @param int $id_bank Id compte bancaire - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_fk_bank($id_bank) { @@ -951,7 +951,7 @@ class Paiement extends CommonObject * Validate payment * * @param User|null $user User making validation - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated */ public function valide(User $user = null) @@ -963,7 +963,7 @@ class Paiement extends CommonObject * Validate payment * * @param User|null $user User making validation - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function validate(User $user = null) { @@ -984,7 +984,7 @@ class Paiement extends CommonObject * Reject payment * * @param User|null $user User making reject - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reject(User $user = null) { @@ -1382,7 +1382,7 @@ class Paiement extends CommonObject * For payments, take the thirdparty linked to the first invoice found. This is enough because payments are done on invoices of the same thirdparty. * * @param int $force_thirdparty_id Force thirdparty id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_thirdparty($force_thirdparty_id = 0) { diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index 77e79ee9dab..77d31de4694 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -441,7 +441,7 @@ class BonPrelevement extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { diff --git a/htdocs/compta/sociales/class/cchargesociales.class.php b/htdocs/compta/sociales/class/cchargesociales.class.php index 0825f223f19..3c1abc8d00b 100644 --- a/htdocs/compta/sociales/class/cchargesociales.class.php +++ b/htdocs/compta/sociales/class/cchargesociales.class.php @@ -95,7 +95,7 @@ class Cchargesociales * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -179,7 +179,7 @@ class Cchargesociales * @param int $id Id object * @param string $ref Ref * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -239,7 +239,7 @@ class Cchargesociales * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -313,7 +313,7 @@ class Cchargesociales * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/compta/sociales/class/chargesociales.class.php b/htdocs/compta/sociales/class/chargesociales.class.php index 02f5f16c8f7..410c33844d5 100644 --- a/htdocs/compta/sociales/class/chargesociales.class.php +++ b/htdocs/compta/sociales/class/chargesociales.class.php @@ -286,7 +286,7 @@ class ChargeSociales extends CommonObject * Delete a social contribution * * @param User $user Object user making delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { @@ -347,7 +347,7 @@ class ChargeSociales extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -438,7 +438,7 @@ class ChargeSociales extends CommonObject * @deprecated * @see setPaid() * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_paid($user) { @@ -451,7 +451,7 @@ class ChargeSociales extends CommonObject * Tag social contribution as paid completely * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($user) { @@ -477,7 +477,7 @@ class ChargeSociales extends CommonObject * @deprecated * @see setUnpaid() * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_unpaid($user) { @@ -490,7 +490,7 @@ class ChargeSociales extends CommonObject * Remove tag paid on social contribution * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setUnpaid($user) { @@ -693,7 +693,7 @@ class ChargeSociales extends CommonObject * Charge les informations d'ordre info dans l'objet entrepot * * @param int $id Id of social contribution - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function info($id) { diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php index 714d51057a6..b68754416f3 100644 --- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php +++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php @@ -277,7 +277,7 @@ class PaymentSocialContribution extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -344,7 +344,7 @@ class PaymentSocialContribution extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -427,7 +427,7 @@ class PaymentSocialContribution extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -557,7 +557,7 @@ class PaymentSocialContribution extends CommonObject * @param int $accountid Id of bank account to do link with * @param string $emetteur_nom Name of transmitter * @param string $emetteur_banque Name of bank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addPaymentToBank($user, $mode, $label, $accountid, $emetteur_nom, $emetteur_banque) { diff --git a/htdocs/compta/tva/class/paymentvat.class.php b/htdocs/compta/tva/class/paymentvat.class.php index 173c7408de2..d51b646e3db 100644 --- a/htdocs/compta/tva/class/paymentvat.class.php +++ b/htdocs/compta/tva/class/paymentvat.class.php @@ -281,7 +281,7 @@ class PaymentVAT extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -349,7 +349,7 @@ class PaymentVAT extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -430,7 +430,7 @@ class PaymentVAT extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -559,7 +559,7 @@ class PaymentVAT extends CommonObject * @param int $accountid Id of bank account to do link with * @param string $emetteur_nom Name of transmitter * @param string $emetteur_banque Name of bank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addPaymentToBank($user, $mode, $label, $accountid, $emetteur_nom, $emetteur_banque) { diff --git a/htdocs/compta/tva/class/tva.class.php b/htdocs/compta/tva/class/tva.class.php index ca999a58b1d..1ef23bd0918 100644 --- a/htdocs/compta/tva/class/tva.class.php +++ b/htdocs/compta/tva/class/tva.class.php @@ -136,7 +136,7 @@ class Tva extends CommonObject * Create in database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -217,7 +217,7 @@ class Tva extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -278,7 +278,7 @@ class Tva extends CommonObject * Tag TVA as payed completely * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($user) { @@ -298,7 +298,7 @@ class Tva extends CommonObject * Remove tag payed on TVA * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setUnpaid($user) { @@ -320,7 +320,7 @@ class Tva extends CommonObject * * @param int $id id object * @param string $ref Ref of VAT (not used yet) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -379,7 +379,7 @@ class Tva extends CommonObject * Delete object in database * * @param User $user User that delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { @@ -705,7 +705,7 @@ class Tva extends CommonObject * Update link between payment tva and line generate into llx_bank * * @param int $id_bank Id bank account - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_fk_bank($id_bank) { @@ -826,7 +826,7 @@ class Tva extends CommonObject * Informations of vat payment object * * @param int $id Id of vat payment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function info($id) { diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 6730adcd0a8..41bf3128f49 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -406,7 +406,7 @@ class Contact extends CommonObject /** * Load indicators into this->nb for board * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -455,7 +455,7 @@ class Contact extends CommonObject * * @param User $user Object user that create * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $notrigger = 0) { @@ -569,7 +569,7 @@ class Contact extends CommonObject * @param int $notrigger 0=no, 1=yes * @param string $action Current action for hookmanager * @param int $nosyncuser No sync linked user (external users and contacts are linked) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($id, $user = null, $notrigger = 0, $action = 'update', $nosyncuser = 0) { @@ -1221,7 +1221,7 @@ class Contact extends CommonObject * * @param User $user User making the delete * @param int $notrigger Disable all trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -1729,7 +1729,7 @@ class Contact extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { @@ -1923,7 +1923,7 @@ class Contact extends CommonObject * Load array of prospect status * * @param int $active 1=Active only, 0=Not active only, -1=All - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function loadCacheOfProspStatus($active = 1) { @@ -1977,7 +1977,7 @@ class Contact extends CommonObject * Set prospect level * * @param User $user User who defines the discount - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated Use update function instead */ public function setProspectLevel(User $user) @@ -2069,7 +2069,7 @@ class Contact extends CommonObject * Set "blacklist" mailing status * * @param int $no_email 1=Do not send mailing, 0=Ok to receive mailing - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setNoEmail($no_email) { @@ -2126,7 +2126,7 @@ class Contact extends CommonObject * get "blacklist" mailing status * set no_email attribut to 1 or 0 * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getNoEmail() { diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 5e0c093046b..71dca304d58 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -343,7 +343,7 @@ class Contrat extends CommonObject * @param int $date_start Opening date * @param int|string $date_end Expected end date * @param string $comment A comment typed by user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function active_line($user, $line_id, $date_start, $date_end = '', $comment = '') { @@ -365,7 +365,7 @@ class Contrat extends CommonObject * @param int $line_id Id of line to close * @param int $date_end End date * @param string $comment A comment typed by user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function close_line($user, $line_id, $date_end, $comment = '') { @@ -387,7 +387,7 @@ class Contrat extends CommonObject * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers * @param string $comment Comment * @param int|string $date_end Date end - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see () */ public function activateAll($user, $date_start = '', $notrigger = 0, $comment = '', $date_end = '') @@ -440,7 +440,7 @@ class Contrat extends CommonObject * @param User $user Object User making action * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers * @param string $comment Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see activateAll() */ public function closeAll(User $user, $notrigger = 0, $comment = '') @@ -493,7 +493,7 @@ class Contrat extends CommonObject * @param User $user Objet User * @param string $force_number Reference to force on contract (not implemented yet) * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function validate(User $user, $force_number = '', $notrigger = 0) { @@ -616,7 +616,7 @@ class Contrat extends CommonObject * * @param User $user Object User * @param int $notrigger 1=Does not execute triggers, 0=execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reopen($user, $notrigger = 0) { @@ -1331,7 +1331,7 @@ class Contrat extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -1473,7 +1473,7 @@ class Contrat extends CommonObject * @param array $array_options extrafields array * @param string $fk_unit Code of the unit to use. Null to use the default one * @param string $rang Position - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1, $txlocaltax2, $fk_product, $remise_percent, $date_start, $date_end, $price_base_type = 'HT', $pu_ttc = 0.0, $info_bits = 0, $fk_fournprice = null, $pa_ht = 0, $array_options = 0, $fk_unit = null, $rang = 0) { @@ -1705,7 +1705,7 @@ class Contrat extends CommonObject * @param array $array_options extrafields array * @param string $fk_unit Code of the unit to use. Null to use the default one * @param string $rang Position - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateline($rowid, $desc, $pu, $qty, $remise_percent, $date_start, $date_end, $tvatx, $localtax1tx = 0.0, $localtax2tx = 0.0, $date_start_real = '', $date_end_real = '', $price_base_type = 'HT', $info_bits = 0, $fk_fournprice = null, $pa_ht = 0, $array_options = 0, $fk_unit = null, $rang = 0) { @@ -1936,7 +1936,7 @@ class Contrat extends CommonObject * Update statut of contract according to services * * @param User $user Object user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated This function will never be used. Status of a contract is status of its lines. */ public function update_statut($user) @@ -3265,7 +3265,7 @@ class ContratLigne extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref of contract line - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -3402,7 +3402,7 @@ class ContratLigne extends CommonObjectLine * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -3611,7 +3611,7 @@ class ContratLigne extends CommonObjectLine * Mise a jour en base des champs total_xxx de ligne * Used by migration process * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_total() { @@ -3645,7 +3645,7 @@ class ContratLigne extends CommonObjectLine * Inserts a contrat line into database * * @param int $notrigger Set to 1 if you don't want triggers to be fired - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0) { @@ -3741,7 +3741,7 @@ class ContratLigne extends CommonObjectLine * @param int $date Date real activation * @param int|string $date_end Date planned end. Use '-1' to keep it unchanged. * @param string $comment A comment typed by user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function active_line($user, $date, $date_end = '', $comment = '') { @@ -3801,7 +3801,7 @@ class ContratLigne extends CommonObjectLine * @param int $date_end_real Date end * @param string $comment A comment typed by user * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function close_line($user, $date_end_real, $comment = '', $notrigger = 0) { diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php index c091c707fd2..260baa718ea 100644 --- a/htdocs/core/boxes/modules_boxes.php +++ b/htdocs/core/boxes/modules_boxes.php @@ -142,7 +142,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box * * @param int $rowid Row id to load * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { diff --git a/htdocs/core/class/ccountry.class.php b/htdocs/core/class/ccountry.class.php index c433df8fdb4..f3f98c753ed 100644 --- a/htdocs/core/class/ccountry.class.php +++ b/htdocs/core/class/ccountry.class.php @@ -56,7 +56,7 @@ class Ccountry extends CommonDict * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -178,7 +178,7 @@ class Ccountry extends CommonDict * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -239,7 +239,7 @@ class Ccountry extends CommonDict * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/cgenericdic.class.php b/htdocs/core/class/cgenericdic.class.php index aea0637f3af..5b0d9fec4b2 100644 --- a/htdocs/core/class/cgenericdic.class.php +++ b/htdocs/core/class/cgenericdic.class.php @@ -74,7 +74,7 @@ class CGenericDic extends CommonDict * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -154,7 +154,7 @@ class CGenericDic extends CommonDict * @param string $code code * @param string $label Label * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $code = '', $label = '') { @@ -227,7 +227,7 @@ class CGenericDic extends CommonDict * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND') { @@ -297,7 +297,7 @@ class CGenericDic extends CommonDict * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -373,7 +373,7 @@ class CGenericDic extends CommonDict * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/core/class/comment.class.php b/htdocs/core/class/comment.class.php index 4a743e5b070..4443e04dd38 100644 --- a/htdocs/core/class/comment.class.php +++ b/htdocs/core/class/comment.class.php @@ -104,7 +104,7 @@ class Comment extends CommonObject * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -178,7 +178,7 @@ class Comment extends CommonObject * * @param int $id Id object * @param int $ref ref object - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = '') { @@ -304,7 +304,7 @@ class Comment extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/commonincoterm.class.php b/htdocs/core/class/commonincoterm.class.php index 6c707141774..305e9bcd01c 100644 --- a/htdocs/core/class/commonincoterm.class.php +++ b/htdocs/core/class/commonincoterm.class.php @@ -107,7 +107,7 @@ trait CommonIncoterm * * @param int $id_incoterm Id of incoterm to set or '' to remove * @param string $location location of incoterm - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setIncoterms($id_incoterm, $location) { diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index 21ecf232548..153b7cf2fe1 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -1076,7 +1076,7 @@ abstract class CommonInvoice extends CommonObject * @param User $fuser User asking the direct debit transfer * @param int $id Invoice ID with remain to pay * @param string $sourcetype Source ('facture' or 'supplier_invoice') - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function makeStripeCardRequest($fuser, $id, $sourcetype = 'facture') { @@ -1093,7 +1093,7 @@ abstract class CommonInvoice extends CommonObject * @param string $sourcetype Source ('facture' or 'supplier_invoice') * @param string $service 'StripeTest', 'StripeLive', ... * @param string $forcestripe To force another stripe env: 'cus_account@pk_...:sk_...' - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function makeStripeSepaRequest($fuser, $did, $type = 'direct-debit', $sourcetype = 'facture', $service = '', $forcestripe = '') { diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 8d352034712..cf4953c8bf8 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1700,7 +1700,7 @@ abstract class CommonObject * Load object contact with id=$this->contact_id into $this->contact * * @param int $contactid Id du contact. Use this->contact_id if empty. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_contact($contactid = null) { @@ -1725,7 +1725,7 @@ abstract class CommonObject * Load the third party of object, from id $this->socid or $this->fk_soc, into this->thirdparty * * @param int $force_thirdparty_id Force thirdparty id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_thirdparty($force_thirdparty_id = 0) { @@ -1912,7 +1912,7 @@ abstract class CommonObject * Load the user with id $userid into this->user * * @param int $userid Id du contact - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_user($userid) { @@ -1961,7 +1961,7 @@ abstract class CommonObject * @param string $field Field selected * @param string $key Import key * @param string $element Element name - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchObjectFrom($table, $field, $key, $element = null) { @@ -2003,7 +2003,7 @@ abstract class CommonObject * @param string $table Table of element or element line * @param int $id Element id * @param string $field Field selected - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getValueFrom($table, $id, $field) { @@ -2035,7 +2035,7 @@ abstract class CommonObject * @param User|string $fuser Update the user of last update field with this user. If not provided, current user is used except if value is 'none' * @param string $trigkey Trigger key to run (in most cases something like 'XXX_MODIFY') * @param string $fk_user_field Name of field to save user id making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see updateExtraField() */ public function setValueFrom($field, $value, $table = '', $id = null, $format = '', $id_field = '', $fuser = null, $trigkey = '', $fk_user_field = 'fk_user_modif') @@ -2168,7 +2168,7 @@ abstract class CommonObject * Use SQL and not Universal Search Filter. @TODO Replace this with an USF string after changing all ->next_prev_filter * @param string $fieldid Name of field to use for the select MAX and MIN * @param int $nodbprefix Do not include DB prefix to forge table name - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_previous_next_ref($filter, $fieldid, $nodbprefix = 0) { @@ -2376,7 +2376,7 @@ abstract class CommonObject * * @param int $projectid Project id to link element to * @param int $notrigger Disable the trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setProject($projectid, $notrigger = 0) { @@ -3014,7 +3014,7 @@ abstract class CommonObject * * @param User $user User object that make change * @param string $modelpdf Modele name - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDocModel($user, $modelpdf) { @@ -3116,7 +3116,7 @@ abstract class CommonObject * @param boolean $renum True to renum all already ordered lines, false to renum only not already ordered lines. * @param string $rowidorder ASC or DESC * @param boolean $fk_parent_line Table with fk_parent_line field or not - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function line_order($renum = false, $rowidorder = 'ASC', $fk_parent_line = true) { @@ -3280,7 +3280,7 @@ abstract class CommonObject * * @param int $rowid Id of line * @param int $rang Position - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateRangOfLine($rowid, $rang) { @@ -3485,7 +3485,7 @@ abstract class CommonObject * Update external ref of element * * @param string $ref_ext Update field ref_ext - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_ref_ext($ref_ext) { @@ -3516,7 +3516,7 @@ abstract class CommonObject * @param string $note New value for note * @param string $suffix '', '_public' or '_private' * @param int $notrigger 1=Does not execute triggers, 0=execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_note($note, $suffix = '', $notrigger = 0) { @@ -3602,7 +3602,7 @@ abstract class CommonObject * Update public note (kept for backward compatibility) * * @param string $note New value for note - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated * @see update_note() */ @@ -3621,7 +3621,7 @@ abstract class CommonObject * @param string $roundingadjust 'none'=Do nothing, 'auto'=Use default method (MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND if defined, or '0'), '0'=Force mode Total of rounding, '1'=Force mode Rounding of total * @param int $nodatabaseupdate 1=Do not update database total fields of the main object. Update only properties in memory. Can be used to save SQL when this method is called several times, so we can do it only once at end. * @param Societe $seller If roundingadjust is '0' or '1' or maybe 'auto', it means we recalculate total for lines before calculating total for object and for this, we need seller object (used to analyze lines to check corrupted data). - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_price($exclspec = 0, $roundingadjust = 'none', $nodatabaseupdate = 0, $seller = null) { @@ -4010,7 +4010,7 @@ abstract class CommonObject * @param int $alsosametype 0=Return only links to object that differs from source type. 1=Include also link to objects of same type. * @param string $orderby SQL 'ORDER BY' clause * @param int|string $loadalsoobjects Load also the array $this->linkedObjects. Use 0 to not load (increase performances), Use 1 to load all, Use value of type ('facture', 'facturerec', ...) to load only a type of object. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see add_object_linked(), updateObjectLinked(), deleteObjectLinked() */ public function fetchObjectLinked($sourceid = null, $sourcetype = '', $targetid = null, $targettype = '', $clause = 'OR', $alsosametype = 1, $orderby = 'sourcetype', $loadalsoobjects = 1) @@ -4232,7 +4232,7 @@ abstract class CommonObject /** * Clear the cache saying that all linked object were already loaded. So next fetchObjectLinked will reload all links. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see fetchObjectLinked() */ public function clearObjectLinkedCache() @@ -4492,7 +4492,7 @@ abstract class CommonObject * @param string $elementType Type of element to force (use this->table_element by default) * @param string $trigkey Trigger key to use for trigger. Use '' means automatic but it is not recommended and is deprecated. * @param string $fieldstatus Name of status field in this->table_element - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setStatut($status, $elementId = null, $elementType = '', $trigkey = '', $fieldstatus = 'fk_statut') { @@ -4945,7 +4945,7 @@ abstract class CommonObject /** * Set extra parameters * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setExtraParameters() { @@ -5739,7 +5739,7 @@ abstract class CommonObject * @param int $update_main_doc_field Update field main_doc fied into the table of object. * This param is set when called for a document generation if document generator hase * ->update_main_doc_field set and returns ->result['fullpath']. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function indexFile($destfull, $update_main_doc_field) { @@ -6299,7 +6299,7 @@ abstract class CommonObject /** * Delete all extra fields values for the current object. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see deleteExtraLanguages(), insertExtraField(), updateExtraField(), setValueFrom() */ public function deleteExtraFields() @@ -9545,7 +9545,7 @@ abstract class CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function createCommon(User $user, $notrigger = false) { @@ -9719,7 +9719,7 @@ abstract class CommonObject * @param string $ref Ref * @param string $morewhere More SQL filters (' AND ...') * @param int $noextrafields 0=Default to load extrafields, 1=No extrafields - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchCommon($id, $ref = null, $morewhere = '', $noextrafields = 0) { @@ -9783,7 +9783,7 @@ abstract class CommonObject * * @param string $morewhere More SQL filters (' AND ...') * @param int $noextrafields 0=Default to load extrafields, 1=No extrafields - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLinesCommon($morewhere = '', $noextrafields = 0) { @@ -9839,7 +9839,7 @@ abstract class CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateCommon(User $user, $notrigger = false) { @@ -10079,7 +10079,7 @@ abstract class CommonObject * @param string $parentField Name of Foreign key parent column * @param array $filter an array filter * @param string $filtermode AND or OR - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @throws Exception */ public function deleteByParentField($parentId = 0, $parentField = '', $filter = array(), $filtermode = "AND") @@ -10215,7 +10215,7 @@ abstract class CommonObject * @param int $status New status to set (often a constant like self::STATUS_XXX) * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers * @param string $triggercode Trigger code to use - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setStatusCommon($user, $status, $notrigger = 0, $triggercode = '') { @@ -10392,7 +10392,7 @@ abstract class CommonObject * @param int[]|int $categories Category ID or array of Categories IDs * @param string $type_categ Category type ('customer', 'supplier', 'website_page', ...) definied into const class Categorie type * @param boolean $remove_existing True: Remove existings categories from Object if not supplies by $categories, False: let them - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategoriesCommon($categories, $type_categ = '', $remove_existing = true) { diff --git a/htdocs/core/class/commonobjectline.class.php b/htdocs/core/class/commonobjectline.class.php index e31bef02423..91c3800432a 100644 --- a/htdocs/core/class/commonobjectline.class.php +++ b/htdocs/core/class/commonobjectline.class.php @@ -203,7 +203,7 @@ abstract class CommonObjectLine extends CommonObject * @param int $offset offset limit * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND') { diff --git a/htdocs/core/class/cproductnature.class.php b/htdocs/core/class/cproductnature.class.php index 869633417be..28645210a19 100644 --- a/htdocs/core/class/cproductnature.class.php +++ b/htdocs/core/class/cproductnature.class.php @@ -63,7 +63,7 @@ class CProductNature extends CommonDict * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -105,7 +105,7 @@ class CProductNature extends CommonDict * * @param int $id Id of CUnit object to fetch (rowid) * @param string $code Code - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $code = '') { @@ -228,7 +228,7 @@ class CProductNature extends CommonDict * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -263,7 +263,7 @@ class CProductNature extends CommonDict * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/cregion.class.php b/htdocs/core/class/cregion.class.php index 9d74155bf0b..eb919c08791 100644 --- a/htdocs/core/class/cregion.class.php +++ b/htdocs/core/class/cregion.class.php @@ -64,7 +64,7 @@ class Cregion extends CommonDict * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -194,7 +194,7 @@ class Cregion extends CommonDict * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -260,7 +260,7 @@ class Cregion extends CommonDict * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/cstate.class.php b/htdocs/core/class/cstate.class.php index 6eb6d87da61..2dc406fe6a1 100644 --- a/htdocs/core/class/cstate.class.php +++ b/htdocs/core/class/cstate.class.php @@ -66,7 +66,7 @@ class Cstate extends CommonDict * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -132,7 +132,7 @@ class Cstate extends CommonDict * * @param int $id Id object * @param string $code Code - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $code = '') { @@ -176,7 +176,7 @@ class Cstate extends CommonDict * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -233,7 +233,7 @@ class Cstate extends CommonDict * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/ctypent.class.php b/htdocs/core/class/ctypent.class.php index f2c376c799a..0e22b450a39 100644 --- a/htdocs/core/class/ctypent.class.php +++ b/htdocs/core/class/ctypent.class.php @@ -54,7 +54,7 @@ class Ctypent extends CommonDict * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -131,7 +131,7 @@ class Ctypent extends CommonDict * @param int $id Id object * @param string $code Code * @param string $label Label - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $code = '', $label = '') { @@ -178,7 +178,7 @@ class Ctypent extends CommonDict * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -240,7 +240,7 @@ class Ctypent extends CommonDict * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/ctyperesource.class.php b/htdocs/core/class/ctyperesource.class.php index b0b9f1c1834..e3a780b20f3 100644 --- a/htdocs/core/class/ctyperesource.class.php +++ b/htdocs/core/class/ctyperesource.class.php @@ -64,7 +64,7 @@ class Ctyperesource extends CommonDict * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -137,7 +137,7 @@ class Ctyperesource extends CommonDict * @param string $code code * @param string $label Label * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $code = '', $label = '') { @@ -201,7 +201,7 @@ class Ctyperesource extends CommonDict * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND') { @@ -262,7 +262,7 @@ class Ctyperesource extends CommonDict * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -329,7 +329,7 @@ class Ctyperesource extends CommonDict * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/core/class/cunits.class.php b/htdocs/core/class/cunits.class.php index 80b96f2c874..27593153c33 100644 --- a/htdocs/core/class/cunits.class.php +++ b/htdocs/core/class/cunits.class.php @@ -64,7 +64,7 @@ class CUnits extends CommonDict * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -149,7 +149,7 @@ class CUnits extends CommonDict * @param string $code Code * @param string $short_label Short Label ('g', 'kg', ...) * @param string $unit_type Unit type ('size', 'surface', 'volume', 'weight', ...) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $code = '', $short_label = '', $unit_type = '') { @@ -292,7 +292,7 @@ class CUnits extends CommonDict * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -364,7 +364,7 @@ class CUnits extends CommonDict * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/core/class/defaultvalues.class.php b/htdocs/core/class/defaultvalues.class.php index 0540fc9ccd1..059f9a2f393 100644 --- a/htdocs/core/class/defaultvalues.class.php +++ b/htdocs/core/class/defaultvalues.class.php @@ -176,7 +176,7 @@ class DefaultValues extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -232,7 +232,7 @@ class DefaultValues extends CommonObject * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id) { @@ -323,7 +323,7 @@ class DefaultValues extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -335,7 +335,7 @@ class DefaultValues extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/core/class/discount.class.php b/htdocs/core/class/discount.class.php index f50aafdfa51..1a960c5c3eb 100644 --- a/htdocs/core/class/discount.class.php +++ b/htdocs/core/class/discount.class.php @@ -242,7 +242,7 @@ class DiscountAbsolute * Create a discount into database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -317,7 +317,7 @@ class DiscountAbsolute * Delete object in database. If fk_facture_source is defined, we delete all familiy with same fk_facture_source. If not, only with id is removed * * @param User $user Object of user asking to delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { @@ -441,7 +441,7 @@ class DiscountAbsolute * * @param int $rowidline Invoice line id (To use discount into invoice lines) * @param int $rowidinvoice Invoice id (To use discount as a credit note to reduce payment of invoice) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function link_to_invoice($rowidline, $rowidinvoice) { @@ -497,7 +497,7 @@ class DiscountAbsolute * Link the discount to a particular invoice line or a particular invoice. * Do not call this if discount is linked to a reconcialiated invoice * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function unlink_invoice() { diff --git a/htdocs/core/class/emailsenderprofile.class.php b/htdocs/core/class/emailsenderprofile.class.php index e5a1fdcb4c7..110d84ede85 100644 --- a/htdocs/core/class/emailsenderprofile.class.php +++ b/htdocs/core/class/emailsenderprofile.class.php @@ -159,7 +159,7 @@ class EmailSenderProfile extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -222,7 +222,7 @@ class EmailSenderProfile extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -236,7 +236,7 @@ class EmailSenderProfile extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -252,7 +252,7 @@ class EmailSenderProfile extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -264,7 +264,7 @@ class EmailSenderProfile extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/core/class/events.class.php b/htdocs/core/class/events.class.php index aaf37f40f62..104a99d2f3d 100644 --- a/htdocs/core/class/events.class.php +++ b/htdocs/core/class/events.class.php @@ -145,7 +145,7 @@ class Events // extends CommonObject * Create in database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -201,7 +201,7 @@ class Events // extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -235,7 +235,7 @@ class Events // extends CommonObject * * @param int $id Id object * @param User $user User that load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $user = null) { @@ -282,7 +282,7 @@ class Events // extends CommonObject * Delete object in database * * @param User $user User that delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { diff --git a/htdocs/core/class/fiscalyear.class.php b/htdocs/core/class/fiscalyear.class.php index 651a976d128..caa62050b48 100644 --- a/htdocs/core/class/fiscalyear.class.php +++ b/htdocs/core/class/fiscalyear.class.php @@ -131,7 +131,7 @@ class Fiscalyear extends CommonObject * Create object in database * * @param User $user User making creation - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -186,7 +186,7 @@ class Fiscalyear extends CommonObject * Update record * * @param User $user User making update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user) { @@ -223,7 +223,7 @@ class Fiscalyear extends CommonObject * Load an object from database * * @param int $id Id of record to load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -255,7 +255,7 @@ class Fiscalyear extends CommonObject * Delete record * * @param int $id Id of record to delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($id) { diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index ad718829e18..12b8cdf581a 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -81,7 +81,7 @@ class FormFile * @param int $capture 1=Add tag capture="capture" to force use of micro or video recording to generate file. When setting this to 1, you must also provide a value for $accept. * @param int $disablemulti 0=Default, 1=Disable multiple file upload * @param int $nooutput 0=Output result with print, 1=Return result - * @return int|string <0 if KO, >0 if OK, or string if $noouput=1 + * @return int|string Return integer <0 if KO, >0 if OK, or string if $noouput=1 */ public function form_attach_new_file($url, $title = '', $addcancel = 0, $sectionid = 0, $perm = 1, $size = 50, $object = null, $options = '', $useajax = 1, $savingdocmask = '', $linkfiles = 1, $htmlname = 'formuserfile', $accept = '', $sectiondir = '', $usewithoutform = 0, $capture = 0, $disablemulti = 0, $nooutput = 0) { diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php index 5bb31a8806e..071db38ff78 100644 --- a/htdocs/core/class/html.formorder.class.php +++ b/htdocs/core/class/html.formorder.class.php @@ -79,7 +79,7 @@ class FormOrder extends Form * @param string $selected Id of preselected input method * @param string $htmlname Name of HTML select list * @param int $addempty 0=list with no empty value, 1=list with empty value - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function selectInputMethod($selected = '', $htmlname = 'source_id', $addempty = 0) { diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index aa1741e01fe..1fe32ee1ca1 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -524,7 +524,7 @@ class Ldap * @param string $dn DN entry key * @param array $info Attributes array * @param User $user Objet user that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function add($dn, $info, $user) { @@ -572,7 +572,7 @@ class Ldap * @param string $dn DN entry key * @param array $info Attributes array * @param User $user Objet user that modify - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function modify($dn, $info, $user) { @@ -630,7 +630,7 @@ class Ldap * @param string $newparent New parent (ou=xxx,dc=aaa,dc=bbb) * @param User $user Objet user that modify * @param bool $deleteoldrdn If true the old RDN value(s) is removed, else the old RDN value(s) is retained as non-distinguished values of the entry. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function rename($dn, $newrdn, $newparent, $user, $deleteoldrdn = true) { @@ -674,7 +674,7 @@ class Ldap * @param string $olddn Old DN entry key (before update) * @param string $newrdn New RDN entry key (uid=qqq) (for ldap_rename) * @param string $newparent New parent (ou=xxx,dc=aaa,dc=bbb) (for ldap_rename) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($dn, $info, $user, $olddn, $newrdn = false, $newparent = false) { @@ -724,7 +724,7 @@ class Ldap * Ldap object connect and bind must have been done * * @param string $dn DN entry key - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($dn) { @@ -794,7 +794,7 @@ class Ldap * * @param string $dn DN entry key * @param array $info Attributes array - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function dump($dn, $info) { @@ -871,7 +871,7 @@ class Ldap * @param string $dn DN entry key * @param array $info Attributes array * @param User $user Objet user that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addAttribute($dn, $info, $user) { @@ -917,7 +917,7 @@ class Ldap * @param string $dn DN entry key * @param array $info Attributes array * @param User $user Objet user that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateAttribute($dn, $info, $user) { @@ -963,7 +963,7 @@ class Ldap * @param string $dn DN entry key * @param array $info Attributes array * @param User $user Objet user that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteAttribute($dn, $info, $user) { diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php index 7f80422432b..fd010ed944e 100644 --- a/htdocs/core/class/menubase.class.php +++ b/htdocs/core/class/menubase.class.php @@ -325,7 +325,7 @@ class Menubase * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -390,7 +390,7 @@ class Menubase * * @param int $id Id object * @param User $user User that load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $user = null) { @@ -462,7 +462,7 @@ class Menubase * Delete object in database * * @param User $user User that delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { diff --git a/htdocs/core/class/rssparser.class.php b/htdocs/core/class/rssparser.class.php index 5ebbed867f5..a58ba5fe186 100644 --- a/htdocs/core/class/rssparser.class.php +++ b/htdocs/core/class/rssparser.class.php @@ -197,7 +197,7 @@ class RssParser * @param int $maxNb Max nb of records to get (0 for no limit) * @param int $cachedelay 0=No cache, nb of seconds we accept cache files (cachedir must also be defined) * @param string $cachedir Directory where to save cache file (For example $conf->externalrss->dir_temp) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function parser($urlRSS, $maxNb = 0, $cachedelay = 60, $cachedir = '') { diff --git a/htdocs/core/class/timespent.class.php b/htdocs/core/class/timespent.class.php index 687025114f5..85f1bf410ea 100644 --- a/htdocs/core/class/timespent.class.php +++ b/htdocs/core/class/timespent.class.php @@ -201,7 +201,7 @@ class TimeSpent extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -310,7 +310,7 @@ class TimeSpent extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -404,7 +404,7 @@ class TimeSpent extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -416,7 +416,7 @@ class TimeSpent extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -579,7 +579,7 @@ class TimeSpent extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/core/class/utils.class.php b/htdocs/core/class/utils.class.php index 6795c3b913e..707104c0543 100644 --- a/htdocs/core/class/utils.class.php +++ b/htdocs/core/class/utils.class.php @@ -765,7 +765,7 @@ class Utils * Generate documentation of a Module * * @param string $module Module name - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function generateDoc($module) { @@ -1082,7 +1082,7 @@ class Utils * * @param string $outputfile Output file name * @param string $tables Table name or '*' for all - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function backupTables($outputfile, $tables = '*') { diff --git a/htdocs/core/db/Database.interface.php b/htdocs/core/db/Database.interface.php index 31a92fdf2c6..8e320c0e6eb 100644 --- a/htdocs/core/db/Database.interface.php +++ b/htdocs/core/db/Database.interface.php @@ -362,7 +362,7 @@ interface Database * @param string $field_name Name of field to add * @param string $field_desc Associative array of description of the field to insert [parameter name][parameter value] * @param string $field_position Optional ex .: "after field stuff" - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLAddField($table, $field_name, $field_desc, $field_position = ""); // phpcs:enable @@ -373,7 +373,7 @@ interface Database * * @param string $table Name of table * @param string $field_name Name of field to drop - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLDropField($table, $field_name); // phpcs:enable @@ -385,7 +385,7 @@ interface Database * @param string $table Name of table * @param string $field_name Name of field to modify * @param string $field_desc Array with description of field format - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLUpdateField($table, $field_name, $field_desc); // phpcs:enable diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 77b339f4fc2..d7e3e352b03 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -925,7 +925,7 @@ class DoliDBMysqli extends DoliDB * @param string $field_name Name of field to add * @param string $field_desc Tableau associatif de description du champ a inserer[nom du parametre][valeur du parametre] * @param string $field_position Optionnel ex.: "after champtruc" - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLAddField($table, $field_name, $field_desc, $field_position = "") { @@ -971,7 +971,7 @@ class DoliDBMysqli extends DoliDB * @param string $table Name of table * @param string $field_name Name of field to modify * @param string $field_desc Array with description of field format - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLUpdateField($table, $field_name, $field_desc) { @@ -1016,7 +1016,7 @@ class DoliDBMysqli extends DoliDB * * @param string $table Name of table * @param string $field_name Name of field to drop - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLDropField($table, $field_name) { diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index c74f030556e..828e06d391a 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -1207,7 +1207,7 @@ class DoliDBPgsql extends DoliDB * @param string $field_name Name of field to add * @param string $field_desc Tableau associatif de description du champ a inserer[nom du parametre][valeur du parametre] * @param string $field_position Optionnel ex.: "after champtruc" - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLAddField($table, $field_name, $field_desc, $field_position = "") { @@ -1253,7 +1253,7 @@ class DoliDBPgsql extends DoliDB * @param string $table Name of table * @param string $field_name Name of field to modify * @param string $field_desc Array with description of field format - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLUpdateField($table, $field_name, $field_desc) { @@ -1298,7 +1298,7 @@ class DoliDBPgsql extends DoliDB * * @param string $table Name of table * @param string $field_name Name of field to drop - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLDropField($table, $field_name) { diff --git a/htdocs/core/db/sqlite3.class.php b/htdocs/core/db/sqlite3.class.php index 9d8f5fcb81d..e1d0f8190c1 100644 --- a/htdocs/core/db/sqlite3.class.php +++ b/htdocs/core/db/sqlite3.class.php @@ -1079,7 +1079,7 @@ class DoliDBSqlite3 extends DoliDB * @param string $field_name Name of field to add * @param string $field_desc Tableau associatif de description du champ a inserer[nom du parametre][valeur du parametre] * @param string $field_position Optionnel ex.: "after champtruc" - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLAddField($table, $field_name, $field_desc, $field_position = "") { @@ -1125,7 +1125,7 @@ class DoliDBSqlite3 extends DoliDB * @param string $table Name of table * @param string $field_name Name of field to modify * @param string $field_desc Array with description of field format - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLUpdateField($table, $field_name, $field_desc) { @@ -1149,7 +1149,7 @@ class DoliDBSqlite3 extends DoliDB * * @param string $table Name of table * @param string $field_name Name of field to drop - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLDropField($table, $field_name) { diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php index a25e0d4b26e..6ce62e51f77 100644 --- a/htdocs/core/lib/admin.lib.php +++ b/htdocs/core/lib/admin.lib.php @@ -555,7 +555,7 @@ function run_sql($sqlfile, $silent = 1, $entity = 0, $usesavepoint = 1, $handler * @param DoliDB $db Database handler * @param string|int $name Name of constant or rowid of line * @param int $entity Multi company id, -1 for all entities - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * * @see dolibarr_get_const(), dolibarr_set_const(), dol_set_user_param() */ @@ -1913,7 +1913,7 @@ function showModulesExludedForExternal($modules) * @param string $type Model type * @param string $label Model label * @param string $description Model description - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function addDocumentModel($name, $type, $label = '', $description = '') { @@ -1944,7 +1944,7 @@ function addDocumentModel($name, $type, $label = '', $description = '') * * @param string $name Model name * @param string $type Model type - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function delDocumentModel($name, $type) { diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index 32a6f66733c..c7bf29fef0c 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -2167,7 +2167,7 @@ function dol_convert_file($fileinput, $ext = 'png', $fileoutput = '', $page = '' * @param string $outputfile Target file name * @param string $mode 'gz' or 'bz' or 'zip' * @param string $errorstring Error string - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see dol_uncompress(), dol_compress_dir() */ function dol_compress_file($inputfile, $outputfile, $mode = "gz", &$errorstring = null) @@ -2420,7 +2420,7 @@ function dol_uncompress($inputfile, $outputdir) * @param string $excludefiles A regex pattern. For example: '/\.log$|\/temp\//' * @param string $rootdirinzip Add a root dir level in zip file * @param string $newmask Mask for new file (0 by default means $conf->global->MAIN_UMASK). Example: '0666' - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see dol_uncompress(), dol_compress_file() */ function dol_compress_dir($inputdir, $outputfile, $mode = "zip", $excludefiles = '', $rootdirinzip = '', $newmask = 0) diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 4c1f995ffe8..847009dbace 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1775,7 +1775,7 @@ function weight_convert($weight, &$from_unit, $to_unit) * @param Conf $conf Object conf * @param User $user Object user * @param array $tab Array (key=>value) with all parameters to save/update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * * @see dolibarr_get_const(), dolibarr_set_const(), dolibarr_del_const() */ diff --git a/htdocs/core/lib/security2.lib.php b/htdocs/core/lib/security2.lib.php index 54be09a0b34..c166a7053ee 100644 --- a/htdocs/core/lib/security2.lib.php +++ b/htdocs/core/lib/security2.lib.php @@ -377,7 +377,7 @@ function makesalt($type = CRYPT_SALT_LENGTH) * Encode or decode database password in config file * * @param int $level Encode level: 0 no encoding, 1 encoding - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function encodedecode_dbpassconf($level = 0) { diff --git a/htdocs/core/lib/sendings.lib.php b/htdocs/core/lib/sendings.lib.php index 6b30eb266e0..03a867e843e 100644 --- a/htdocs/core/lib/sendings.lib.php +++ b/htdocs/core/lib/sendings.lib.php @@ -229,7 +229,7 @@ function delivery_prepare_head($object) * @param string $origin Origin ('commande', ...) * @param int $origin_id Origin id * @param string $filter Filter - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function show_list_sending_receive($origin, $origin_id, $filter = '') { diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index 3dbf0eb5b19..904fc9808e3 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -441,7 +441,7 @@ function dolWebsiteOutput($content, $contenttype = 'html', $containerid = '') * @param int $websiteid ID of website * @param string $websitepagetype Type of page ('blogpost', 'page', ...) * @param int $websitepageid ID of page - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function dolWebsiteIncrementCounter($websiteid, $websitepagetype, $websitepageid) { diff --git a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php index b38b660faf6..706b6213a7c 100644 --- a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php +++ b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php @@ -131,7 +131,7 @@ class modPhpbarcode extends ModeleBarCode * @param string $readable Code can be read (What is this ? is this used ?) * @param integer $scale Scale * @param integer $nooutputiferror No output if error - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function buildBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0) { @@ -181,7 +181,7 @@ class modPhpbarcode extends ModeleBarCode * @param string $readable Code can be read * @param integer $scale Scale * @param integer $nooutputiferror No output if error - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0) { diff --git a/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php b/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php index 4cd98150c8a..f88228eb746 100644 --- a/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php +++ b/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php @@ -101,7 +101,7 @@ class modTcpdfbarcode extends ModeleBarCode * @param string $readable Code can be read (What is this ? is this used ?) * @param integer $scale Scale (not used with this engine) * @param integer $nooutputiferror No output if error (not used with this engine) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function buildBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0) { @@ -149,7 +149,7 @@ class modTcpdfbarcode extends ModeleBarCode * @param string $readable Code can be read * @param integer $scale Scale (not used with this engine) * @param integer $nooutputiferror No output if error (not used with this engine) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0) { diff --git a/htdocs/core/modules/cheque/modules_chequereceipts.php b/htdocs/core/modules/cheque/modules_chequereceipts.php index ba14e8e6027..d7ca5096b47 100644 --- a/htdocs/core/modules/cheque/modules_chequereceipts.php +++ b/htdocs/core/modules/cheque/modules_chequereceipts.php @@ -81,7 +81,7 @@ abstract class ModeleChequeReceipts extends CommonDocGenerator * @param string $message Message * @param string $modele Force le modele a utiliser ('' to not force) * @param Translate $outputlangs Object lang a utiliser pour traduction - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * TODO Use commonDocGenerator */ function chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs) diff --git a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php index ff69e4aa079..c00d2dbe01f 100644 --- a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php @@ -669,7 +669,7 @@ class pdf_einstein extends ModelePDFCommandes * @param Commande $object Object order * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php b/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php index 99228b9a813..259644adb0a 100644 --- a/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php @@ -874,7 +874,7 @@ class pdf_eratosthene extends ModelePDFCommandes * @param Commande $object Object order * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php b/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php index 6728d7f6d8f..c2b860ec43e 100644 --- a/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php +++ b/htdocs/core/modules/expensereport/doc/pdf_standard.modules.php @@ -1008,7 +1008,7 @@ class pdf_standard extends ModeleExpenseReport * @param ExpenseReport $object Object expensereport * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function tablePayments(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/export/export_csviso.modules.php b/htdocs/core/modules/export/export_csviso.modules.php index 04eeccfcd75..26ccaf859e6 100644 --- a/htdocs/core/modules/export/export_csviso.modules.php +++ b/htdocs/core/modules/export/export_csviso.modules.php @@ -71,7 +71,7 @@ class ExportCsvIso extends ExportCsv * @param array $array_selected_sorted Array with list of field to export * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types) { @@ -89,7 +89,7 @@ class ExportCsvIso extends ExportCsv * @param resource $objp A record from a fetch with all fields from select * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types) { diff --git a/htdocs/core/modules/export/export_csvutf8.modules.php b/htdocs/core/modules/export/export_csvutf8.modules.php index 184741514eb..f044b4b7ecd 100644 --- a/htdocs/core/modules/export/export_csvutf8.modules.php +++ b/htdocs/core/modules/export/export_csvutf8.modules.php @@ -69,7 +69,7 @@ class ExportCsvUtf8 extends ExportCsv * @param array $array_selected_sorted Array with list of field to export * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types) { @@ -87,7 +87,7 @@ class ExportCsvUtf8 extends ExportCsv * @param resource $objp A record from a fetch with all fields from select * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types) { diff --git a/htdocs/core/modules/export/export_excel2007.modules.php b/htdocs/core/modules/export/export_excel2007.modules.php index c4b5dc4ab90..3c0db565e91 100644 --- a/htdocs/core/modules/export/export_excel2007.modules.php +++ b/htdocs/core/modules/export/export_excel2007.modules.php @@ -224,7 +224,7 @@ class ExportExcel2007 extends ModeleExports * Write header * * @param Translate $outputlangs Object lang to translate values - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_header($outputlangs) { @@ -243,7 +243,7 @@ class ExportExcel2007 extends ModeleExports * @param array $array_selected_sorted Array with list of field to export * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types) { @@ -303,7 +303,7 @@ class ExportExcel2007 extends ModeleExports * @param resource $objp A record from a fetch with all fields from select * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types) { @@ -407,7 +407,7 @@ class ExportExcel2007 extends ModeleExports * Write footer * * @param Translate $outputlangs Output language object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_footer($outputlangs) { @@ -420,7 +420,7 @@ class ExportExcel2007 extends ModeleExports /** * Close Excel file * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function close_file() { diff --git a/htdocs/core/modules/export/export_tsv.modules.php b/htdocs/core/modules/export/export_tsv.modules.php index 956639f0135..e0338d44d32 100644 --- a/htdocs/core/modules/export/export_tsv.modules.php +++ b/htdocs/core/modules/export/export_tsv.modules.php @@ -183,7 +183,7 @@ class ExportTsv extends ModeleExports * Output header into file * * @param Translate $outputlangs Output language object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_header($outputlangs) { @@ -200,7 +200,7 @@ class ExportTsv extends ModeleExports * @param array $array_selected_sorted Array with list of field to export * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types) { @@ -233,7 +233,7 @@ class ExportTsv extends ModeleExports * @param Resource $objp A record from a fetch with all fields from select * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types) { @@ -288,7 +288,7 @@ class ExportTsv extends ModeleExports * Output footer into file * * @param Translate $outputlangs Output language object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_footer($outputlangs) { @@ -300,7 +300,7 @@ class ExportTsv extends ModeleExports /** * Close file handle * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function close_file() { diff --git a/htdocs/core/modules/export/exportcsv.class.php b/htdocs/core/modules/export/exportcsv.class.php index 373beca9689..794c9ac0391 100644 --- a/htdocs/core/modules/export/exportcsv.class.php +++ b/htdocs/core/modules/export/exportcsv.class.php @@ -161,7 +161,7 @@ class ExportCsv extends ModeleExports * Output header into file * * @param Translate $outputlangs Output language object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_header($outputlangs) { @@ -178,7 +178,7 @@ class ExportCsv extends ModeleExports * @param array $array_selected_sorted Array with list of field to export * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types) { @@ -216,7 +216,7 @@ class ExportCsv extends ModeleExports * @param Resource $objp A record from a fetch with all fields from select * @param Translate $outputlangs Object lang to translate values * @param array $array_types Array with types of fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types) { @@ -277,7 +277,7 @@ class ExportCsv extends ModeleExports * Output footer into file * * @param Translate $outputlangs Output language object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_footer($outputlangs) { @@ -289,7 +289,7 @@ class ExportCsv extends ModeleExports /** * Close file handle * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function close_file() { diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 09878fc0666..db40f506a4a 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -907,7 +907,7 @@ class pdf_crabe extends ModelePDFFactures * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output * @param int $heightforfooter Height for footer - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heightforfooter = 0) { diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index 35f322af75e..167a9632c03 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -1056,7 +1056,7 @@ class pdf_sponge extends ModelePDFFactures * @param Facture $object Object invoice * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/import/import_csv.modules.php b/htdocs/core/modules/import/import_csv.modules.php index 4e0a9d5bdc7..59588eeedec 100644 --- a/htdocs/core/modules/import/import_csv.modules.php +++ b/htdocs/core/modules/import/import_csv.modules.php @@ -301,7 +301,7 @@ class ImportCsv extends ModeleImports * @param int $maxfields Max number of fields to use * @param string $importid Import key * @param array $updatekeys Array of keys to use to try to do an update first before insert. This field are defined into the module descriptor. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function import_insert($arrayrecord, $array_match_file_to_database, $objimport, $maxfields, $importid, $updatekeys) { diff --git a/htdocs/core/modules/import/import_xlsx.modules.php b/htdocs/core/modules/import/import_xlsx.modules.php index cb785f010de..71aec0b4711 100644 --- a/htdocs/core/modules/import/import_xlsx.modules.php +++ b/htdocs/core/modules/import/import_xlsx.modules.php @@ -344,7 +344,7 @@ class ImportXlsx extends ModeleImports * @param int $maxfields Max number of fields to use * @param string $importid Import key * @param array $updatekeys Array of keys to use to try to do an update first before insert. This field are defined into the module descriptor. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function import_insert($arrayrecord, $array_match_file_to_database, $objimport, $maxfields, $importid, $updatekeys) { diff --git a/htdocs/core/modules/member/modules_cards.php b/htdocs/core/modules/member/modules_cards.php index e706e854263..216822749ad 100644 --- a/htdocs/core/modules/member/modules_cards.php +++ b/htdocs/core/modules/member/modules_cards.php @@ -73,7 +73,7 @@ class ModelePDFCards * @param string $outputdir Output directory * @param string $template pdf generenate document class to use default 'standard' * @param string $filename Name of output file (without extension) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function members_card_pdf_create($db, $arrayofmembers, $modele, $outputlangs, $outputdir = '', $template = 'standard', $filename = 'tmp_cards') { diff --git a/htdocs/core/modules/mrp/doc/pdf_vinci.modules.php b/htdocs/core/modules/mrp/doc/pdf_vinci.modules.php index 7c56759b72d..e29da8ddb89 100644 --- a/htdocs/core/modules/mrp/doc/pdf_vinci.modules.php +++ b/htdocs/core/modules/mrp/doc/pdf_vinci.modules.php @@ -661,7 +661,7 @@ class pdf_vinci extends ModelePDFMo * @param CommandeFournisseur $object Object order * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/printsheet/modules_labels.php b/htdocs/core/modules/printsheet/modules_labels.php index 626824845bd..d5e4b54a3fa 100644 --- a/htdocs/core/modules/printsheet/modules_labels.php +++ b/htdocs/core/modules/printsheet/modules_labels.php @@ -73,7 +73,7 @@ class ModelePDFLabels * @param string $outputdir Output directory * @param string $template pdf generenate document class to use default 'standardlabel' * @param string $filename Short file name of PDF output file - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function doc_label_pdf_create($db, $arrayofrecords, $modele, $outputlangs, $outputdir = '', $template = 'standardlabel', $filename = 'tmp_address_sheet.pdf') { diff --git a/htdocs/core/modules/propale/doc/pdf_azur.modules.php b/htdocs/core/modules/propale/doc/pdf_azur.modules.php index 0b497ef9db9..35467a510a5 100644 --- a/htdocs/core/modules/propale/doc/pdf_azur.modules.php +++ b/htdocs/core/modules/propale/doc/pdf_azur.modules.php @@ -856,7 +856,7 @@ class pdf_azur extends ModelePDFPropales * @param Propal $object Object proposal * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/propale/doc/pdf_cyan.modules.php b/htdocs/core/modules/propale/doc/pdf_cyan.modules.php index 0bffffe6bb7..067742cbb02 100644 --- a/htdocs/core/modules/propale/doc/pdf_cyan.modules.php +++ b/htdocs/core/modules/propale/doc/pdf_cyan.modules.php @@ -975,7 +975,7 @@ class pdf_cyan extends ModelePDFPropales * @param Propal $object Object proposal * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/rapport/pdf_paiement.class.php b/htdocs/core/modules/rapport/pdf_paiement.class.php index 46128c6afcf..62091507449 100644 --- a/htdocs/core/modules/rapport/pdf_paiement.class.php +++ b/htdocs/core/modules/rapport/pdf_paiement.class.php @@ -121,7 +121,7 @@ class pdf_paiement extends CommonDocGenerator * @param int $month mois du rapport * @param int $year annee du rapport * @param string $outputlangs Lang output object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function write_file($_dir, $month, $year, $outputlangs) { diff --git a/htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php b/htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php index 142ae004ff2..feb9d62f659 100644 --- a/htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php +++ b/htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php @@ -781,7 +781,7 @@ class pdf_eagle_proforma extends ModelePDFCommandes * @param Object $object Object order * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php index 01f61e6899d..2680a0e37ae 100644 --- a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php +++ b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php @@ -934,7 +934,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output * @param int $heightforfooter Height for footer - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heightforfooter = 0) { diff --git a/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php b/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php index e7186ebf0a9..c73bacf5c0c 100644 --- a/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php +++ b/htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php @@ -828,7 +828,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders * @param CommandeFournisseur $object Object order * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php b/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php index 321b6c53c64..67b704da4c9 100644 --- a/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php +++ b/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php @@ -708,7 +708,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders * @param CommandeFournisseur $object Object order * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php b/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php index e64d6b6cedf..920d3dd0e49 100644 --- a/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php +++ b/htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php @@ -697,7 +697,7 @@ class pdf_aurore extends ModelePDFSupplierProposal * @param Object $object Object proposal * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php b/htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php index f72f896d335..06c99477bd4 100644 --- a/htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php +++ b/htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php @@ -828,7 +828,7 @@ class pdf_zenith extends ModelePDFSupplierProposal * @param SupplierProposal $object Object supplier propsal * @param int $posy Position y in PDF * @param Translate $outputlangs Object langs for output - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) { diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php index d4e25ddfcc4..5b95f3861ef 100644 --- a/htdocs/cron/class/cronjob.class.php +++ b/htdocs/cron/class/cronjob.class.php @@ -205,7 +205,7 @@ class Cronjob extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -409,7 +409,7 @@ class Cronjob extends CommonObject * @param int $id Id object * @param string $objectname Object name * @param string $methodname Method name - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $objectname = '', $methodname = '') { @@ -519,7 +519,7 @@ class Cronjob extends CommonObject * @param int $status display active or not * @param array $filter filter output * @param int $processing Processing or not - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = 'DESC', $sortfield = 't.rowid', $limit = 0, $offset = 0, $status = 1, $filter = '', $processing = -1) { @@ -657,7 +657,7 @@ class Cronjob extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -842,7 +842,7 @@ class Cronjob extends CommonObject * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -1099,7 +1099,7 @@ class Cronjob extends CommonObject * Load object information * * @param int $id ID - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function info($id) { @@ -1138,7 +1138,7 @@ class Cronjob extends CommonObject * This function does not plan the next run. This is done by function ->reprogram_jobs * * @param string $userlogin User login - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function run_jobs($userlogin) { @@ -1429,7 +1429,7 @@ class Cronjob extends CommonObject * * @param string $userlogin User login * @param integer $now Date returned by dol_now() - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reprogram_jobs($userlogin, $now) { diff --git a/htdocs/debugbar/class/TraceableDB.php b/htdocs/debugbar/class/TraceableDB.php index 8032168db6e..8c4872fce24 100644 --- a/htdocs/debugbar/class/TraceableDB.php +++ b/htdocs/debugbar/class/TraceableDB.php @@ -535,7 +535,7 @@ class TraceableDB extends DoliDB * @param string $field_name Name of field to add * @param string $field_desc Tableau associatif de description du champ a inserer[nom du parametre][valeur du parametre] * @param string $field_position Optionnel ex.: "after champtruc" - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLAddField($table, $field_name, $field_desc, $field_position = "") { @@ -547,7 +547,7 @@ class TraceableDB extends DoliDB * * @param string $table Name of table * @param string $field_name Name of field to drop - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLDropField($table, $field_name) { @@ -560,7 +560,7 @@ class TraceableDB extends DoliDB * @param string $table Name of table * @param string $field_name Name of field to modify * @param string $field_desc Array with description of field format - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function DDLUpdateField($table, $field_name, $field_desc) { diff --git a/htdocs/delivery/class/delivery.class.php b/htdocs/delivery/class/delivery.class.php index 8384dd96a1f..40253a97b6b 100644 --- a/htdocs/delivery/class/delivery.class.php +++ b/htdocs/delivery/class/delivery.class.php @@ -278,7 +278,7 @@ class Delivery extends CommonObject * @param string $fk_product Id of predefined product * @param string $description Description * @param array $array_options Array options - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create_line($origin_id, $qty, $fk_product, $description, $array_options = null) { @@ -598,7 +598,7 @@ class Delivery extends CommonObject * * @param int $id Id of line (livraison line) * @param array $array_options extrafields array - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_line($id, $array_options = 0) { @@ -838,7 +838,7 @@ class Delivery extends CommonObject /** * Load lines insto $this->lines. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines() { @@ -1082,7 +1082,7 @@ class Delivery extends CommonObject * * @param User $user Objet utilisateur qui modifie * @param integer $delivery_date Delivery date - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDeliveryDate($user, $delivery_date) { diff --git a/htdocs/don/class/don.class.php b/htdocs/don/class/don.class.php index 04ab9ac5b70..3f15e5fde74 100644 --- a/htdocs/don/class/don.class.php +++ b/htdocs/don/class/don.class.php @@ -634,7 +634,7 @@ class Don extends CommonObject * * @param int $id Id of donation to load * @param string $ref Ref of donation to load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -715,7 +715,7 @@ class Don extends CommonObject * * @param User $user User that validate * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setValid($user, $notrigger = 0) { @@ -729,7 +729,7 @@ class Don extends CommonObject * @param int $id id of donation * @param int $userid User who validate the donation/promise * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function valid_promesse($id, $userid, $notrigger = 0) { @@ -774,7 +774,7 @@ class Don extends CommonObject * * @param int $id id of donation * @param int $modepayment mode of payment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($id, $modepayment = 0) { @@ -804,7 +804,7 @@ class Don extends CommonObject * Set donation to status cancelled * * @param int $id id of donation - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_cancel($id) { @@ -881,7 +881,7 @@ class Don extends CommonObject /** * Charge indicateurs this->nb pour le tableau de bord * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { diff --git a/htdocs/don/class/paymentdonation.class.php b/htdocs/don/class/paymentdonation.class.php index ca7ee4f3399..aeadc6122b0 100644 --- a/htdocs/don/class/paymentdonation.class.php +++ b/htdocs/don/class/paymentdonation.class.php @@ -234,7 +234,7 @@ class PaymentDonation extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -302,7 +302,7 @@ class PaymentDonation extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -396,7 +396,7 @@ class PaymentDonation extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -570,7 +570,7 @@ class PaymentDonation extends CommonObject * @param int $accountid Id of bank account to do link with * @param string $emetteur_nom Name of transmitter * @param string $emetteur_banque Name of bank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addPaymentToBank($user, $mode, $label, $accountid, $emetteur_nom, $emetteur_banque) { diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php index 0f14c6d7bc3..451057b5740 100644 --- a/htdocs/ecm/class/ecmdirectory.class.php +++ b/htdocs/ecm/class/ecmdirectory.class.php @@ -132,7 +132,7 @@ class EcmDirectory extends CommonObject * Create record into database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -237,7 +237,7 @@ class EcmDirectory extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -291,7 +291,7 @@ class EcmDirectory extends CommonObject * Update cache of nb of documents into database * * @param string $value '+' or '-' or new number - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function changeNbOfFiles($value) { @@ -327,7 +327,7 @@ class EcmDirectory extends CommonObject * Load object in memory from database * * @param int $id Id of object - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id) { @@ -382,7 +382,7 @@ class EcmDirectory extends CommonObject * @param User $user User that delete * @param string $mode 'all'=delete all, 'databaseonly'=only database entry, 'fileonly' (not implemented) * @param int $deletedirrecursive 1=Agree to delete content recursiveley (otherwise an error will be returned when trying to delete) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $mode = 'all', $deletedirrecursive = 0) { @@ -557,7 +557,7 @@ class EcmDirectory extends CommonObject /** * Load this->motherof that is array(id_son=>id_parent, ...) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_motherof() { diff --git a/htdocs/ecm/class/ecmfiles.class.php b/htdocs/ecm/class/ecmfiles.class.php index a72d5e89604..ba102788fae 100644 --- a/htdocs/ecm/class/ecmfiles.class.php +++ b/htdocs/ecm/class/ecmfiles.class.php @@ -197,7 +197,7 @@ class EcmFiles extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -394,7 +394,7 @@ class EcmFiles extends CommonObject * @param string $hashforshare Hash of file sharing, or 'shared' * @param string $src_object_type src_object_type to search (value of object->table_element) * @param string $src_object_id src_object_id to search - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = '', $relativepath = '', $hashoffile = '', $hashforshare = '', $src_object_type = '', $src_object_id = 0) { @@ -537,7 +537,7 @@ class EcmFiles extends CommonObject * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND') { @@ -641,7 +641,7 @@ class EcmFiles extends CommonObject * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -763,7 +763,7 @@ class EcmFiles extends CommonObject * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/emailcollector/class/emailcollector.class.php b/htdocs/emailcollector/class/emailcollector.class.php index 1a2afdd3dae..151aa4be275 100644 --- a/htdocs/emailcollector/class/emailcollector.class.php +++ b/htdocs/emailcollector/class/emailcollector.class.php @@ -301,7 +301,7 @@ class EmailCollector extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -430,7 +430,7 @@ class EmailCollector extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -446,7 +446,7 @@ class EmailCollector extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ /* public function fetchLines() @@ -521,7 +521,7 @@ class EmailCollector extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -549,7 +549,7 @@ class EmailCollector extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -718,7 +718,7 @@ class EmailCollector extends CommonObject /** * Fetch filters * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see fetchActions() */ public function fetchFilters() @@ -750,7 +750,7 @@ class EmailCollector extends CommonObject /** * Fetch actions * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @see fetchFilters() */ public function fetchActions() @@ -1084,7 +1084,7 @@ class EmailCollector extends CommonObject * Execute collect for current collector loaded previously with fetch. * * @param int $mode 0=Mode production, 1=Mode test (read IMAP and try SQL update then rollback), 2=Mode test with no SQL updates - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function doCollectOneCollector($mode = 0) { diff --git a/htdocs/emailcollector/class/emailcollectoraction.class.php b/htdocs/emailcollector/class/emailcollectoraction.class.php index 2cd72a4d90b..de88676acc3 100644 --- a/htdocs/emailcollector/class/emailcollectoraction.class.php +++ b/htdocs/emailcollector/class/emailcollectoraction.class.php @@ -151,7 +151,7 @@ class EmailCollectorAction extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -231,7 +231,7 @@ class EmailCollectorAction extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -245,7 +245,7 @@ class EmailCollectorAction extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -257,7 +257,7 @@ class EmailCollectorAction extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/emailcollector/class/emailcollectorfilter.class.php b/htdocs/emailcollector/class/emailcollectorfilter.class.php index 8c818f7a31d..52ff4e65512 100644 --- a/htdocs/emailcollector/class/emailcollectorfilter.class.php +++ b/htdocs/emailcollector/class/emailcollectorfilter.class.php @@ -153,7 +153,7 @@ class EmailCollectorFilter extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -245,7 +245,7 @@ class EmailCollectorFilter extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -259,7 +259,7 @@ class EmailCollectorFilter extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -271,7 +271,7 @@ class EmailCollectorFilter extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/eventorganization/class/conferenceorbooth.class.php b/htdocs/eventorganization/class/conferenceorbooth.class.php index e1b2fa2350f..84c17a2e637 100644 --- a/htdocs/eventorganization/class/conferenceorbooth.class.php +++ b/htdocs/eventorganization/class/conferenceorbooth.class.php @@ -190,7 +190,7 @@ class ConferenceOrBooth extends ActionComm * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -249,7 +249,7 @@ class ConferenceOrBooth extends ActionComm * @param string $ref_ext Ref ext to get * @param string $email_msgid Email msgid * @param int $loadresources 1=Load also resources - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null, $ref_ext = '', $email_msgid = '', $loadresources = 1) { @@ -356,7 +356,7 @@ class ConferenceOrBooth extends ActionComm * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -369,7 +369,7 @@ class ConferenceOrBooth extends ActionComm * Delete object in database * * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($notrigger = false) { @@ -444,7 +444,7 @@ class ConferenceOrBooth extends ActionComm * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/eventorganization/class/conferenceorboothattendee.class.php b/htdocs/eventorganization/class/conferenceorboothattendee.class.php index 9292910edbc..9f68764f77c 100644 --- a/htdocs/eventorganization/class/conferenceorboothattendee.class.php +++ b/htdocs/eventorganization/class/conferenceorboothattendee.class.php @@ -243,7 +243,7 @@ class ConferenceOrBoothAttendee extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -374,7 +374,7 @@ class ConferenceOrBoothAttendee extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -388,7 +388,7 @@ class ConferenceOrBoothAttendee extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -485,7 +485,7 @@ class ConferenceOrBoothAttendee extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -497,7 +497,7 @@ class ConferenceOrBoothAttendee extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -685,7 +685,7 @@ class ConferenceOrBoothAttendee extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index d65c2c4506f..463e3b07c39 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -523,7 +523,7 @@ class Expedition extends CommonObject * * @param object $line_ext Objet with full information of line. $line_ext->detail_batch must be an array of ExpeditionLineBatch * @param array $array_options extrafields array - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create_line_batch($line_ext, $array_options = 0) { @@ -894,7 +894,7 @@ class Expedition extends CommonObject * @param int $id Id of source line (order line) * @param int $qty Quantity * @param array $array_options extrafields array - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addline($entrepot_id, $id, $qty, $array_options = 0) { @@ -977,7 +977,7 @@ class Expedition extends CommonObject * * @param array $dbatch Array of value (key 'detail' -> Array, key 'qty' total quantity for line, key ix_l : original line index) * @param array $array_options extrafields array - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addline_batch($dbatch, $array_options = 0) { @@ -1045,7 +1045,7 @@ class Expedition extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -2024,7 +2024,7 @@ class Expedition extends CommonObject * * @param User $user Objet user that modify * @param integer $delivery_date Date of delivery - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDeliveryDate($user, $delivery_date) { @@ -2141,7 +2141,7 @@ class Expedition extends CommonObject /** * Classify the shipping as closed (this record also the stock movement) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setClosed() { @@ -2226,7 +2226,7 @@ class Expedition extends CommonObject * * @param User $user Object user that modify * @param string $labelmovement Label of movement - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @throws Exception * */ @@ -2356,7 +2356,7 @@ class Expedition extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { @@ -2740,7 +2740,7 @@ class ExpeditionLigne extends CommonObjectLine * Load line expedition * * @param int $rowid Id line order - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index 13ba6ec2db5..244cc1f0219 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -301,7 +301,7 @@ class ExpenseReport extends CommonObject * * @param User $user User that create * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $notrigger = 0) { @@ -549,7 +549,7 @@ class ExpenseReport extends CommonObject * @param User $user User making change * @param int $notrigger Disable triggers * @param User $userofexpensereport New user we want to have the expense report on. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0, $userofexpensereport = null) { @@ -611,7 +611,7 @@ class ExpenseReport extends CommonObject * * @param int $id Id {@min 1} * @param string $ref Ref {@name ref} - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -726,7 +726,7 @@ class ExpenseReport extends CommonObject * @param int $id Id of expense report * @param user $fuser User making change * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_paid($id, $fuser, $notrigger = 0) { @@ -741,7 +741,7 @@ class ExpenseReport extends CommonObject * @param int $id Id of expense report * @param user $fuser User making change * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($id, $fuser, $notrigger = 0) { @@ -939,7 +939,7 @@ class ExpenseReport extends CommonObject * * @param int $projectid Project id * @param User $user User - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_line_by_project($projectid, $user = '') { @@ -1135,7 +1135,7 @@ class ExpenseReport extends CommonObject * * @param User|null $user User that delete * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user = null, $notrigger = false) { @@ -1378,7 +1378,7 @@ class ExpenseReport extends CommonObject * set_save_from_refuse * * @param User $fuser User - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_save_from_refuse($fuser) { @@ -1532,7 +1532,7 @@ class ExpenseReport extends CommonObject * @see setUnpaid() * @param User $fuser User * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_unpaid($fuser, $notrigger = 0) { @@ -1546,7 +1546,7 @@ class ExpenseReport extends CommonObject * * @param User $fuser User * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setUnpaid($fuser, $notrigger = 0) { @@ -1599,7 +1599,7 @@ class ExpenseReport extends CommonObject * @param User $fuser User * @param string $detail Detail * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_cancel($fuser, $detail, $notrigger = 0) { @@ -1869,7 +1869,7 @@ class ExpenseReport extends CommonObject * @param int $fk_c_exp_tax_cat Car category id * @param int $type Type line * @param int $fk_ecm_files Id of ECM file to link to this expensereport line - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addline($qty = 0, $up = 0, $fk_c_type_fees = 0, $vatrate = 0, $date = '', $comments = '', $fk_project = 0, $fk_c_exp_tax_cat = 0, $type = 0, $fk_ecm_files = 0) { @@ -2158,7 +2158,7 @@ class ExpenseReport extends CommonObject * @param int $fk_c_exp_tax_cat Id of category of car * @param int $fk_ecm_files Id of ECM file to link to this expensereport line * @param int $notrigger 1=No trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateline($rowid, $type_fees_id, $projet_id, $vatrate, $comments, $qty, $value_unit, $date, $expensereport_id, $fk_c_exp_tax_cat = 0, $fk_ecm_files = 0, $notrigger = 0) { @@ -2286,7 +2286,7 @@ class ExpenseReport extends CommonObject * @param int $rowid Row id * @param User $fuser User * @param int $notrigger 1=No trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteline($rowid, $fuser = '', $notrigger = 0) { @@ -2330,7 +2330,7 @@ class ExpenseReport extends CommonObject * @param User $fuser User * @param integer $date_debut Start date * @param integer $date_fin End date - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function periode_existe($fuser, $date_debut, $date_fin) { @@ -2478,7 +2478,7 @@ class ExpenseReport extends CommonObject /** * Charge indicateurs this->nb pour le tableau de bord * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -2921,7 +2921,7 @@ class ExpenseReportLine extends CommonObjectLine * Fetch record for expense report detailed line * * @param int $rowid Id of object to load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { @@ -2989,7 +2989,7 @@ class ExpenseReportLine extends CommonObjectLine * * @param int $notrigger 1=No trigger * @param bool $fromaddline false=keep default behavior, true=exclude the update_price() of parent object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0, $fromaddline = false) { @@ -3131,7 +3131,7 @@ class ExpenseReportLine extends CommonObjectLine * Update line * * @param User $user User - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user) { diff --git a/htdocs/expensereport/class/expensereport_ik.class.php b/htdocs/expensereport/class/expensereport_ik.class.php index 3bff859b847..4507e8ff11f 100644 --- a/htdocs/expensereport/class/expensereport_ik.class.php +++ b/htdocs/expensereport/class/expensereport_ik.class.php @@ -98,7 +98,7 @@ class ExpenseReportIk extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -115,7 +115,7 @@ class ExpenseReportIk extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -131,7 +131,7 @@ class ExpenseReportIk extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -143,7 +143,7 @@ class ExpenseReportIk extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/expensereport/class/expensereport_rule.class.php b/htdocs/expensereport/class/expensereport_rule.class.php index d695359229d..d298a60ea90 100644 --- a/htdocs/expensereport/class/expensereport_rule.class.php +++ b/htdocs/expensereport/class/expensereport_rule.class.php @@ -142,7 +142,7 @@ class ExpenseReportRule extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -159,7 +159,7 @@ class ExpenseReportRule extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -174,7 +174,7 @@ class ExpenseReportRule extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -189,7 +189,7 @@ class ExpenseReportRule extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -201,7 +201,7 @@ class ExpenseReportRule extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/expensereport/class/paymentexpensereport.class.php b/htdocs/expensereport/class/paymentexpensereport.class.php index 8e92c943ec0..0dae8d38925 100644 --- a/htdocs/expensereport/class/paymentexpensereport.class.php +++ b/htdocs/expensereport/class/paymentexpensereport.class.php @@ -213,7 +213,7 @@ class PaymentExpenseReport extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -279,7 +279,7 @@ class PaymentExpenseReport extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -364,7 +364,7 @@ class PaymentExpenseReport extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -522,7 +522,7 @@ class PaymentExpenseReport extends CommonObject * @param int $accountid Id of bank account to do link with * @param string $emetteur_nom Name of transmitter * @param string $emetteur_banque Name of bank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addPaymentToBank($user, $mode, $label, $accountid, $emetteur_nom, $emetteur_banque) { diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 15ba3964ab0..ca471aec96c 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -102,7 +102,7 @@ class Export * * @param User $user Object user making export * @param string $filter Load a particular dataset only - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_arrays($user, $filter = '') { @@ -597,7 +597,7 @@ class Export * @param array $array_filterValue Filter on array of fields with a filter * @param string $sqlquery If set, transmit the sql request for select (otherwise, sql request is generated from arrays) * @param string $separator separator to fill $objmodel->separator with the new separator - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function build_file($user, $model, $datatoexport, $array_selected, $array_filterValue, $sqlquery = '', $separator = '') { @@ -798,7 +798,7 @@ class Export * Save an export model in database * * @param User $user Object user that save - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -838,7 +838,7 @@ class Export * Load an export profil from database * * @param int $id Id of profil to load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -875,7 +875,7 @@ class Export * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index 0b33941df0d..9c1e2ec4ab7 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -211,7 +211,7 @@ class Fichinter extends CommonObject /** * Load indicators into this->nb for board * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -250,7 +250,7 @@ class Fichinter extends CommonObject * * @param User $user Objet user that make creation * @param int $notrigger Disable all triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user, $notrigger = 0) { @@ -385,7 +385,7 @@ class Fichinter extends CommonObject * * @param User $user Objet user that make creation * @param int $notrigger Disable all triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -447,7 +447,7 @@ class Fichinter extends CommonObject * * @param int $rowid Id of intervention * @param string $ref Ref of intervention - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid, $ref = '') { @@ -522,7 +522,7 @@ class Fichinter extends CommonObject * Set status to draft * * @param User $user User that set draft - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user) { @@ -573,7 +573,7 @@ class Fichinter extends CommonObject * * @param User $user User that validate * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setValid($user, $notrigger = 0) { @@ -688,7 +688,7 @@ class Fichinter extends CommonObject * * @param User $user Objet user that close * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setClose($user, $notrigger = 0) { @@ -1048,7 +1048,7 @@ class Fichinter extends CommonObject * * @param User $user Object user who delete * @param int $notrigger Disable trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0) { @@ -1170,7 +1170,7 @@ class Fichinter extends CommonObject * * @param User $user Object user who define * @param integer $date_delivery date of delivery - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_date_delivery($user, $date_delivery) { @@ -1200,7 +1200,7 @@ class Fichinter extends CommonObject * * @param User $user Object user who modify * @param string $description description - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_description($user, $description) { @@ -1231,7 +1231,7 @@ class Fichinter extends CommonObject * * @param User $user Object user who modify * @param int $contractid Description - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_contrat($user, $contractid) { @@ -1434,7 +1434,7 @@ class Fichinter extends CommonObject /** * Load array lines ->lines * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines() { @@ -1663,7 +1663,7 @@ class FichinterLigne extends CommonObjectLine * Retrieve the line of intervention * * @param int $rowid Line id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { diff --git a/htdocs/fichinter/class/fichinterrec.class.php b/htdocs/fichinter/class/fichinterrec.class.php index 39a1b987e2e..34b814ade33 100644 --- a/htdocs/fichinter/class/fichinterrec.class.php +++ b/htdocs/fichinter/class/fichinterrec.class.php @@ -422,7 +422,7 @@ class FichinterRec extends Fichinter * * @param User $user Object user who delete * @param int $notrigger Disable trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0) { @@ -724,7 +724,7 @@ class FichinterRec extends Fichinter * * @param int $frequency value of frequency * @param string $unit unit of frequency (d, m, y) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setFrequencyAndUnit($frequency, $unit) { @@ -763,7 +763,7 @@ class FichinterRec extends Fichinter * * @param datetime $date date of execution * @param int $increment_nb_gen_done 0 do nothing more, >0 increment nb_gen_done - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setNextDate($date, $increment_nb_gen_done = 0) { @@ -795,7 +795,7 @@ class FichinterRec extends Fichinter * Update the maximum period * * @param int $nb number of maximum period - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setMaxPeriod($nb) { @@ -826,7 +826,7 @@ class FichinterRec extends Fichinter * Update the auto validate fichinter * * @param int $validate 0 to create in draft, 1 to create and validate fichinter - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setAutoValidate($validate) { @@ -852,7 +852,7 @@ class FichinterRec extends Fichinter /** * Update the Number of Generation Done * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateNbGenDone() { diff --git a/htdocs/fourn/class/fournisseur.class.php b/htdocs/fourn/class/fournisseur.class.php index 52f58b84620..f2c6953aebc 100644 --- a/htdocs/fourn/class/fournisseur.class.php +++ b/htdocs/fourn/class/fournisseur.class.php @@ -101,7 +101,7 @@ class Fournisseur extends Societe /** * Load statistics indicators * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 9ceb6f2a54c..d3467458bb0 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -508,7 +508,7 @@ class CommandeFournisseur extends CommonOrder * Load array lines * * @param int $only_product Return only physical products - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines($only_product = 0) { @@ -649,7 +649,7 @@ class CommandeFournisseur extends CommonOrder * @param User $user Validator User * @param int $idwarehouse Id of warehouse to use for stock decrease * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function valid($user, $idwarehouse = 0, $notrigger = 0) { @@ -1100,7 +1100,7 @@ class CommandeFournisseur extends CommonOrder * @param User $user Object user * @param int $idwarehouse Id of warhouse for stock change * @param int $secondlevel 0=Standard approval, 1=Second level approval (used when option SUPPLIER_ORDER_3_STEPS_TO_BE_APPROVED is set) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function approve($user, $idwarehouse = 0, $secondlevel = 0) { @@ -1347,7 +1347,7 @@ class CommandeFournisseur extends CommonOrder * @param integer $date Date * @param int $methode Method * @param string $comment Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function commande($user, $date, $methode, $comment = '') { @@ -1618,7 +1618,7 @@ class CommandeFournisseur extends CommonOrder * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -2114,7 +2114,7 @@ class CommandeFournisseur extends CommonOrder * @param int $fk_commandefourndet Id of supplier order line * @param int $notrigger 1 = notrigger * @param int $fk_reception Id of reception to link - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function dispatchProduct($user, $product, $qty, $entrepot, $price = 0, $comment = '', $eatby = '', $sellby = '', $batch = '', $fk_commandefourndet = 0, $notrigger = 0, $fk_reception = 0) { @@ -2210,7 +2210,7 @@ class CommandeFournisseur extends CommonOrder * * @param int $idline Id of line to delete * @param int $notrigger 1=Disable call to triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteline($idline, $notrigger = 0) { @@ -2249,7 +2249,7 @@ class CommandeFournisseur extends CommonOrder * * @param User $user Object user * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0) { @@ -2435,7 +2435,7 @@ class CommandeFournisseur extends CommonOrder * @param integer $date Date of reception * @param string $type Type of receipt ('tot' = total/done, 'par' = partial, 'nev' = never, 'can' = cancel) * @param string $comment Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function Livraison($user, $date, $type, $comment) { @@ -2563,7 +2563,7 @@ class CommandeFournisseur extends CommonOrder * @param User $user Objet user making change * @param integer $delivery_date Planned delivery date * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDeliveryDate($user, $delivery_date, $notrigger = 0) { @@ -2678,7 +2678,7 @@ class CommandeFournisseur extends CommonOrder * @param User $user User that create * @param int $idc Id of purchase order to update * @param int $comclientid Id of sale order to use as template - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateFromCommandeClient($user, $idc, $comclientid) { @@ -2718,7 +2718,7 @@ class CommandeFournisseur extends CommonOrder * * @param User $user Object user that change status * @param int $status New status - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setStatus($user, $status) { @@ -3711,7 +3711,7 @@ class CommandeFournisseurLigne extends CommonOrderLine * Load line order * * @param int $rowid Id line order - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { @@ -3822,7 +3822,7 @@ class CommandeFournisseurLigne extends CommonOrderLine * Insert line into database * * @param int $notrigger 1 = disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0) { @@ -4057,7 +4057,7 @@ class CommandeFournisseurLigne extends CommonOrderLine * Delete line in database * * @param int $notrigger 1=Disable call to triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($notrigger = 0) { diff --git a/htdocs/fourn/class/fournisseur.commande.dispatch.class.php b/htdocs/fourn/class/fournisseur.commande.dispatch.class.php index c6b715546d8..1c1c2c501a5 100644 --- a/htdocs/fourn/class/fournisseur.commande.dispatch.class.php +++ b/htdocs/fourn/class/fournisseur.commande.dispatch.class.php @@ -143,7 +143,7 @@ class CommandeFournisseurDispatch extends CommonObjectLine * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -271,7 +271,7 @@ class CommandeFournisseurDispatch extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -342,7 +342,7 @@ class CommandeFournisseurDispatch extends CommonObjectLine * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user, $notrigger = 0) { @@ -449,7 +449,7 @@ class CommandeFournisseurDispatch extends CommonObjectLine * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -648,7 +648,7 @@ class CommandeFournisseurDispatch extends CommonObjectLine * @param array $filter filter array * @param string $filtermode filter mode (AND or OR) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND') { diff --git a/htdocs/fourn/class/fournisseur.facture-rec.class.php b/htdocs/fourn/class/fournisseur.facture-rec.class.php index f37580b6982..e84a70845f2 100644 --- a/htdocs/fourn/class/fournisseur.facture-rec.class.php +++ b/htdocs/fourn/class/fournisseur.facture-rec.class.php @@ -792,7 +792,7 @@ class FactureFournisseurRec extends CommonInvoice * @param User $user User that delete. * @param int $notrigger 1=Does not execute triggers, 0= execute triggers * @param int $idwarehouse Id warehouse to use for stock change. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0, $idwarehouse = -1) { @@ -1782,7 +1782,7 @@ class FactureFournisseurRec extends CommonInvoice * * @param int $frequency value of frequency * @param string $unit unit of frequency (d, m, y) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setFrequencyAndUnit($frequency, $unit) { @@ -1822,7 +1822,7 @@ class FactureFournisseurRec extends CommonInvoice * * @param datetime $date date of execution * @param int $increment_nb_gen_done 0 do nothing more, >0 increment nb_gen_done - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setNextDate($date, $increment_nb_gen_done = 0) { @@ -1855,7 +1855,7 @@ class FactureFournisseurRec extends CommonInvoice * Update the maximum period * * @param int $nb number of maximum period - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setMaxPeriod($nb) { @@ -1887,7 +1887,7 @@ class FactureFournisseurRec extends CommonInvoice * Update the auto validate flag of invoice * * @param int $validate 0 to create in draft, 1 to create and validate invoice - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setAutoValidate($validate) { @@ -1915,7 +1915,7 @@ class FactureFournisseurRec extends CommonInvoice * Update the auto generate documents * * @param int $validate 0 no document, 1 to generate document - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setGeneratePdf($validate) { @@ -1943,7 +1943,7 @@ class FactureFournisseurRec extends CommonInvoice * Update the model for documents * * @param string $model model of document generator - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setModelPdf($model) { @@ -2020,7 +2020,7 @@ class FactureFournisseurLigneRec extends CommonObjectLine * * @param User $user Object user * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index 70fb5438259..3b519001927 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -848,7 +848,7 @@ class FactureFournisseur extends CommonInvoice * @param int $id Id supplier invoice * @param string $ref Ref supplier invoice * @param string $ref_ext External reference of invoice - * @return int <0 if KO, >0 if OK, 0 if not found + * @return int Return integer <0 if KO, >0 if OK, 0 if not found */ public function fetch($id = '', $ref = '', $ref_ext = '') { @@ -1124,7 +1124,7 @@ class FactureFournisseur extends CommonInvoice * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -1413,7 +1413,7 @@ class FactureFournisseur extends CommonInvoice * * @param User $user User object * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0) { @@ -1691,7 +1691,7 @@ class FactureFournisseur extends CommonInvoice * @param User $user Object user making change * @param string $close_code Code of closing invoice (CLOSECODE_REPLACED, CLOSECODE_...) * @param string $close_note Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCanceled($user, $close_code = '', $close_note = '') { @@ -1959,7 +1959,7 @@ class FactureFournisseur extends CommonInvoice * @param User $user Object user that modify * @param int $idwarehouse Id warehouse to use for stock change. * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $idwarehouse = -1, $notrigger = 0) { @@ -2325,7 +2325,7 @@ class FactureFournisseur extends CommonInvoice * @param double $pu_devise Amount in currency * @param string $ref_supplier Supplier ref * @param integer $rang line rank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1 = 0, $txlocaltax2 = 0, $qty = 1, $idproduct = 0, $price_base_type = 'HT', $info_bits = 0, $type = 0, $remise_percent = 0, $notrigger = false, $date_start = '', $date_end = '', $array_options = 0, $fk_unit = null, $pu_devise = 0, $ref_supplier = '', $rang = 0) { @@ -2482,7 +2482,7 @@ class FactureFournisseur extends CommonInvoice * * @param int $rowid Id of line to delete * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function deleteline($rowid, $notrigger = 0) { @@ -3086,7 +3086,7 @@ class FactureFournisseur extends CommonInvoice /** * Load indicators for dashboard (this->nbtodo and this->nbtodolate) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -3767,7 +3767,7 @@ class SupplierInvoiceLine extends CommonObjectLine * Update a supplier invoice line * * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($notrigger = 0) { @@ -3903,7 +3903,7 @@ class SupplierInvoiceLine extends CommonObjectLine * * @param int $notrigger 1 no triggers * @param int $noerrorifdiscountalreadylinked 1=Do not make error if lines is linked to a discount and discount already linked to another - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0, $noerrorifdiscountalreadylinked = 0) { diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php index 07b15efaaac..a46ee5ea8c5 100644 --- a/htdocs/fourn/class/fournisseur.product.class.php +++ b/htdocs/fourn/class/fournisseur.product.class.php @@ -198,7 +198,7 @@ class ProductFournisseur extends Product * Remove a price for a couple supplier-product * * @param int $rowid Line id of price - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function remove_product_fournisseur_price($rowid) { @@ -927,7 +927,7 @@ class ProductFournisseur extends Product * Sets the supplier price expression * * @param int $expression_id Expression - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setSupplierPriceExpression($expression_id) { diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php index cc182047cbc..00c26f25c56 100644 --- a/htdocs/fourn/class/paiementfourn.class.php +++ b/htdocs/fourn/class/paiementfourn.class.php @@ -890,7 +890,7 @@ class PaiementFourn extends Paiement * Load the third party of object, from id into this->thirdparty * * @param int $force_thirdparty_id Force thirdparty id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_thirdparty($force_thirdparty_id = 0) { diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index 1771d6dbcf4..ff57e034eaf 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -232,7 +232,7 @@ class Holiday extends CommonObject /** * Update balance of vacations and check table of users for holidays is complete. If not complete. * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateBalance() { @@ -258,7 +258,7 @@ class Holiday extends CommonObject * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -368,7 +368,7 @@ class Holiday extends CommonObject * * @param int $id Id object * @param string $ref Ref object - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = '') { @@ -720,7 +720,7 @@ class Holiday extends CommonObject * * @param User $user User that validate * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function validate($user = null, $notrigger = 0) { @@ -843,7 +843,7 @@ class Holiday extends CommonObject * * @param User $user User that approve * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function approve($user = null, $notrigger = 0) { @@ -972,7 +972,7 @@ class Holiday extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -1103,7 +1103,7 @@ class Holiday extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -2080,7 +2080,7 @@ class Holiday extends CommonObject * * @param int $userDolibarrWithoutCP Number of active users in Dolibarr without holidays * @param int $userCP Number of active users into table of holidays - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function verifNbUsers($userDolibarrWithoutCP, $userCP) { @@ -2357,7 +2357,7 @@ class Holiday extends CommonObject /** * Load this->nb for dashboard * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { diff --git a/htdocs/hrm/class/establishment.class.php b/htdocs/hrm/class/establishment.class.php index f9bd5539d31..2594d26f26b 100644 --- a/htdocs/hrm/class/establishment.class.php +++ b/htdocs/hrm/class/establishment.class.php @@ -165,7 +165,7 @@ class Establishment extends CommonObject * Create object in database * * @param User $user User making creation - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -243,7 +243,7 @@ class Establishment extends CommonObject * Update record * * @param User $user User making update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user) { @@ -327,7 +327,7 @@ class Establishment extends CommonObject * Delete record * * @param int $id Id of record to delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($id) { diff --git a/htdocs/hrm/class/evaluation.class.php b/htdocs/hrm/class/evaluation.class.php index 291b39ce87e..1e5429a9354 100644 --- a/htdocs/hrm/class/evaluation.class.php +++ b/htdocs/hrm/class/evaluation.class.php @@ -223,7 +223,7 @@ class Evaluation extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -356,7 +356,7 @@ class Evaluation extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -370,7 +370,7 @@ class Evaluation extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -466,7 +466,7 @@ class Evaluation extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -478,7 +478,7 @@ class Evaluation extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -662,7 +662,7 @@ class Evaluation extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/hrm/class/evaluationdet.class.php b/htdocs/hrm/class/evaluationdet.class.php index 89ce376f4ce..5349b1d4759 100644 --- a/htdocs/hrm/class/evaluationdet.class.php +++ b/htdocs/hrm/class/evaluationdet.class.php @@ -211,7 +211,7 @@ class EvaluationLine extends CommonObjectLine * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -324,7 +324,7 @@ class EvaluationLine extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -338,7 +338,7 @@ class EvaluationLine extends CommonObjectLine /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -434,7 +434,7 @@ class EvaluationLine extends CommonObjectLine * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -446,7 +446,7 @@ class EvaluationLine extends CommonObjectLine * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -615,7 +615,7 @@ class EvaluationLine extends CommonObjectLine * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/hrm/class/job.class.php b/htdocs/hrm/class/job.class.php index 84179c49621..1d51cc5e7a1 100644 --- a/htdocs/hrm/class/job.class.php +++ b/htdocs/hrm/class/job.class.php @@ -212,7 +212,7 @@ class Job extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -327,7 +327,7 @@ class Job extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -341,7 +341,7 @@ class Job extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -437,7 +437,7 @@ class Job extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -449,7 +449,7 @@ class Job extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -647,7 +647,7 @@ class Job extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/hrm/class/position.class.php b/htdocs/hrm/class/position.class.php index 5fa49e91e06..851f4b2104f 100644 --- a/htdocs/hrm/class/position.class.php +++ b/htdocs/hrm/class/position.class.php @@ -222,7 +222,7 @@ class Position extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -337,7 +337,7 @@ class Position extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -351,7 +351,7 @@ class Position extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -447,7 +447,7 @@ class Position extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -459,7 +459,7 @@ class Position extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -623,7 +623,7 @@ class Position extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/hrm/class/skill.class.php b/htdocs/hrm/class/skill.class.php index 954706b4461..d51c791184c 100644 --- a/htdocs/hrm/class/skill.class.php +++ b/htdocs/hrm/class/skill.class.php @@ -223,7 +223,7 @@ class Skill extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -387,7 +387,7 @@ class Skill extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -506,7 +506,7 @@ class Skill extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -518,7 +518,7 @@ class Skill extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -680,7 +680,7 @@ class Skill extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/hrm/class/skilldet.class.php b/htdocs/hrm/class/skilldet.class.php index f6307bc2903..b55b6678c14 100644 --- a/htdocs/hrm/class/skilldet.class.php +++ b/htdocs/hrm/class/skilldet.class.php @@ -203,7 +203,7 @@ class Skilldet extends CommonObjectLine * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -318,7 +318,7 @@ class Skilldet extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -332,7 +332,7 @@ class Skilldet extends CommonObjectLine /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -428,7 +428,7 @@ class Skilldet extends CommonObjectLine * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -440,7 +440,7 @@ class Skilldet extends CommonObjectLine * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -603,7 +603,7 @@ class Skilldet extends CommonObjectLine * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/hrm/class/skillrank.class.php b/htdocs/hrm/class/skillrank.class.php index 393b3fa164e..9530b548b4e 100644 --- a/htdocs/hrm/class/skillrank.class.php +++ b/htdocs/hrm/class/skillrank.class.php @@ -212,7 +212,7 @@ class SkillRank extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -344,7 +344,7 @@ class SkillRank extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -358,7 +358,7 @@ class SkillRank extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -478,7 +478,7 @@ class SkillRank extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -490,7 +490,7 @@ class SkillRank extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -653,7 +653,7 @@ class SkillRank extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/imports/class/import.class.php b/htdocs/imports/class/import.class.php index 97988a1a475..3b9943cca09 100644 --- a/htdocs/imports/class/import.class.php +++ b/htdocs/imports/class/import.class.php @@ -91,7 +91,7 @@ class Import * * @param User $user Object user making import * @param string $filter Load a particular dataset only. Index will start to 0. - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_arrays($user, $filter = '') { @@ -224,7 +224,7 @@ class Import * @param string $headerlinefields Array of values for first line of example file * @param string $contentlinevalues Array of values for content line of example file * @param string $datatoimport Dataset to import - * @return string <0 if KO, >0 if OK + * @return string Return integer <0 if KO, >0 if OK */ public function build_example_file($model, $headerlinefields, $contentlinevalues, $datatoimport) { @@ -264,7 +264,7 @@ class Import * Save an export model in database * * @param User $user Object user that save - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -314,7 +314,7 @@ class Import * Load an import profil from database * * @param int $id Id of profil to load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -348,7 +348,7 @@ class Import * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php index 561e3f363d0..ab01ba1f2ed 100644 --- a/htdocs/install/inc.php +++ b/htdocs/install/inc.php @@ -395,7 +395,7 @@ if (GETPOST('lang', 'aZ09')) { * Load conf file (file must exists) * * @param string $dolibarr_main_document_root Root directory of Dolibarr bin files - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function conf($dolibarr_main_document_root) { diff --git a/htdocs/install/lib/repair.lib.php b/htdocs/install/lib/repair.lib.php index c7c45dff053..4ac9c58f3bd 100644 --- a/htdocs/install/lib/repair.lib.php +++ b/htdocs/install/lib/repair.lib.php @@ -125,7 +125,7 @@ function checkLinkedElements($sourcetype, $targettype) /** * Clean data into ecm_directories table * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function clean_data_ecm_directories() { diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 7549b97bd5d..c2dd4fd4d52 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -4244,7 +4244,7 @@ function migrate_delete_old_dir($db, $langs, $conf) * @param Conf $conf Object conf * @param array $listofmodule List of modules, like array('MODULE_KEY_NAME'=>', $reloadmode) * @param int $force 1=Reload module even if not already loaded - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function migrate_reload_modules($db, $langs, $conf, $listofmodule = array(), $force = 0) { @@ -4377,7 +4377,7 @@ function migrate_reload_modules($db, $langs, $conf, $listofmodule = array(), $fo * @param DoliDB $db Database handler * @param Translate $langs Object langs * @param Conf $conf Object conf - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function migrate_reload_menu($db, $langs, $conf) { diff --git a/htdocs/intracommreport/class/intracommreport.class.php b/htdocs/intracommreport/class/intracommreport.class.php index d44ea90122b..e477621dbb3 100644 --- a/htdocs/intracommreport/class/intracommreport.class.php +++ b/htdocs/intracommreport/class/intracommreport.class.php @@ -234,7 +234,7 @@ class IntracommReport extends CommonObject * @param string $type Declaration type by default - introduction or expedition (always 'expedition' for Des) * @param int $period_reference Reference period * @param string $exporttype deb=DEB, des=DES - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addItemsFact(&$declaration, $type, $period_reference, $exporttype = 'deb') { @@ -297,7 +297,7 @@ class IntracommReport extends CommonObject * @param string $type Declaration type by default - introduction or expedition (always 'expedition' for Des) * @param int $period_reference Reference declaration * @param string $exporttype deb=DEB, des=DES - * @return string <0 if KO, >0 if OK + * @return string Return integer <0 if KO, >0 if OK */ public function getSQLFactLines($type, $period_reference, $exporttype = 'deb') { diff --git a/htdocs/knowledgemanagement/class/knowledgerecord.class.php b/htdocs/knowledgemanagement/class/knowledgerecord.class.php index 2a8fea633f6..e7f50ec2036 100644 --- a/htdocs/knowledgemanagement/class/knowledgerecord.class.php +++ b/htdocs/knowledgemanagement/class/knowledgerecord.class.php @@ -229,7 +229,7 @@ class KnowledgeRecord extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -341,7 +341,7 @@ class KnowledgeRecord extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -355,7 +355,7 @@ class KnowledgeRecord extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -451,7 +451,7 @@ class KnowledgeRecord extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -463,7 +463,7 @@ class KnowledgeRecord extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -653,7 +653,7 @@ class KnowledgeRecord extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { @@ -1117,7 +1117,7 @@ class KnowledgeRecord extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/loan/class/loan.class.php b/htdocs/loan/class/loan.class.php index 45958e06837..d2f66a54d33 100644 --- a/htdocs/loan/class/loan.class.php +++ b/htdocs/loan/class/loan.class.php @@ -288,7 +288,7 @@ class Loan extends CommonObject * Delete a loan * * @param User $user Object user making delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { @@ -390,7 +390,7 @@ class Loan extends CommonObject * Tag loan as paid completely * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($user) { @@ -416,7 +416,7 @@ class Loan extends CommonObject * @deprecated * @see setStarted() * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_started($user) { @@ -429,7 +429,7 @@ class Loan extends CommonObject * Tag loan as payment started * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setStarted($user) { @@ -452,7 +452,7 @@ class Loan extends CommonObject * Tag loan as payment as unpaid * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setUnpaid($user) { diff --git a/htdocs/loan/class/loanschedule.class.php b/htdocs/loan/class/loanschedule.class.php index 094ef342dda..ceeca8324c0 100644 --- a/htdocs/loan/class/loanschedule.class.php +++ b/htdocs/loan/class/loanschedule.class.php @@ -213,7 +213,7 @@ class LoanSchedule extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -288,7 +288,7 @@ class LoanSchedule extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0) { @@ -369,7 +369,7 @@ class LoanSchedule extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -427,7 +427,7 @@ class LoanSchedule extends CommonObject * Load all object in memory from database * * @param int $loanid Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($loanid) { diff --git a/htdocs/loan/class/paymentloan.class.php b/htdocs/loan/class/paymentloan.class.php index 13a6a92b8ed..073681ad5d5 100644 --- a/htdocs/loan/class/paymentloan.class.php +++ b/htdocs/loan/class/paymentloan.class.php @@ -213,7 +213,7 @@ class PaymentLoan extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -286,7 +286,7 @@ class PaymentLoan extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -376,7 +376,7 @@ class PaymentLoan extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -488,7 +488,7 @@ class PaymentLoan extends CommonObject * @param int $accountid Id of bank account to do link with * @param string $emetteur_nom Name of transmitter * @param string $emetteur_banque Name of bank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addPaymentToBank($user, $fk_loan, $mode, $label, $accountid, $emetteur_nom, $emetteur_banque) { diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php index 17107a70ef0..7965ab73181 100644 --- a/htdocs/modulebuilder/template/class/myobject.class.php +++ b/htdocs/modulebuilder/template/class/myobject.class.php @@ -288,7 +288,7 @@ class MyObject extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -405,7 +405,7 @@ class MyObject extends CommonObject * @param string $ref Ref * @param int $noextrafields 0=Default to load extrafields, 1=No extrafields * @param int $nolines 0=Default to load extrafields, 1=No extrafields - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null, $noextrafields = 0, $nolines = 0) { @@ -420,7 +420,7 @@ class MyObject extends CommonObject * Load object lines in memory from the database * * @param int $noextrafields 0=Default to load extrafields, 1=No extrafields - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines($noextrafields = 0) { @@ -541,7 +541,7 @@ class MyObject extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -553,7 +553,7 @@ class MyObject extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -716,7 +716,7 @@ class MyObject extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/mrp/class/mo.class.php b/htdocs/mrp/class/mo.class.php index 0a2192aa4a1..df60b69fa84 100644 --- a/htdocs/mrp/class/mo.class.php +++ b/htdocs/mrp/class/mo.class.php @@ -440,7 +440,7 @@ class Mo extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -457,7 +457,7 @@ class Mo extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -638,7 +638,7 @@ class Mo extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -672,7 +672,7 @@ class Mo extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function createProduction(User $user, $notrigger = true) { @@ -786,7 +786,7 @@ class Mo extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateProduction(User $user, $notrigger = true) { @@ -834,7 +834,7 @@ class Mo extends CommonObject * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * @param bool $also_cancel_consumed_and_produced_lines true if the consumed and produced lines will be deleted (and stocks incremented/decremented back) (false by default) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false, $also_cancel_consumed_and_produced_lines = false) { @@ -1127,7 +1127,7 @@ class Mo extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { @@ -2066,7 +2066,7 @@ class MoLine extends CommonObjectLine * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -2083,7 +2083,7 @@ class MoLine extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -2174,7 +2174,7 @@ class MoLine extends CommonObjectLine * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -2186,7 +2186,7 @@ class MoLine extends CommonObjectLine * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/multicurrency/class/multicurrency.class.php b/htdocs/multicurrency/class/multicurrency.class.php index 373ff8b2e15..2fc859148fa 100644 --- a/htdocs/multicurrency/class/multicurrency.class.php +++ b/htdocs/multicurrency/class/multicurrency.class.php @@ -109,7 +109,7 @@ class MultiCurrency extends CommonObject * * @param User $user User that creates * @param bool $trigger true=launch triggers after, false=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $trigger = true) { @@ -184,7 +184,7 @@ class MultiCurrency extends CommonObject * * @param int $id Id object * @param string $code code - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $code = null) { @@ -275,7 +275,7 @@ class MultiCurrency extends CommonObject * * @param User $user User that modifies * @param bool $trigger true=launch triggers after, false=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $trigger = true) { @@ -334,7 +334,7 @@ class MultiCurrency extends CommonObject * * @param User $user User making the deletion * @param bool $trigger true=launch triggers after, false=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $trigger = true) { @@ -462,7 +462,7 @@ class MultiCurrency extends CommonObject * Add new entry into llx_multicurrency_rate * * @param double $rate rate value - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateRate($rate) { @@ -472,7 +472,7 @@ class MultiCurrency extends CommonObject /** * Fetch CurrencyRate object in $this->rate * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function getRate() { @@ -642,7 +642,7 @@ class MultiCurrency extends CommonObject * @param string $key Key to use. Come from getDolGlobalString("MULTICURRENCY_APP_ID") * @param int $addifnotfound Add if not found * @param string $mode "" for standard use, "cron" to use it in a cronjob - * @return int <0 if KO, >0 if OK, if mode = "cron" OK is 0 + * @return int Return integer <0 if KO, >0 if OK, if mode = "cron" OK is 0 */ public function syncRates($key, $addifnotfound = 0, $mode = "") { @@ -787,7 +787,7 @@ class CurrencyRate extends CommonObjectLine * * @param int $fk_multicurrency Id of currency * @param bool $trigger true=launch triggers after, false=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($fk_multicurrency, $trigger = true) { @@ -855,7 +855,7 @@ class CurrencyRate extends CommonObjectLine * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id) { @@ -898,7 +898,7 @@ class CurrencyRate extends CommonObjectLine * Update object into database * * @param bool $trigger true=launch triggers after, false=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($trigger = true) { @@ -955,7 +955,7 @@ class CurrencyRate extends CommonObjectLine * * @param User $user User making the deletion * @param bool $trigger true=launch triggers after, false=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $trigger = true) { diff --git a/htdocs/opensurvey/class/opensurveysondage.class.php b/htdocs/opensurvey/class/opensurveysondage.class.php index 9f144037b5c..6445f8a0786 100644 --- a/htdocs/opensurvey/class/opensurveysondage.class.php +++ b/htdocs/opensurvey/class/opensurveysondage.class.php @@ -181,7 +181,7 @@ class Opensurveysondage extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = 0) { @@ -265,7 +265,7 @@ class Opensurveysondage extends CommonObject * * @param int $id Id object * @param string $numsurvey Ref of survey (admin or not) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $numsurvey = '') { @@ -333,7 +333,7 @@ class Opensurveysondage extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { @@ -399,7 +399,7 @@ class Opensurveysondage extends CommonObject * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers * @param string $numsondage Num sondage admin to delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0, $numsondage = '') { @@ -549,7 +549,7 @@ class Opensurveysondage extends CommonObject /** * Return array of lines * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines() { diff --git a/htdocs/partnership/class/partnership.class.php b/htdocs/partnership/class/partnership.class.php index d8be947d4d5..24ca9732ed3 100644 --- a/htdocs/partnership/class/partnership.class.php +++ b/htdocs/partnership/class/partnership.class.php @@ -198,7 +198,7 @@ class Partnership extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -409,7 +409,7 @@ class Partnership extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -503,7 +503,7 @@ class Partnership extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -523,7 +523,7 @@ class Partnership extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -816,7 +816,7 @@ class Partnership extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/partnership/class/partnership_type.class.php b/htdocs/partnership/class/partnership_type.class.php index e267fa90396..aba40325cfd 100644 --- a/htdocs/partnership/class/partnership_type.class.php +++ b/htdocs/partnership/class/partnership_type.class.php @@ -126,7 +126,7 @@ class PartnershipType extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -139,7 +139,7 @@ class PartnershipType extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -232,7 +232,7 @@ class PartnershipType extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -244,7 +244,7 @@ class PartnershipType extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 442be93b714..1967946bc86 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1618,7 +1618,7 @@ class Product extends CommonObject * Update or add a translation for a product * * @param User $user Object user making update - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setMultiLangs($user) { @@ -1728,7 +1728,7 @@ class Product extends CommonObject * @param string $langtodelete Language code to delete * @param User $user Object user making delete * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delMultiLangs($langtodelete, $user) { @@ -1820,7 +1820,7 @@ class Product extends CommonObject /** * Load array this->multilangs * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getMultiLangs() { @@ -1894,7 +1894,7 @@ class Product extends CommonObject * * @param User $user User making change * @param int $level price level to change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ private function _log_price($user, $level = 0) { @@ -1933,7 +1933,7 @@ class Product extends CommonObject * * @param User $user Object user * @param int $rowid Line id to delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function log_price_delete($user, $rowid) { @@ -2240,7 +2240,7 @@ class Product extends CommonObject * @param array $localtaxes_array Array with localtaxes info array('0'=>type1,'1'=>rate1,'2'=>type2,'3'=>rate2) (loaded by getLocalTaxesFromRate(vatrate, 0, ...) function). * @param string $newdefaultvatcode Default vat code * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updatePrice($newprice, $newpricebase, $user, $newvat = '', $newminprice = 0, $level = 0, $newnpr = 0, $newpbq = 0, $ignore_autogen = 0, $localtaxes_array = array(), $newdefaultvatcode = '', $notrigger = 0) { @@ -2435,7 +2435,7 @@ class Product extends CommonObject * Sets the supplier price expression * * @param int $expression_id Expression - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated Use Product::update instead */ public function setPriceExpression($expression_id) @@ -2457,7 +2457,7 @@ class Product extends CommonObject * @param int $ignore_expression When module dynamicprices is on, ignores the math expression for calculating price and uses the db value instead * @param int $ignore_price_load Load product without loading $this->multiprices... array (when we are sure we don't need them) * @param int $ignore_lang_load Load product without loading $this->multilangs language arrays (when we are sure we don't need them) - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id = '', $ref = '', $ref_ext = '', $barcode = '', $ignore_expression = 0, $ignore_price_load = 0, $ignore_lang_load = 0) { @@ -4527,7 +4527,7 @@ class Product extends CommonObject * * @param int $fk_parent Id of parent kit product * @param int $fk_child Id of child product - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function is_sousproduit($fk_parent, $fk_child) { @@ -4782,7 +4782,7 @@ class Product extends CommonObject * * @param int $fromId Product id * @param int $toId Product id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function clone_associations($fromId, $toId) { @@ -5557,7 +5557,7 @@ class Product extends CommonObject * @param int $origin_id Origin id of element * @param int $disablestockchangeforsubproduct Disable stock change for sub-products of kit (usefull only if product is a subproduct) * @param Extrafields $extrafields Array of extrafields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function correct_stock($user, $id_entrepot, $nbpiece, $movement, $label = '', $price = 0, $inventorycode = '', $origin_element = '', $origin_id = null, $disablestockchangeforsubproduct = 0, $extrafields = null) { @@ -5620,7 +5620,7 @@ class Product extends CommonObject * @param int $disablestockchangeforsubproduct Disable stock change for sub-products of kit (usefull only if product is a subproduct) * @param Extrafields $extrafields Array of extrafields * @param boolean $force_update_batch Force update batch - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function correct_stock_batch($user, $id_entrepot, $nbpiece, $movement, $label = '', $price = 0, $dlc = '', $dluo = '', $lot = '', $inventorycode = '', $origin_element = '', $origin_id = null, $disablestockchangeforsubproduct = 0, $extrafields = null, $force_update_batch = false) { @@ -5905,7 +5905,7 @@ class Product extends CommonObject * * @param string $sdir Target directory * @param string $file Array of file info of file to upload: array('name'=>..., 'tmp_name'=>...) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function add_photo($sdir, $file) { @@ -6102,7 +6102,7 @@ class Product extends CommonObject /** * Load indicators this->nb for the dashboard * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -6338,7 +6338,7 @@ class Product extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php index e0c5bd345e0..6fa4076bf73 100644 --- a/htdocs/product/class/productbatch.class.php +++ b/htdocs/product/class/productbatch.class.php @@ -86,7 +86,7 @@ class Productbatch extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -141,7 +141,7 @@ class Productbatch extends CommonObject * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -194,7 +194,7 @@ class Productbatch extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -244,7 +244,7 @@ class Productbatch extends CommonObject * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -376,7 +376,7 @@ class Productbatch extends CommonObject * @param integer $sellby sell-by date for object - deprecated: a search must be done on batch number * @param string $batch_number batch number for object * @param int $fk_warehouse filter on warehouse (use it if you don't have $fk_product_stock) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function find($fk_product_stock = 0, $eatby = '', $sellby = '', $batch_number = '', $fk_warehouse = 0) { diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php index 107979f76d6..456b7cc03b6 100644 --- a/htdocs/product/class/productcustomerprice.class.php +++ b/htdocs/product/class/productcustomerprice.class.php @@ -118,7 +118,7 @@ class ProductCustomerPrice extends CommonObject * @param User $user that creates * @param int $notrigger triggers after, 1=disable triggers * @param int $forceupdateaffiliate update price on each soc child - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0, $forceupdateaffiliate = 0) { @@ -296,7 +296,7 @@ class ProductCustomerPrice extends CommonObject * Load object in memory from the database * * @param int $id ID of customer price - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id) { @@ -374,7 +374,7 @@ class ProductCustomerPrice extends CommonObject * @param int $limit page * @param int $offset offset * @param array $filter Filter for select - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @since dolibarr v17 */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, $filter = array()) @@ -492,7 +492,7 @@ class ProductCustomerPrice extends CommonObject * @param int $limit page * @param int $offset offset * @param array $filter Filter for sql request - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAllLog($sortorder, $sortfield, $limit, $offset, $filter = array()) { @@ -597,7 +597,7 @@ class ProductCustomerPrice extends CommonObject * @param User $user that modifies * @param int $notrigger triggers after, 1=disable triggers * @param int $forceupdateaffiliate update price on each soc child - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0, $forceupdateaffiliate = 0) { @@ -908,7 +908,7 @@ class ProductCustomerPrice extends CommonObject * * @param User $user that deletes * @param int $notrigger triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { diff --git a/htdocs/product/class/productfournisseurprice.class.php b/htdocs/product/class/productfournisseurprice.class.php index 900d2fd6c5b..903e6b25a89 100644 --- a/htdocs/product/class/productfournisseurprice.class.php +++ b/htdocs/product/class/productfournisseurprice.class.php @@ -193,7 +193,7 @@ class ProductFournisseurPrice extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -291,7 +291,7 @@ class ProductFournisseurPrice extends CommonObject * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id) { @@ -380,7 +380,7 @@ class ProductFournisseurPrice extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -392,7 +392,7 @@ class ProductFournisseurPrice extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -521,7 +521,7 @@ class ProductFournisseurPrice extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/product/class/propalmergepdfproduct.class.php b/htdocs/product/class/propalmergepdfproduct.class.php index a3df01938ad..bdec6261e84 100644 --- a/htdocs/product/class/propalmergepdfproduct.class.php +++ b/htdocs/product/class/propalmergepdfproduct.class.php @@ -70,7 +70,7 @@ class Propalmergepdfproduct extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -154,7 +154,7 @@ class Propalmergepdfproduct extends CommonObject * Load object in memory from the database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -211,7 +211,7 @@ class Propalmergepdfproduct extends CommonObject * * @param int $product_id Id object * @param string $lang Lang string code - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_by_product($product_id, $lang = '') { @@ -281,7 +281,7 @@ class Propalmergepdfproduct extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0) { @@ -347,7 +347,7 @@ class Propalmergepdfproduct extends CommonObject * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -389,7 +389,7 @@ class Propalmergepdfproduct extends CommonObject * @param int $product_id product_id * @param string $lang_id language * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete_by_product($user, $product_id, $lang_id = '', $notrigger = 0) { @@ -433,7 +433,7 @@ class Propalmergepdfproduct extends CommonObject * Delete object in database * * @param User $user User that deletes - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete_by_file($user) { diff --git a/htdocs/product/dynamic_price/class/price_expression.class.php b/htdocs/product/dynamic_price/class/price_expression.class.php index d38851e0eaa..6ad38e4f217 100644 --- a/htdocs/product/dynamic_price/class/price_expression.class.php +++ b/htdocs/product/dynamic_price/class/price_expression.class.php @@ -73,7 +73,7 @@ class PriceExpression * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -228,7 +228,7 @@ class PriceExpression * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0) { @@ -276,7 +276,7 @@ class PriceExpression * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = 0) { diff --git a/htdocs/product/dynamic_price/class/price_global_variable.class.php b/htdocs/product/dynamic_price/class/price_global_variable.class.php index 99407851174..30c59d063ff 100644 --- a/htdocs/product/dynamic_price/class/price_global_variable.class.php +++ b/htdocs/product/dynamic_price/class/price_global_variable.class.php @@ -79,7 +79,7 @@ class PriceGlobalVariable * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -170,7 +170,7 @@ class PriceGlobalVariable * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0) { @@ -228,7 +228,7 @@ class PriceGlobalVariable * @param int $rowid Row id of global variable * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($rowid, $user, $notrigger = 0) { diff --git a/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php b/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php index d43a2e3bf56..458a202614a 100644 --- a/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php +++ b/htdocs/product/dynamic_price/class/price_global_variable_updater.class.php @@ -91,7 +91,7 @@ class PriceGlobalVariableUpdater * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -190,7 +190,7 @@ class PriceGlobalVariableUpdater * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0) { @@ -251,7 +251,7 @@ class PriceGlobalVariableUpdater * @param int $rowid Row id of global variable * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($rowid, $user, $notrigger = 0) { @@ -557,7 +557,7 @@ class PriceGlobalVariableUpdater * @param string $next_update Next update to write * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_next_update($next_update, $user = 0, $notrigger = 0) { @@ -601,7 +601,7 @@ class PriceGlobalVariableUpdater * @param string $last_status Status to write * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_status($last_status, $user = 0, $notrigger = 0) { diff --git a/htdocs/product/inventory/class/inventory.class.php b/htdocs/product/inventory/class/inventory.class.php index f4849232a01..4b554de220e 100644 --- a/htdocs/product/inventory/class/inventory.class.php +++ b/htdocs/product/inventory/class/inventory.class.php @@ -244,7 +244,7 @@ class Inventory extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -259,7 +259,7 @@ class Inventory extends CommonObject * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * @param int $include_sub_warehouse Include sub warehouses - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function validate(User $user, $notrigger = false, $include_sub_warehouse = 0) { @@ -372,7 +372,7 @@ class Inventory extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function setDraft(User $user, $notrigger = false) { @@ -402,7 +402,7 @@ class Inventory extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function setRecorded(User $user, $notrigger = false) { @@ -424,7 +424,7 @@ class Inventory extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function setCanceled(User $user, $notrigger = false) { @@ -497,7 +497,7 @@ class Inventory extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -509,7 +509,7 @@ class Inventory extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ /*public function fetchLines() { @@ -525,7 +525,7 @@ class Inventory extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -537,7 +537,7 @@ class Inventory extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -753,7 +753,7 @@ class Inventory extends CommonObject * * @param int $id Id of warehouse * @param array $TChildWarehouse Array of child warehouses - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getChildWarehouse($id, &$TChildWarehouse) { @@ -862,7 +862,7 @@ class InventoryLine extends CommonObjectLine * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create(User $user, $notrigger = false) { @@ -874,7 +874,7 @@ class InventoryLine extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -888,7 +888,7 @@ class InventoryLine extends CommonObjectLine * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -900,7 +900,7 @@ class InventoryLine extends CommonObjectLine * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index c1fa0e8252a..2192c2f2151 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -362,7 +362,7 @@ class Entrepot extends CommonObject * * @param User $user Object user that made deletion * @param int $notrigger 1=No trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -972,7 +972,7 @@ class Entrepot extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 2a67296ce1f..3bb0d10d89a 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -649,7 +649,7 @@ class MouvementStock extends CommonObject * * @param int $id Id object * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id) { @@ -807,7 +807,7 @@ class MouvementStock extends CommonObject * @param int $id_product_batch Id product_batch * @param string $inventorycode Inventory code * @param int $donotcleanemptylines Do not clean lines that remains in stock table with qty=0 (because we want to have this done by the caller) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function livraison($user, $fk_product, $entrepot_id, $qty, $price = 0, $label = '', $datem = '', $eatby = '', $sellby = '', $batch = '', $id_product_batch = 0, $inventorycode = '', $donotcleanemptylines = 0) { @@ -834,7 +834,7 @@ class MouvementStock extends CommonObject * @param int $id_product_batch Id product_batch * @param string $inventorycode Inventory code * @param int $donotcleanemptylines Do not clean lines that remains in stock table with qty=0 (because we want to have this done by the caller) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reception($user, $fk_product, $entrepot_id, $qty, $price = 0, $label = '', $eatby = '', $sellby = '', $batch = '', $datem = '', $id_product_batch = 0, $inventorycode = '', $donotcleanemptylines = 0) { @@ -1231,7 +1231,7 @@ class MouvementStock extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/product/stock/class/productlot.class.php b/htdocs/product/stock/class/productlot.class.php index 2273be85e06..d90549ac775 100644 --- a/htdocs/product/stock/class/productlot.class.php +++ b/htdocs/product/stock/class/productlot.class.php @@ -300,7 +300,7 @@ class Productlot extends CommonObject * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -423,7 +423,7 @@ class Productlot extends CommonObject * @param int $product_id Id of product, batch number parameter required * @param string $batch batch number * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id = 0, $product_id = 0, $batch = '') { @@ -516,7 +516,7 @@ class Productlot extends CommonObject * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -614,7 +614,7 @@ class Productlot extends CommonObject * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/product/stock/class/productstockentrepot.class.php b/htdocs/product/stock/class/productstockentrepot.class.php index 81e085e541a..621ca5018cd 100644 --- a/htdocs/product/stock/class/productstockentrepot.class.php +++ b/htdocs/product/stock/class/productstockentrepot.class.php @@ -83,7 +83,7 @@ class ProductStockEntrepot extends CommonObject * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -168,7 +168,7 @@ class ProductStockEntrepot extends CommonObject * @param int $id Id object * @param int $fk_product Id product * @param int $fk_entrepot Id warehouse - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $fk_product = 0, $fk_entrepot = 0) { @@ -318,7 +318,7 @@ class ProductStockEntrepot extends CommonObject * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -398,7 +398,7 @@ class ProductStockEntrepot extends CommonObject * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php index 23317c9f1bf..604fb5787ca 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php @@ -225,7 +225,7 @@ class StockTransfer extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -331,7 +331,7 @@ class StockTransfer extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -346,7 +346,7 @@ class StockTransfer extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -471,7 +471,7 @@ class StockTransfer extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -491,7 +491,7 @@ class StockTransfer extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -653,7 +653,7 @@ class StockTransfer extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php index a5cda4dc3cb..e50750ce8ec 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php @@ -167,7 +167,7 @@ class StockTransferLine extends CommonObjectLine * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -263,7 +263,7 @@ class StockTransferLine extends CommonObjectLine * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -275,7 +275,7 @@ class StockTransferLine extends CommonObjectLine /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -364,7 +364,7 @@ class StockTransferLine extends CommonObjectLine * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -376,7 +376,7 @@ class StockTransferLine extends CommonObjectLine * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -638,7 +638,7 @@ class StockTransferLine extends CommonObjectLine * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 827238e1745..d397929c11e 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -2295,7 +2295,7 @@ class Project extends CommonObject /** * Charge indicateurs this->nb pour le tableau de bord * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -2392,7 +2392,7 @@ class Project extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { @@ -2432,7 +2432,7 @@ class Project extends CommonObject * @param string $errors_to erros to * @param string $moreinheader Add more html headers * @since V18 - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function sendEmail($text, $subject, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $addr_cc = "", $addr_bcc = "", $deliveryreceipt = 0, $msgishtml = -1, $errors_to = '', $moreinheader = '') { diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index 7999b38f7d5..a63beac3a8a 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -200,7 +200,7 @@ class Task extends CommonObjectLine * * @param User $user User that create * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -306,7 +306,7 @@ class Task extends CommonObjectLine * @param int $id Id object * @param int $ref ref object * @param int $loadparentdata Also load parent data - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = '', $loadparentdata = 0) { @@ -559,7 +559,7 @@ class Task extends CommonObjectLine * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -1597,7 +1597,7 @@ class Task extends CommonObjectLine * Load properties of timespent of a task from the time spent ID. * * @param int $id Id in time spent table - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchTimeSpent($id) { @@ -1720,7 +1720,7 @@ class Task extends CommonObjectLine * * @param User $user User id * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updateTimeSpent($user, $notrigger = 0) { @@ -1839,7 +1839,7 @@ class Task extends CommonObjectLine * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delTimeSpent($user, $notrigger = 0) { diff --git a/htdocs/reception/class/reception.class.php b/htdocs/reception/class/reception.class.php index 4ba447318ab..3ed5d3d8d97 100644 --- a/htdocs/reception/class/reception.class.php +++ b/htdocs/reception/class/reception.class.php @@ -892,7 +892,7 @@ class Reception extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -1415,7 +1415,7 @@ class Reception extends CommonObject * * @param User $user Objet utilisateur qui modifie * @param integer $delivery_date Delivery date - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDeliveryDate($user, $delivery_date) { @@ -1533,7 +1533,7 @@ class Reception extends CommonObject /** * Classify the reception as closed (this record also the stock movement) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setClosed() { @@ -1839,7 +1839,7 @@ class Reception extends CommonObject * Set draft status * * @param User $user Object user that modify - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user) { diff --git a/htdocs/recruitment/class/recruitmentcandidature.class.php b/htdocs/recruitment/class/recruitmentcandidature.class.php index 33ed51bccfc..e30e1d7807d 100644 --- a/htdocs/recruitment/class/recruitmentcandidature.class.php +++ b/htdocs/recruitment/class/recruitmentcandidature.class.php @@ -210,7 +210,7 @@ class RecruitmentCandidature extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -324,7 +324,7 @@ class RecruitmentCandidature extends CommonObject * @param int $id Id object * @param string $ref Ref * @param string $email_msgid Email msgid - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null, $email_msgid = '') { @@ -342,7 +342,7 @@ class RecruitmentCandidature extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -436,7 +436,7 @@ class RecruitmentCandidature extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -448,7 +448,7 @@ class RecruitmentCandidature extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -611,7 +611,7 @@ class RecruitmentCandidature extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/recruitment/class/recruitmentjobposition.class.php b/htdocs/recruitment/class/recruitmentjobposition.class.php index 25dab1690ed..83421e02392 100644 --- a/htdocs/recruitment/class/recruitmentjobposition.class.php +++ b/htdocs/recruitment/class/recruitmentjobposition.class.php @@ -231,7 +231,7 @@ class RecruitmentJobPosition extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -343,7 +343,7 @@ class RecruitmentJobPosition extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -357,7 +357,7 @@ class RecruitmentJobPosition extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -451,7 +451,7 @@ class RecruitmentJobPosition extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -463,7 +463,7 @@ class RecruitmentJobPosition extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -626,7 +626,7 @@ class RecruitmentJobPosition extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { @@ -676,7 +676,7 @@ class RecruitmentJobPosition extends CommonObject * @param int $status Statut * @param string $note Complete private note with this note * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function cloture($user, $status, $note = "", $notrigger = 0) { diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index 68c4698ec72..0caacd76bf9 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -110,7 +110,7 @@ class Dolresource extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -210,7 +210,7 @@ class Dolresource extends CommonObject * * @param int $id Id of object * @param string $ref Ref of object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '') { @@ -270,7 +270,7 @@ class Dolresource extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -371,7 +371,7 @@ class Dolresource extends CommonObject * Load data of resource links in memory from database * * @param int $id Id of link element_resources - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_element_resource($id) { @@ -586,7 +586,7 @@ class Dolresource extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_element_resource($user = null, $notrigger = 0) { @@ -903,7 +903,7 @@ class Dolresource extends CommonObject /** * Charge indicateurs this->nb de tableau de bord * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { diff --git a/htdocs/salaries/class/paymentsalary.class.php b/htdocs/salaries/class/paymentsalary.class.php index 144980c207e..9996aa9de2d 100644 --- a/htdocs/salaries/class/paymentsalary.class.php +++ b/htdocs/salaries/class/paymentsalary.class.php @@ -274,7 +274,7 @@ class PaymentSalary extends CommonObject * Load object in memory from database * * @param int $id Id object - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id) { @@ -343,7 +343,7 @@ class PaymentSalary extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -406,7 +406,7 @@ class PaymentSalary extends CommonObject * * @param User $user User that delete * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -533,7 +533,7 @@ class PaymentSalary extends CommonObject * @param int $accountid Id of bank account to do link with * @param string $emetteur_nom Name of transmitter * @param string $emetteur_banque Name of bank - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function addPaymentToBank($user, $mode, $label, $accountid, $emetteur_nom, $emetteur_banque) { diff --git a/htdocs/salaries/class/salary.class.php b/htdocs/salaries/class/salary.class.php index 41d975698e9..f0f6be4ad3f 100644 --- a/htdocs/salaries/class/salary.class.php +++ b/htdocs/salaries/class/salary.class.php @@ -144,7 +144,7 @@ class Salary extends CommonObject * * @param User $user User that modify * @param int $notrigger 0=no, 1=yes (no update trigger) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = null, $notrigger = 0) { @@ -220,7 +220,7 @@ class Salary extends CommonObject * * @param int $id id object * @param User $user User that load - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $user = null) { @@ -291,7 +291,7 @@ class Salary extends CommonObject * * @param User $user User that delete * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -328,7 +328,7 @@ class Salary extends CommonObject * Create in database * * @param User $user User that create - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -451,7 +451,7 @@ class Salary extends CommonObject * Update link between payment salary and line generate into llx_bank * * @param int $id_bank Id bank account - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_fk_bank($id_bank) { @@ -639,7 +639,7 @@ class Salary extends CommonObject * @deprecated * @see setPaid() * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_paid($user) { @@ -652,7 +652,7 @@ class Salary extends CommonObject * Tag social contribution as payed completely * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPaid($user) { @@ -675,7 +675,7 @@ class Salary extends CommonObject * Remove tag payed on social contribution * * @param User $user Object user making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_unpaid($user) { diff --git a/htdocs/societe/class/client.class.php b/htdocs/societe/class/client.class.php index c311762a213..8bf79b2b7f7 100644 --- a/htdocs/societe/class/client.class.php +++ b/htdocs/societe/class/client.class.php @@ -52,7 +52,7 @@ class Client extends Societe /** * Load indicators into this->nb for board * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -102,7 +102,7 @@ class Client extends Societe * Load array of prospect status * * @param int $active 1=Active only, 0=Not active only, -1=All - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function loadCacheOfProspStatus($active = 1) { diff --git a/htdocs/societe/class/companybankaccount.class.php b/htdocs/societe/class/companybankaccount.class.php index 732a39a17e4..2f83e7951c6 100644 --- a/htdocs/societe/class/companybankaccount.class.php +++ b/htdocs/societe/class/companybankaccount.class.php @@ -416,7 +416,7 @@ class CompanyBankAccount extends Account * @param int $socid Id of company. If this is filled, function will return the first entry found (matching $default and $type) * @param int $default If id of company filled, we say if we want first record among all (-1), default record (1) or non default record (0) * @param int $type If id of company filled, we say if we want record of this type only - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $socid = 0, $default = 1, $type = 'ban') { @@ -490,7 +490,7 @@ class CompanyBankAccount extends Account * * @param User|null $user User deleting * @param int $notrigger 1=Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user = null, $notrigger = 0) { diff --git a/htdocs/societe/class/companypaymentmode.class.php b/htdocs/societe/class/companypaymentmode.class.php index d16401d28a9..c8e4d1b95d6 100644 --- a/htdocs/societe/class/companypaymentmode.class.php +++ b/htdocs/societe/class/companypaymentmode.class.php @@ -233,7 +233,7 @@ class CompanyPaymentMode extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -300,7 +300,7 @@ class CompanyPaymentMode extends CommonObject * @param int $socid Id of company to get first default payment mode * @param string $type Filter on type ('ban', 'card', ...) * @param string $morewhere More SQL filters (' AND ...') - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null, $socid = 0, $type = '', $morewhere = '') { @@ -323,7 +323,7 @@ class CompanyPaymentMode extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ /*public function fetchLines() { @@ -339,7 +339,7 @@ class CompanyPaymentMode extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -351,7 +351,7 @@ class CompanyPaymentMode extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 90d6a907653..1bec8fba579 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1073,7 +1073,7 @@ class Societe extends CommonObject * @param int $no_email 1=Do not send mailing, 0=Ok to recieve mailling * @param array $tags Array of tag to affect to contact * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create_individual(User $user, $no_email = 0, $tags = array(), $notrigger = 0) { @@ -2212,7 +2212,7 @@ class Societe extends CommonObject /** * Define third party as a customer * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @deprecated * @see setAsCustomer() */ @@ -2227,7 +2227,7 @@ class Societe extends CommonObject /** * Define third party as a customer * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * @since dolibarr v19 */ public function setAsCustomer() @@ -2259,7 +2259,7 @@ class Societe extends CommonObject * @param float $remise Value in % of the discount * @param string $note Note/Reason for changing the discount * @param User $user User who sets the discount - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_remise_client($remise, $note, User $user) { @@ -2320,7 +2320,7 @@ class Societe extends CommonObject * @param float $remise Value in % of the discount * @param string $note Note/Reason for changing the discount * @param User $user User who sets the discount - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function set_remise_supplier($remise, $note, User $user) { @@ -2546,7 +2546,7 @@ class Societe extends CommonObject * * @param int $price_level Level of price * @param User $user Use making change - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setPriceLevel($price_level, User $user) { @@ -3618,7 +3618,7 @@ class Societe extends CommonObject * Define parent company of current company * * @param int $id Id of thirdparty to set or '' to remove - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setParent($id) { @@ -4249,7 +4249,7 @@ class Societe extends CommonObject * Set "blacklist" mailing status * * @param int $no_email 1=Do not send mailing, 0=Ok to recieve mailling - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setNoEmail($no_email) { @@ -4306,7 +4306,7 @@ class Societe extends CommonObject * get "blacklist" mailing status * set no_email attribut to 1 or 0 * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function getNoEmail() { @@ -5026,7 +5026,7 @@ class Societe extends CommonObject * @param int $hidedesc Hide description * @param int $hideref Hide ref * @param null|array $moreparams Array to provide more information - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null) { @@ -5083,7 +5083,7 @@ class Societe extends CommonObject * * @param int[]|int $categories Category ID or array of Categories IDs * @param string $type_categ Category type ('customer' or 'supplier') - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories, $type_categ) { @@ -5103,7 +5103,7 @@ class Societe extends CommonObject * * @param int[]|int $salesrep User ID or array of user IDs * @param bool $onlyAdd Only add (no delete before) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setSalesRep($salesrep, $onlyAdd = false) { @@ -5148,7 +5148,7 @@ class Societe extends CommonObject * Define third-party type of current company * * @param int $typent_id third party type rowid in llx_c_typent - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setThirdpartyType($typent_id) { @@ -5274,7 +5274,7 @@ class Societe extends CommonObject * Function to get partnerships array * * @param string $mode 'member' or 'thirdparty' - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchPartnerships($mode) { diff --git a/htdocs/societe/class/societeaccount.class.php b/htdocs/societe/class/societeaccount.class.php index a745cb8bbb6..e070f07740b 100644 --- a/htdocs/societe/class/societeaccount.class.php +++ b/htdocs/societe/class/societeaccount.class.php @@ -202,7 +202,7 @@ class SocieteAccount extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -264,7 +264,7 @@ class SocieteAccount extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -278,7 +278,7 @@ class SocieteAccount extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -363,7 +363,7 @@ class SocieteAccount extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -375,7 +375,7 @@ class SocieteAccount extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index 3d1d3d9ce10..1a80455607d 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -246,7 +246,7 @@ class SupplierProposal extends CommonObject * @param int $idproduct Product Id to add * @param int $qty Quantity * @param int $remise_percent Discount effected on Product - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK * * TODO Remplacer les appels a cette fonction par generation objet Ligne */ @@ -1617,7 +1617,7 @@ class SupplierProposal extends CommonObject * @param int $statut Statut * @param string $note Comment * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function reopen($user, $statut, $note = '', $notrigger = 0) { @@ -1675,7 +1675,7 @@ class SupplierProposal extends CommonObject * @param User $user Object user that close * @param int $status Status * @param string $note Comment - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function cloture($user, $status, $note) { @@ -1789,7 +1789,7 @@ class SupplierProposal extends CommonObject * @param int $idProductFournPrice id of llx_product_fournisseur_price * @param Product $product contain informations to update * @param User $user Object user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updatePriceFournisseur($idProductFournPrice, $product, $user) { @@ -1812,7 +1812,7 @@ class SupplierProposal extends CommonObject * * @param Product $product Object Product * @param User $user Object user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function createPriceFournisseur($product, $user) { @@ -1875,7 +1875,7 @@ class SupplierProposal extends CommonObject * Set draft status * * @param User $user Object user that modify - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user) { @@ -2965,7 +2965,7 @@ class SupplierProposalLine extends CommonObjectLine * Retrieve the propal line object * * @param int $rowid Propal line id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($rowid) { @@ -3044,7 +3044,7 @@ class SupplierProposalLine extends CommonObjectLine * Insert object line propal in database * * @param int $notrigger 1=Does not execute triggers, 0= execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function insert($notrigger = 0) { @@ -3208,7 +3208,7 @@ class SupplierProposalLine extends CommonObjectLine * Delete line in database * * @param User $user User making the deletion - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user) { diff --git a/htdocs/support/inc.php b/htdocs/support/inc.php index 257cda97af8..cca0a2dd6a9 100644 --- a/htdocs/support/inc.php +++ b/htdocs/support/inc.php @@ -182,7 +182,7 @@ $bc[true] = ' class="bg2"'; * Load conf file (file must exists) * * @param string $dolibarr_main_document_root Root directory of Dolibarr bin files - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ function loadconf($dolibarr_main_document_root) { diff --git a/htdocs/ticket/class/actions_ticket.class.php b/htdocs/ticket/class/actions_ticket.class.php index 9d8faf20a72..3a5e333cbb1 100644 --- a/htdocs/ticket/class/actions_ticket.class.php +++ b/htdocs/ticket/class/actions_ticket.class.php @@ -117,7 +117,7 @@ class ActionsTicket extends CommonHookActions * @param int $id ID of ticket * @param string $ref Reference of ticket * @param string $track_id Track ID of ticket (for public area) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id = 0, $ref = '', $track_id = '') { diff --git a/htdocs/ticket/class/cticketcategory.class.php b/htdocs/ticket/class/cticketcategory.class.php index 148b585c268..9033587e2df 100644 --- a/htdocs/ticket/class/cticketcategory.class.php +++ b/htdocs/ticket/class/cticketcategory.class.php @@ -223,7 +223,7 @@ class CTicketCategory extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -336,7 +336,7 @@ class CTicketCategory extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -350,7 +350,7 @@ class CTicketCategory extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -444,7 +444,7 @@ class CTicketCategory extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -456,7 +456,7 @@ class CTicketCategory extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 4e897051d63..5787e580d42 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -480,7 +480,7 @@ class Ticket extends CommonObject * * @param User $user User that creates * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create($user, $notrigger = 0) { @@ -626,7 +626,7 @@ class Ticket extends CommonObject * @param string $ref Ref * @param string $track_id Track id, a hash like ref * @param string $email_msgid Email msgid - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id = '', $ref = '', $track_id = '', $email_msgid = '') { @@ -761,7 +761,7 @@ class Ticket extends CommonObject * @param int $offset Offset for query * @param int $arch archive or not (not used) * @param array $filter Filter for query - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($user, $sortorder = 'ASC', $sortfield = 't.datec', $limit = '', $offset = 0, $arch = '', $filter = '') { @@ -928,7 +928,7 @@ class Ticket extends CommonObject * * @param User $user User that modifies * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update($user = 0, $notrigger = 0) { @@ -1084,7 +1084,7 @@ class Ticket extends CommonObject * * @param User $user User that deletes * @param int $notrigger 0=launch triggers after, 1=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete($user, $notrigger = 0) { @@ -1715,7 +1715,7 @@ class Ticket extends CommonObject * @param array $mimefilename_list List of attached file name in message * @param boolean $send_email Whether the message is sent by email * @param int $public_area 0=Default, 1 if we are creating the message from a public area (so we can search contact from email to add it as contact of ticket if TICKET_ASSIGN_CONTACT_TO_MESSAGE is set) - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function createTicketMessage($user, $notrigger = 0, $filename_list = array(), $mimetype_list = array(), $mimefilename_list = array(), $send_email = false, $public_area = 0) { @@ -2038,7 +2038,7 @@ class Ticket extends CommonObject * Define parent commany of current ticket * * @param int $id Id of thirdparty to set or '' to remove - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCustomer($id) { @@ -2062,7 +2062,7 @@ class Ticket extends CommonObject * Define progression of current ticket * * @param int $percent Progression percent - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setProgression($percent) { @@ -2086,7 +2086,7 @@ class Ticket extends CommonObject * Link element with a contract * * @param int $contractid Contract id to link element to - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setContract($contractid) { @@ -2485,7 +2485,7 @@ class Ticket extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 7826a68950a..7ac024e929f 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1432,7 +1432,7 @@ class User extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category or categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { @@ -1444,7 +1444,7 @@ class User extends CommonObject * Delete the user * * @param User $user User than delete - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user) { @@ -2548,7 +2548,7 @@ class User extends CommonObject /** * Read clicktodial information for user * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_clicktodial() { @@ -2582,7 +2582,7 @@ class User extends CommonObject /** * Update clicktodial info * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_clicktodial() { @@ -2623,7 +2623,7 @@ class User extends CommonObject * @param int $group Id of group * @param int $entity Entity * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function SetInGroup($group, $entity, $notrigger = 0) { @@ -2679,7 +2679,7 @@ class User extends CommonObject * @param int $group Id of group * @param int $entity Entity * @param int $notrigger Disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function RemoveFromGroup($group, $entity, $notrigger = 0) { @@ -3519,7 +3519,7 @@ class User extends CommonObject * Update user using data from the LDAP * * @param Object $ldapuser Ladp User - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update_ldap2dolibarr(&$ldapuser) { @@ -3601,7 +3601,7 @@ class User extends CommonObject /** * Load this->parentof that is array(id_son=>id_parent, ...) * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ private function loadParentOf() { @@ -3831,7 +3831,7 @@ class User extends CommonObject /** * Load metrics this->nb for dashboard * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function load_state_board() { @@ -3981,7 +3981,7 @@ class User extends CommonObject * @param array $filter Filter array. Example array('field'=>'valueforlike', 'customurl'=>...) * @param string $filtermode Filter mode (AND or OR) * @param bool $entityfilter Activate entity filter - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, $filter = array(), $filtermode = 'AND', $entityfilter = false) { diff --git a/htdocs/user/class/userbankaccount.class.php b/htdocs/user/class/userbankaccount.class.php index 14269610491..081b1576b0c 100644 --- a/htdocs/user/class/userbankaccount.class.php +++ b/htdocs/user/class/userbankaccount.class.php @@ -160,7 +160,7 @@ class UserBankAccount extends Account * @param int $id Id of record * @param string $ref Ref of record * @param int $userid User id - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id, $ref = '', $userid = 0) { @@ -230,7 +230,7 @@ class UserBankAccount extends Account * Delete user bank account from database * * @param User|null $user User deleting - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user = null) { diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php index 6fabba3fcc4..d9183f19596 100644 --- a/htdocs/user/class/usergroup.class.php +++ b/htdocs/user/class/usergroup.class.php @@ -161,7 +161,7 @@ class UserGroup extends CommonObject * @param int $id Id of group to load * @param string $groupname Name of group to load * @param boolean $load_members Load all members of the group - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch($id = 0, $groupname = '', $load_members = false) { diff --git a/htdocs/variants/class/ProductAttribute.class.php b/htdocs/variants/class/ProductAttribute.class.php index 3ab23b85d9a..caeebec77d5 100644 --- a/htdocs/variants/class/ProductAttribute.class.php +++ b/htdocs/variants/class/ProductAttribute.class.php @@ -515,7 +515,7 @@ class ProductAttribute extends CommonObject * Load array lines * * @param string $filters Filter on other fields - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function fetch_lines($filters = '') { @@ -870,7 +870,7 @@ class ProductAttribute extends CommonObject * * @param boolean $renum True to renum all already ordered lines, false to renum only not already ordered lines. * @param string $rowidorder ASC or DESC - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function attributeOrder($renum = false, $rowidorder = 'ASC') { @@ -930,7 +930,7 @@ class ProductAttribute extends CommonObject * * @param int $rowid Id of line * @param int $position Position - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function updatePositionOfAttribute($rowid, $position) { diff --git a/htdocs/variants/class/ProductAttributeValue.class.php b/htdocs/variants/class/ProductAttributeValue.class.php index c563eabf125..5cd32e9fa3b 100644 --- a/htdocs/variants/class/ProductAttributeValue.class.php +++ b/htdocs/variants/class/ProductAttributeValue.class.php @@ -315,7 +315,7 @@ class ProductAttributeValue extends CommonObjectLine * * @param User $user Object user * @param int $notrigger Do not execute trigger - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = 0) { diff --git a/htdocs/variants/class/ProductCombination.class.php b/htdocs/variants/class/ProductCombination.class.php index 911737561ab..1a76fafbc5d 100644 --- a/htdocs/variants/class/ProductCombination.class.php +++ b/htdocs/variants/class/ProductCombination.class.php @@ -348,7 +348,7 @@ class ProductCombination * Creates a product attribute combination * * @param User $user Object user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function create($user) { @@ -420,7 +420,7 @@ class ProductCombination * Deletes a product combination * * @param User $user Object user - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user) { diff --git a/htdocs/webhook/class/target.class.php b/htdocs/webhook/class/target.class.php index dd680f4b1d7..f17bb84182a 100644 --- a/htdocs/webhook/class/target.class.php +++ b/htdocs/webhook/class/target.class.php @@ -335,7 +335,7 @@ class Target extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -350,7 +350,7 @@ class Target extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -446,7 +446,7 @@ class Target extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -458,7 +458,7 @@ class Target extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -621,7 +621,7 @@ class Target extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDraft($user, $notrigger = 0) { diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index 648f991e89b..ef6cfc6bb8e 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -310,7 +310,7 @@ class Website extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -386,7 +386,7 @@ class Website extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -490,7 +490,7 @@ class Website extends CommonObject * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -602,7 +602,7 @@ class Website extends CommonObject * @param User $user User that deletes * @param bool $notrigger false=launch triggers, true=disable triggers * - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { diff --git a/htdocs/website/class/websitepage.class.php b/htdocs/website/class/websitepage.class.php index c63ee85b44e..fd7a217c30e 100644 --- a/htdocs/website/class/websitepage.class.php +++ b/htdocs/website/class/websitepage.class.php @@ -209,7 +209,7 @@ class WebsitePage extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -239,7 +239,7 @@ class WebsitePage extends CommonObject * @param string $page Page name (website id must also be filled if this parameter is used). Exemple 'myaliaspage' or 'fr/myaliaspage' * @param string $aliasalt Alternative alias to search page (slow) * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $website_id = null, $page = null, $aliasalt = null) { @@ -556,7 +556,7 @@ class WebsitePage extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -594,7 +594,7 @@ class WebsitePage extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -846,7 +846,7 @@ class WebsitePage extends CommonObject * Existing categories are left untouch. * * @param int[]|int $categories Category ID or array of Categories IDs - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setCategories($categories) { diff --git a/htdocs/workstation/class/workstation.class.php b/htdocs/workstation/class/workstation.class.php index 46c7fa9286c..cb0a75376a1 100644 --- a/htdocs/workstation/class/workstation.class.php +++ b/htdocs/workstation/class/workstation.class.php @@ -189,7 +189,7 @@ class Workstation extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -335,7 +335,7 @@ class Workstation extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -353,7 +353,7 @@ class Workstation extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetchLines() { @@ -449,7 +449,7 @@ class Workstation extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -489,7 +489,7 @@ class Workstation extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) { @@ -520,7 +520,7 @@ class Workstation extends CommonObject * * @param int $status New status to set * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setStatus($status, $notrigger = 0) { @@ -541,7 +541,7 @@ class Workstation extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setEnabled($user, $notrigger = 0) { @@ -554,7 +554,7 @@ class Workstation extends CommonObject * * @param User $user Object user that modify * @param int $notrigger 1=Does not execute triggers, 0=Execute triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function setDisabled($user, $notrigger = 0) { diff --git a/htdocs/zapier/class/hook.class.php b/htdocs/zapier/class/hook.class.php index 992edc08abd..41e1d2161d9 100644 --- a/htdocs/zapier/class/hook.class.php +++ b/htdocs/zapier/class/hook.class.php @@ -289,7 +289,7 @@ class Hook extends CommonObject * * @param User $user User that creates * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, Id of created object if OK + * @return int Return integer <0 if KO, Id of created object if OK */ public function create(User $user, $notrigger = false) { @@ -365,7 +365,7 @@ class Hook extends CommonObject * * @param int $id Id object * @param string $ref Ref - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ public function fetch($id, $ref = null) { @@ -379,7 +379,7 @@ class Hook extends CommonObject /** * Load object lines in memory from the database * - * @return int <0 if KO, 0 if not found, >0 if OK + * @return int Return integer <0 if KO, 0 if not found, >0 if OK */ /*public function fetchLines() { @@ -469,7 +469,7 @@ class Hook extends CommonObject * * @param User $user User that modifies * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function update(User $user, $notrigger = false) { @@ -481,7 +481,7 @@ class Hook extends CommonObject * * @param User $user User that deletes * @param bool $notrigger false=launch triggers after, true=disable triggers - * @return int <0 if KO, >0 if OK + * @return int Return integer <0 if KO, >0 if OK */ public function delete(User $user, $notrigger = false) {