diff --git a/dev/skeletons/skeleton_webservice_server.php b/dev/skeletons/skeleton_webservice_server.php index 52bb46455cb..54a050ff9da 100644 --- a/dev/skeletons/skeleton_webservice_server.php +++ b/dev/skeletons/skeleton_webservice_server.php @@ -141,7 +141,7 @@ $server->register( * @param array $authentication Array of authentication information * @param int $id Id of object * @param string $ref Ref of object - * @param ref_ext $ref_ext Ref external of object + * @param string $ref_ext Ref external of object * @return mixed */ function getSkeleton($authentication,$id,$ref='',$ref_ext='') diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 6c61c51f1f1..8c8c2d604ca 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -1045,7 +1045,7 @@ class Adherent extends CommonObject * @param int $rowid Id of object to load * @param string $ref To load member from its ref * @param int $fk_soc To load member from its link to third party - * @param int $ref_ext External reference + * @param string $ref_ext External reference * @return int >0 if OK, 0 if not found, <0 if KO */ function fetch($rowid,$ref='',$fk_soc='',$ref_ext='') diff --git a/htdocs/compta/bank/class/bankcateg.class.php b/htdocs/compta/bank/class/bankcateg.class.php index 8811ad7c878..fb796b219ee 100644 --- a/htdocs/compta/bank/class/bankcateg.class.php +++ b/htdocs/compta/bank/class/bankcateg.class.php @@ -30,9 +30,7 @@ /** - * \class BankCateg - * \brief Class to manage bank categories - * \remarks Initialy built by build_class_from_table on 2009-01-02 15:26 + * Class to manage bank categories */ class BankCateg // extends CommonObject { @@ -300,7 +298,7 @@ class BankCateg // extends CommonObject $error=0; - $object=new Bank_categ($this->db); + $object=new BankCateg($this->db); $this->db->begin(); diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index cd8ba3b06a1..632381c8541 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -2479,7 +2479,7 @@ class Facture extends CommonInvoice * Return next reference of customer invoice not already used (or last reference) * according to numbering module defined into constant FACTURE_ADDON * - * @param Society $soc object company + * @param Societe $soc object company * @param string $mode 'next' for next value or 'last' for last value * @return string free ref or last ref */ @@ -2838,7 +2838,7 @@ class Facture extends CommonInvoice function demande_prelevement($user) { $error=0; - + dol_syslog(get_class($this)."::demande_prelevement", LOG_DEBUG); if ($this->statut > 0 && $this->paye == 0) @@ -2896,12 +2896,12 @@ class Facture extends CommonInvoice { // Force payment mode of invoice to withdraw $payment_mode_id = dol_getIdFromCode($this->db, 'PRE', 'c_paiement'); - if ($payment_mode_id > 0) + if ($payment_mode_id > 0) { $result=$this->setPaymentMethods($payment_mode_id); } - } - + } + if ($error) return -1; return 1; } @@ -3519,7 +3519,7 @@ class FactureLigne extends CommonInvoiceLine return -1; } } - + // POS or by external module, take lowest buying price if (!empty($this->fk_product) && empty($this->fk_fournprice) && empty($this->pa_ht)) { include_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.product.class.php'; diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index 5da94a28b76..497d690072b 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -58,7 +58,7 @@ class BonPrelevement extends CommonObject var $invoice_in_error=array(); - + /** * Constructor * @@ -1634,7 +1634,7 @@ class BonPrelevement extends CommonObject * @param int $nombre 0 or 1 * @param float $total Total * @param string $CrLf End of line character - * @return SEPA + * @return string String with SEAP Sender */ function EnregEmetteurSEPA($configuration, $ladate, $nombre, $total, $CrLf='\n') { // SEPA INITIALISATION diff --git a/htdocs/compta/tva/class/tva.class.php b/htdocs/compta/tva/class/tva.class.php index a86af28cace..a300579fc1f 100644 --- a/htdocs/compta/tva/class/tva.class.php +++ b/htdocs/compta/tva/class/tva.class.php @@ -343,7 +343,7 @@ class Tva extends CommonObject } /** - * Total of the VAT from invoices emitted by the society. + * Total of the VAT from invoices emitted by the thirdparty. * * @param int $year Year * @return double Amount diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 1399ae40215..ae384195162 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -88,7 +88,7 @@ class Contrat extends CommonObject /** * Return next contract ref * - * @param Societe $soc objet society + * @param Societe $soc Thirdparty object * @return string free reference for contract */ function getNextNumRef($soc) diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index a7baf59783d..1c0d1ee21fc 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -669,7 +669,7 @@ class DoliDBPgsql extends DoliDB /** * Renvoie le code erreur generique de l'operation precedente. * - * @return error_num (Exemples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) + * @return string Error code (Exemples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) */ function errno() { @@ -735,7 +735,7 @@ class DoliDBPgsql extends DoliDB /** * Renvoie le texte de l'erreur pgsql de l'operation precedente * - * @return error_text + * @return string Error text */ function error() { diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php index 53ecb880dce..88efde86394 100644 --- a/htdocs/core/db/sqlite.class.php +++ b/htdocs/core/db/sqlite.class.php @@ -536,7 +536,7 @@ class DoliDBSqlite extends DoliDB /** * Renvoie le code erreur generique de l'operation precedente. * - * @return string $error_num (Exemples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) + * @return string Error code (Exemples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) */ function errno() { @@ -598,7 +598,7 @@ class DoliDBSqlite extends DoliDB /** * Renvoie le texte de l'erreur mysql de l'operation precedente. * - * @return string $error_text + * @return string Error text */ function error() { diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index bf2e5f2c218..129d32fc7d9 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -1273,7 +1273,7 @@ function pdf_getlineupexcltax($object,$i,$outputlangs,$hidedetails=0) * * @param Object $object Object * @param int $i Current line number - * @param Tranlate $outputlangs Object langs for output + * @param Translate $outputlangs Object langs for output * @param int $hidedetails Hide value (0 = no, 1 = yes, 2 = just special lines) * @return void */ diff --git a/htdocs/core/modules/syslog/logHandlerInterface.php b/htdocs/core/modules/syslog/logHandlerInterface.php index 7b5a4aa1bdd..47807d8f8f6 100644 --- a/htdocs/core/modules/syslog/logHandlerInterface.php +++ b/htdocs/core/modules/syslog/logHandlerInterface.php @@ -44,7 +44,7 @@ interface LogHandlerInterface /** * Return if logger active * - * @return boolen True if active + * @return boolean True if active */ public function isActive(); diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 2cc0667d58a..7d96d1de12c 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -113,7 +113,7 @@ class Expedition extends CommonObject /** * Return next contract ref * - * @param Societe $soc Objet society + * @param Societe $soc Thirdparty object * @return string Free reference for contract */ function getNextNumRef($soc) diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index bc12821530f..28ef737de13 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -572,7 +572,7 @@ class Fichinter extends CommonObject * Returns the next non used reference of intervention * depending on the module numbering assets within FICHEINTER_ADDON * - * @param Societe $soc Object society + * @param Societe $soc Thirdparty object * @return string Free reference for intervention */ function getNextNumRef($soc) diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index 69c235fd831..95da7550db7 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -1493,7 +1493,7 @@ class FactureFournisseur extends CommonInvoice * Return next reference of supplier invoice not already used (or last reference) * according to numbering module defined into constant INVOICE_SUPPLIER_ADDON_NUMBER * - * @param Society $soc object company + * @param Societe $soc Thirdparty object * @param string $mode 'next' for next value or 'last' for last value * @return string free ref or last ref */ diff --git a/htdocs/holiday/tomergewithdefine_holiday.php b/htdocs/holiday/tomergewithdefine_holiday.php index 4bf904528a0..46dde3028a4 100644 --- a/htdocs/holiday/tomergewithdefine_holiday.php +++ b/htdocs/holiday/tomergewithdefine_holiday.php @@ -46,7 +46,7 @@ llxHeader(array(),$langs->trans('CPTitreMenu')); print_fiche_titre($langs->trans('MenuConfCP')); -$congespayes = new Holidays($db); +$congespayes = new Holiday($db); $listUsers = $congespayes->fetchUsers(false, true); // Si il y a une action de mise à jour diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index fbdf42d86f5..2732080e944 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2382,7 +2382,7 @@ class Societe extends CommonObject * * @param int $idprof 1,2,3,4 (Example: 1=siren,2=siret,3=naf,4=rcs/rm) * @param string $value Value of profid - * @param int $socid Id of society if update + * @param int $socid Id of thirdparty if update * @return boolean true if exists, false if not */ function id_prof_exists($idprof,$value,$socid=0) diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 0b0c452020c..837be155929 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -138,7 +138,7 @@ class User extends CommonObject * * @param int $id Si defini, id a utiliser pour recherche * @param string $login Si defini, login a utiliser pour recherche - * @param strinf $sid Si defini, sid a utiliser pour recherche + * @param string $sid Si defini, sid a utiliser pour recherche * @param int $loadpersonalconf Also load personal conf of user (in $user->conf->xxx) * @return int <0 if KO, 0 not found, >0 if OK */ diff --git a/htdocs/webservices/server_contact.php b/htdocs/webservices/server_contact.php index 4d19dbe2d10..b7550244fc2 100644 --- a/htdocs/webservices/server_contact.php +++ b/htdocs/webservices/server_contact.php @@ -234,7 +234,7 @@ $server->register( * @param array $authentication Array of authentication information * @param int $id Id of object * @param string $ref Ref of object - * @param ref_ext $ref_ext Ref external of object + * @param string $ref_ext Ref external of object * @return mixed */ function getContact($authentication,$id,$ref='',$ref_ext='') diff --git a/htdocs/webservices/server_productorservice.php b/htdocs/webservices/server_productorservice.php index ffe25f8e3e8..6f36b664a3b 100644 --- a/htdocs/webservices/server_productorservice.php +++ b/htdocs/webservices/server_productorservice.php @@ -327,7 +327,7 @@ $server->register( * @param array $authentication Array of authentication information * @param int $id Id of object * @param string $ref Ref of object - * @param ref_ext $ref_ext Ref external of object + * @param string $ref_ext Ref external of object * @param string $lang Lang to force * @return mixed */ @@ -378,7 +378,7 @@ function getProductOrService($authentication,$id='',$ref='',$ref_ext='',$lang='' if (! empty($product->multilangs[$langs->defaultlang]["label"])) $product->label = $product->multilangs[$langs->defaultlang]["label"]; if (! empty($product->multilangs[$langs->defaultlang]["description"])) $product->description = $product->multilangs[$langs->defaultlang]["description"]; if (! empty($product->multilangs[$langs->defaultlang]["note"])) $product->note = $product->multilangs[$langs->defaultlang]["note"]; - + $productorservice_result_fields = array( 'id' => $product->id, 'ref' => $product->ref, @@ -396,7 +396,7 @@ function getProductOrService($authentication,$id='',$ref='',$ref_ext='',$lang='' 'country_id' => $product->country_id>0?$product->country_id:'', 'country_code' => $product->country_code, 'custom_code' => $product->customcode, - + 'price_net' => $product->price, 'price' => $product->price_ttc, 'price_min_net' => $product->price_min, @@ -408,7 +408,7 @@ function getProductOrService($authentication,$id='',$ref='',$ref_ext='',$lang='' //! Spanish local taxes 'localtax1_tx' => $product->localtax1_tx, 'localtax2_tx' => $product->localtax2_tx, - + 'stock_real' => $product->stock_reel, 'stock_alert' => $product->seuil_stock_alerte, 'pmp' => $product->pmp, @@ -416,19 +416,19 @@ function getProductOrService($authentication,$id='',$ref='',$ref_ext='',$lang='' 'dir' => $pdir, 'images' => $product->liste_photos($dir,$nbmax=10) ); - + //Retreive all extrafield for thirdsparty // fetch optionals attributes and labels $extrafields=new ExtraFields($db); $extralabels=$extrafields->fetch_name_optionals_label('product',true); //Get extrafield values $product->fetch_optionals($product->id,$extralabels); - + foreach($extrafields->attribute_label as $key=>$label) { $productorservice_result_fields=array_merge($productorservice_result_fields,array('options_'.$key => $product->array_options['options_'.$key])); } - + // Create $objectresp = array( 'result'=>array('result_code'=>'OK', 'result_label'=>''), @@ -533,7 +533,7 @@ function createProductOrService($authentication,$product) }*/ //var_dump($product['ref_ext']); //var_dump($product['lines'][0]['type']); - + $extrafields=new ExtraFields($db); $extralabels=$extrafields->fetch_name_optionals_label('product',true); foreach($extrafields->attribute_label as $key=>$label) @@ -652,7 +652,7 @@ function updateProductOrService($authentication,$product) }*/ //var_dump($product['ref_ext']); //var_dump($product['lines'][0]['type']); - + $extrafields=new ExtraFields($db); $extralabels=$extrafields->fetch_name_optionals_label('product',true); foreach($extrafields->attribute_label as $key=>$label) @@ -965,19 +965,19 @@ function getProductsForCategory($authentication,$id,$lang='') 'dir' => $pdir, 'images' => $obj->liste_photos($dir,$nbmax=10) ); - + //Retreive all extrafield for thirdsparty // fetch optionals attributes and labels $extrafields=new ExtraFields($db); $extralabels=$extrafields->fetch_name_optionals_label('product',true); //Get extrafield values $product->fetch_optionals($obj->id,$extralabels); - + foreach($extrafields->attribute_label as $key=>$label) { $products[$iProduct]=array_merge($products[$iProduct],array('options_'.$key => $product->array_options['options_'.$key])); } - + $iProduct++; } diff --git a/htdocs/webservices/server_user.php b/htdocs/webservices/server_user.php index 4fb5cc81e8c..6339486922f 100644 --- a/htdocs/webservices/server_user.php +++ b/htdocs/webservices/server_user.php @@ -299,7 +299,7 @@ $server->register( * @param array $authentication Array of authentication information * @param int $id Id of object * @param string $ref Ref of object - * @param ref_ext $ref_ext Ref external of object + * @param string $ref_ext Ref external of object * @return mixed */ function getUser($authentication,$id,$ref='',$ref_ext='')