2
0
forked from Wavyzz/dolibarr

Fix phpstan

This commit is contained in:
Laurent Destailleur
2024-07-31 14:31:29 +02:00
parent 32d3424423
commit 09eaf38bd1
32 changed files with 35 additions and 35 deletions

View File

@@ -116,7 +116,7 @@ class mod_asset_advanced extends ModeleNumRefAsset
* Return next free value * Return next free value
* *
* @param Asset $object Object we need next value for * @param Asset $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -121,7 +121,7 @@ class mod_bom_advanced extends ModeleNumRefBoms
* *
* @param Product $objprod Object product * @param Product $objprod Object product
* @param Bom $object Object we need next value for * @param Bom $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objprod, $object) public function getNextValue($objprod, $object)
{ {

View File

@@ -112,7 +112,7 @@ class mod_chequereceipt_thyme extends ModeleNumRefChequeReceipts
* *
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param RemiseCheque $object Object we need next value for * @param RemiseCheque $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -121,7 +121,7 @@ class mod_commande_saphir extends ModeleNumRefCommandes
* *
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param Commande $object Object we need next value for * @param Commande $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -107,7 +107,7 @@ class mod_contract_magre extends ModelNumRefContracts
* *
* @param Societe $objsoc third party object * @param Societe $objsoc third party object
* @param Contrat $contract contract object * @param Contrat $contract contract object
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $contract) public function getNextValue($objsoc, $contract)
{ {

View File

@@ -124,7 +124,7 @@ class mod_delivery_saphir extends ModeleNumRefDeliveryOrder
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Delivery $object Object delivery * @param Delivery $object Object delivery
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {
@@ -151,7 +151,7 @@ class mod_delivery_saphir extends ModeleNumRefDeliveryOrder
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Delivery $objforref Object for number to search * @param Delivery $objforref Object for number to search
* @return string|int<0> Next free value, 0 if KO * @return string|int Next free value, 0 if KO
* @deprecated see getNextValue * @deprecated see getNextValue
*/ */
public function getNumRef($objsoc, $objforref) public function getNumRef($objsoc, $objforref)

View File

@@ -119,7 +119,7 @@ class mod_expedition_ribera extends ModelNumRefExpedition
* *
* @param Societe $objsoc Third party object * @param Societe $objsoc Third party object
* @param Expedition $shipment Shipment object * @param Expedition $shipment Shipment object
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $shipment) public function getNextValue($objsoc, $shipment)
{ {

View File

@@ -121,7 +121,7 @@ class mod_expensereport_jade extends ModeleNumRefExpenseReport
* Return next free value * Return next free value
* *
* @param Object $object Object we need next value for * @param Object $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -123,7 +123,7 @@ class mod_expensereport_sand extends ModeleNumRefExpenseReport
* Return next free value * Return next free value
* *
* @param ExpenseReport $object Object we need next value for * @param ExpenseReport $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -140,7 +140,7 @@ class mod_facture_mercure extends ModeleNumRefFactures
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Facture $invoice Object invoice * @param Facture $invoice Object invoice
* @param string $mode 'next' for next value or 'last' for last value * @param string $mode 'next' for next value or 'last' for last value
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $invoice, $mode = 'next') public function getNextValue($objsoc, $invoice, $mode = 'next')
{ {
@@ -185,7 +185,7 @@ class mod_facture_mercure extends ModeleNumRefFactures
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Facture $objforref Object for number to search * @param Facture $objforref Object for number to search
* @param string $mode 'next' for next value or 'last' for last value * @param string $mode 'next' for next value or 'last' for last value
* @return string|int<0> Next free value, 0 if KO * @return string|int Next free value, 0 if KO
* @deprecated see getNextValue * @deprecated see getNextValue
*/ */
public function getNumRef($objsoc, $objforref, $mode = 'next') public function getNumRef($objsoc, $objforref, $mode = 'next')

View File

@@ -124,7 +124,7 @@ class mod_arctic extends ModeleNumRefFicheinter
* *
* @param Societe|string $objsoc Object thirdparty * @param Societe|string $objsoc Object thirdparty
* @param Fichinter|string $object Object we need next value for * @param Fichinter|string $object Object we need next value for
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc = '', $object = '') public function getNextValue($objsoc = '', $object = '')
{ {
@@ -154,7 +154,7 @@ class mod_arctic extends ModeleNumRefFicheinter
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Fichinter $objforref Object for number to search * @param Fichinter $objforref Object for number to search
* @return string|int<0> Next free value, 0 if KO * @return string|int Next free value, 0 if KO
* @deprecated see getNextValue * @deprecated see getNextValue
*/ */
public function getNumRef($objsoc, $objforref) public function getNumRef($objsoc, $objforref)

View File

@@ -107,7 +107,7 @@ class mod_holiday_immaculate extends ModelNumRefHolidays
* *
* @param Societe $objsoc third party object * @param Societe $objsoc third party object
* @param Holiday $holiday holiday object * @param Holiday $holiday holiday object
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $holiday) public function getNextValue($objsoc, $holiday)
{ {

View File

@@ -125,7 +125,7 @@ class mod_evaluation_advanced extends ModeleNumRefEvaluation
* Return next free value * Return next free value
* *
* @param Evaluation $object Object we need next value for * @param Evaluation $object Object we need next value for
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -122,7 +122,7 @@ class mod_mo_advanced extends ModeleNumRefMos
* *
* @param Product $objprod Object product * @param Product $objprod Object product
* @param Mo $object Object we need next value for * @param Mo $object Object we need next value for
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objprod, $object) public function getNextValue($objprod, $object)
{ {

View File

@@ -121,7 +121,7 @@ class mod_payment_ant extends ModeleNumRefPayments
* *
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param Object $object Object we need next value for * @param Object $object Object we need next value for
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -136,7 +136,7 @@ class mod_lot_advanced extends ModeleNumRefBatch
* *
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param Productlot $object Object we need next value for * @param Productlot $object Object we need next value for
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -136,7 +136,7 @@ class mod_sn_advanced extends ModeleNumRefBatch
* *
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param Productlot $object Object we need next value for * @param Productlot $object Object we need next value for
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -128,7 +128,7 @@ class mod_project_universal extends ModeleNumRefProjects
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Project $project Object project * @param Project $project Object project
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $project) public function getNextValue($objsoc, $project)
{ {

View File

@@ -123,7 +123,7 @@ class mod_task_universal extends ModeleNumRefTask
* *
* @param Societe|string $objsoc Object third party * @param Societe|string $objsoc Object third party
* @param Task|string $object Object task * @param Task|string $object Object task
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc = '', $object = '') public function getNextValue($objsoc = '', $object = '')
{ {

View File

@@ -128,7 +128,7 @@ class mod_propale_saphir extends ModeleNumRefPropales
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Propal $propal Object commercial proposal * @param Propal $propal Object commercial proposal
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $propal) public function getNextValue($objsoc, $propal)
{ {

View File

@@ -100,7 +100,7 @@ class mod_reception_moonstone extends ModelNumRefReception
* *
* @param Societe $objsoc Third party object * @param Societe $objsoc Third party object
* @param Reception|null $reception Reception object * @param Reception|null $reception Reception object
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $reception) public function getNextValue($objsoc, $reception)
{ {

View File

@@ -153,7 +153,7 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param FactureFournisseur $object Object invoice * @param FactureFournisseur $object Object invoice
* @param string $mode 'next' for next value or 'last' for last value * @param string $mode 'next' for next value or 'last' for last value
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object, $mode = 'next') public function getNextValue($objsoc, $object, $mode = 'next')
{ {

View File

@@ -128,7 +128,7 @@ class mod_commande_fournisseur_orchidee extends ModeleNumRefSuppliersOrders
* *
* @param Societe|string $objsoc Object third party * @param Societe|string $objsoc Object third party
* @param CommandeFournisseur $object Object * @param CommandeFournisseur $object Object
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -122,7 +122,7 @@ class mod_supplier_payment_brodator extends ModeleNumRefSupplierPayments
* *
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param PaiementFourn $object Object we need next value for * @param PaiementFourn $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $object) public function getNextValue($objsoc, $object)
{ {

View File

@@ -126,7 +126,7 @@ class mod_supplier_proposal_saphir extends ModeleNumRefSupplierProposal
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param SupplierProposal $supplier_proposal Object commercial proposal * @param SupplierProposal $supplier_proposal Object commercial proposal
* @return string|int<0> Value if OK, 0 if KO * @return string|int Value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $supplier_proposal) public function getNextValue($objsoc, $supplier_proposal)
{ {

View File

@@ -121,7 +121,7 @@ class mod_takepos_ref_universal extends ModeleNumRefTakepos
* @param Societe $objsoc Object thirdparty * @param Societe $objsoc Object thirdparty
* @param Facture $invoice Object invoice * @param Facture $invoice Object invoice
* @param string $mode 'next' for next value or 'last' for last value * @param string $mode 'next' for next value or 'last' for last value
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objsoc = null, $invoice = null, $mode = 'next') public function getNextValue($objsoc = null, $invoice = null, $mode = 'next')
{ {

View File

@@ -120,7 +120,7 @@ class mod_ticket_universal extends ModeleNumRefTicket
* *
* @param Societe $objsoc Object third party * @param Societe $objsoc Object third party
* @param Ticket $ticket Object ticket * @param Ticket $ticket Object ticket
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($objsoc, $ticket) public function getNextValue($objsoc, $ticket)
{ {

View File

@@ -126,7 +126,7 @@ class mod_workstation_advanced extends ModeleNumRefWorkstation
* Return next free value * Return next free value
* *
* @param Workstation $object Object we need next value for * @param Workstation $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -124,7 +124,7 @@ class mod_knowledgerecord_advanced extends ModeleNumRefKnowledgeRecord
* Return next free value * Return next free value
* *
* @param Object $object Object we need next value for * @param Object $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -123,7 +123,7 @@ class mod_myobject_advanced extends ModeleNumRefMyObject
* Return next free value * Return next free value
* *
* @param Object $object Object we need next value for * @param Object $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -120,7 +120,7 @@ class mod_recruitmentcandidature_advanced extends ModeleNumRefRecruitmentCandida
* Return next free value * Return next free value
* *
* @param RecruitmentCandidature $object Object we need next value for * @param RecruitmentCandidature $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {

View File

@@ -120,7 +120,7 @@ class mod_recruitmentjobposition_advanced extends ModeleNumRefRecruitmentJobPosi
* Return next free value * Return next free value
* *
* @param RecruitmentJobPosition $object Object we need next value for * @param RecruitmentJobPosition $object Object we need next value for
* @return string|int<0> Next value if OK, 0 if KO * @return string|int Next value if OK, 0 if KO
*/ */
public function getNextValue($object) public function getNextValue($object)
{ {