From bd002480ce294c13593684ea1d678ce04b094e0e Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 13 Jan 2024 19:48:41 +0100 Subject: [PATCH] Qual: Spelling htdocs/[d-k]* (#27427) Highlights: - htdocs/install/doctemplates/websites/website_template-restaurant/containers/page249.tpl.php Potential functional change (fix) because toekn was changed to token: ` --- .../class/actions_datapolicy.class.php | 4 +-- htdocs/dav/fileserver.php | 2 +- htdocs/debugbar/class/TraceableDB.php | 34 +++++++++---------- htdocs/delivery/card.php | 4 +-- htdocs/delivery/class/delivery.class.php | 10 +++--- htdocs/don/card.php | 2 +- htdocs/don/class/api_donations.class.php | 8 ++--- htdocs/don/class/don.class.php | 10 +++--- htdocs/ecm/class/ecmdirectory.class.php | 2 +- htdocs/ecm/class/ecmfiles.class.php | 2 +- htdocs/ecm/index.php | 2 +- htdocs/ecm/index_auto.php | 2 +- htdocs/ecm/index_medias.php | 2 +- .../class/emailcollector.class.php | 12 +++---- .../class/emailcollectoraction.class.php | 6 ++-- .../class/emailcollectorfilter.class.php | 6 ++-- .../emailcollector/lib/emailcollector.lib.php | 4 +-- .../class/conferenceorbooth.class.php | 8 ++--- .../class/conferenceorboothattendee.class.php | 8 ++--- .../conferenceorbooth_card.php | 2 +- .../conferenceorbooth_list.php | 4 +-- .../conferenceorboothattendee_card.php | 2 +- .../conferenceorboothattendee_list.php | 6 ++-- .../core/actions_massactions_mail.inc.php | 2 +- ...ventorganization_conferenceorbooth.lib.php | 2 +- htdocs/expedition/card.php | 22 ++++++------ .../expedition/class/api_shipments.class.php | 10 +++--- htdocs/expedition/class/expedition.class.php | 28 +++++++-------- .../class/expeditionlinebatch.class.php | 2 +- .../class/expeditionstats.class.php | 2 +- htdocs/expedition/list.php | 6 ++-- htdocs/expedition/shipment.php | 4 +-- htdocs/expensereport/card.php | 8 ++--- .../class/api_expensereports.class.php | 10 +++--- .../class/expensereport.class.php | 22 ++++++------ .../class/expensereport_ik.class.php | 2 +- .../class/expensereportstats.class.php | 4 +-- .../class/paymentexpensereport.class.php | 2 +- htdocs/expensereport/index.php | 2 +- .../tpl/expensereport_linktofile.tpl.php | 2 +- htdocs/exports/class/export.class.php | 8 ++--- htdocs/exports/export.php | 12 +++---- htdocs/exports/index.php | 2 +- htdocs/externalsite/admin/index.php | 2 +- htdocs/fichinter/card-rec.php | 6 ++-- htdocs/fichinter/card.php | 2 +- .../class/api_interventions.class.php | 6 ++-- htdocs/fichinter/class/fichinter.class.php | 16 ++++----- htdocs/fichinter/class/fichinterrec.class.php | 8 ++--- htdocs/filefunc.inc.php | 2 +- .../class/api_supplier_invoices.class.php | 8 ++--- .../fourn/class/api_supplier_orders.class.php | 8 ++--- .../class/fournisseur.commande.class.php | 26 +++++++------- .../fournisseur.commande.dispatch.class.php | 2 +- .../class/fournisseur.facture-rec.class.php | 20 +++++------ .../fourn/class/fournisseur.facture.class.php | 24 ++++++------- .../fourn/class/fournisseur.product.class.php | 4 +-- htdocs/fourn/class/paiementfourn.class.php | 4 +-- htdocs/fourn/commande/card.php | 14 ++++---- htdocs/fourn/commande/index.php | 4 +-- htdocs/fourn/commande/info.php | 2 +- htdocs/fourn/commande/list.php | 4 +-- htdocs/fourn/facture/card-rec.php | 4 +-- htdocs/fourn/facture/card.php | 20 +++++------ htdocs/fourn/facture/info.php | 2 +- htdocs/fourn/facture/list-rec.php | 2 +- htdocs/fourn/facture/list.php | 4 +-- htdocs/fourn/facture/paiement.php | 6 ++-- .../facture/tpl/linkedobjectblock.tpl.php | 2 +- htdocs/ftp/index.php | 2 +- htdocs/holiday/card.php | 6 ++-- htdocs/holiday/class/holiday.class.php | 16 ++++----- htdocs/holiday/define_holiday.php | 2 +- htdocs/holiday/list.php | 4 +-- htdocs/hrm/admin/admin_establishment.php | 2 +- htdocs/hrm/class/establishment.class.php | 2 +- htdocs/hrm/class/evaluation.class.php | 8 ++--- htdocs/hrm/class/evaluationdet.class.php | 8 ++--- htdocs/hrm/class/job.class.php | 8 ++--- htdocs/hrm/class/position.class.php | 10 +++--- htdocs/hrm/class/skill.class.php | 12 +++---- htdocs/hrm/class/skilldet.class.php | 8 ++--- htdocs/hrm/class/skillrank.class.php | 8 ++--- htdocs/hrm/compare.php | 4 +-- htdocs/hrm/evaluation_card.php | 2 +- htdocs/hrm/evaluation_list.php | 4 +-- htdocs/hrm/job_card.php | 2 +- htdocs/hrm/job_list.php | 4 +-- htdocs/hrm/position.php | 4 +-- htdocs/hrm/position_agenda.php | 2 +- htdocs/hrm/position_card.php | 2 +- htdocs/hrm/position_list.php | 4 +-- htdocs/hrm/skill_card.php | 6 ++-- htdocs/hrm/skill_list.php | 4 +-- htdocs/imports/class/import.class.php | 6 ++-- htdocs/imports/import.php | 28 +++++++-------- .../containers/page189.tpl.php | 6 ++-- .../containers/page192.tpl.php | 2 +- .../containers/page202.tpl.php | 4 +-- .../containers/page23.tpl.php | 2 +- htdocs/install/fileconf.php | 4 +-- htdocs/install/inc.php | 2 +- htdocs/install/install.forced.sample.php | 2 +- htdocs/install/repair.php | 6 ++-- htdocs/install/step1.php | 4 +-- htdocs/install/step5.php | 4 +-- htdocs/install/upgrade.php | 2 +- htdocs/install/upgrade2.php | 24 ++++++------- .../class/intracommreport.class.php | 14 ++++---- htdocs/knowledgemanagement/README.md | 2 +- .../class/api_knowledgemanagement.class.php | 8 ++--- .../class/knowledgerecord.class.php | 8 ++--- .../knowledgerecord_card.php | 2 +- .../knowledgerecord_list.php | 4 +-- 114 files changed, 382 insertions(+), 382 deletions(-) diff --git a/htdocs/datapolicy/class/actions_datapolicy.class.php b/htdocs/datapolicy/class/actions_datapolicy.class.php index 0e30db94d84..805cc537f38 100644 --- a/htdocs/datapolicy/class/actions_datapolicy.class.php +++ b/htdocs/datapolicy/class/actions_datapolicy.class.php @@ -102,7 +102,7 @@ class ActionsDatapolicy extends CommonHookActions // FIXME Removed hard coded id, use codes if ($parameters['currentcontext'] == 'thirdpartycard' && $action == 'anonymiser' && (in_array($object->forme_juridique_code, array(11, 12, 13, 15, 17, 18, 19, 35, 60, 200, 311, 312, 316, 401, 600, 700, 1005)) || $object->typent_id == 8)) { - // on verifie si l'objet est utilisé + // Verify if the object is used if ($object->isObjectUsed(GETPOST('socid'))) { $object->name = $langs->trans('ANONYME'); $object->name_alias = ''; @@ -252,7 +252,7 @@ class ActionsDatapolicy extends CommonHookActions } if (GETPOST('socid')) { - /* Removed due to awful harcoded values + /* Removed due to awful hardcoded values require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; $societe = new Societe($this->db); $societe->fetch(GETPOST('socid')); diff --git a/htdocs/dav/fileserver.php b/htdocs/dav/fileserver.php index 3693c240285..9ebe9ae4099 100644 --- a/htdocs/dav/fileserver.php +++ b/htdocs/dav/fileserver.php @@ -147,7 +147,7 @@ $authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function ($username, $p // Check date validity if ($user->isNotIntoValidityDateRange()) { // User validity dates are no more valid - dol_syslog("The user login has a validity between [".$user->datestartvalidity." and ".$user->dateendvalidity."], curren date is ".dol_now()); + dol_syslog("The user login has a validity between [".$user->datestartvalidity." and ".$user->dateendvalidity."], current date is ".dol_now()); return false; } diff --git a/htdocs/debugbar/class/TraceableDB.php b/htdocs/debugbar/class/TraceableDB.php index 64d0da1c369..6f9af2136c7 100644 --- a/htdocs/debugbar/class/TraceableDB.php +++ b/htdocs/debugbar/class/TraceableDB.php @@ -75,8 +75,8 @@ class TraceableDB extends DoliDB * Format a SQL IF * * @param string $test Test string (example: 'cd.statut=0', 'field IS NULL') - * @param string $resok resultat si test egal - * @param string $resko resultat si test non egal + * @param string $resok resultat si test equal + * @param string $resko resultat si test non equal * @return string SQL string */ public function ifsql($test, $resok, $resko) @@ -102,7 +102,7 @@ class TraceableDB extends DoliDB * Function to use to build INSERT, UPDATE or WHERE predica * * @param int $param Date TMS to convert - * @param mixed $gm 'gmt'=Input informations are GMT values, 'tzserver'=Local to server TZ + * @param mixed $gm 'gmt'=Input information are GMT values, 'tzserver'=Local to server TZ * @return string Date in a string YYYY-MM-DD HH:MM:SS */ public function idate($param, $gm = 'tzserver') @@ -124,7 +124,7 @@ class TraceableDB extends DoliDB * Start transaction * * @param string $textinlog Add a small text into log. '' by default. - * @return int 1 if transaction successfuly opened or already opened, 0 if error + * @return int 1 if transaction successfully opened or already opened, 0 if error */ public function begin($textinlog = '') { @@ -197,7 +197,7 @@ class TraceableDB extends DoliDB * List tables into a database * * @param string $database Name of database - * @param string $table Nmae of table filter ('xxx%') + * @param string $table Name of table filter ('xxx%') * @return array List of tables in an array */ public function DDLListTables($database, $table = '') @@ -209,7 +209,7 @@ class TraceableDB extends DoliDB * List tables into a database with table info * * @param string $database Name of database - * @param string $table Nmae of table filter ('xxx%') + * @param string $table Name of table filter ('xxx%') * @return array List of tables in an array */ public function DDLListTablesFull($database, $table = '') @@ -323,7 +323,7 @@ class TraceableDB extends DoliDB * Cancel a transaction and go back to initial data values * * @param string $log Add more log to default log line - * @return resource|int 1 if cancelation is ok or transaction not open, 0 if error + * @return resource|int 1 if cancellation is ok or transaction not open, 0 if error */ public function rollback($log = '') { @@ -387,7 +387,7 @@ class TraceableDB extends DoliDB } /** - * Connexion to server + * Connection to server * * @param string $host database server host * @param string $login login @@ -483,7 +483,7 @@ class TraceableDB extends DoliDB /** * Return generic error code of last operation. * - * @return string Error code (Exemples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) + * @return string Error code (Examples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) */ public function errno() { @@ -533,7 +533,7 @@ class TraceableDB extends DoliDB * * @param string $table Name of table * @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_desc Tableau associatif de description du champ a inserer[nom du parameter][valeur du parameter] * @param string $field_position Optionnel ex.: "after champtruc" * @return int Return integer <0 if KO, >0 if OK */ @@ -614,7 +614,7 @@ class TraceableDB extends DoliDB * * @param string $dolibarr_main_db_host Ip serveur * @param string $dolibarr_main_db_user Nom user a creer - * @param string $dolibarr_main_db_pass Mot de passe user a creer + * @param string $dolibarr_main_db_pass Password user a creer * @param string $dolibarr_main_db_name Database name where user must be granted * @return int Return integer <0 if KO, >=0 if OK */ @@ -630,7 +630,7 @@ class TraceableDB extends DoliDB * 19700101020000 -> 7200 whaterver is TZ if gmt=1 * * @param string $string Date in a string (YYYYMMDDHHMMSS, YYYYMMDD, YYYY-MM-DD HH:MM:SS) - * @param bool $gm 1=Input informations are GMT values, otherwise local to server TZ + * @param bool $gm 1=Input information are GMT values, otherwise local to server TZ * @return int|string Date TMS or '' */ public function jdate($string, $gm = false) @@ -667,7 +667,7 @@ class TraceableDB extends DoliDB * List information of columns into a table. * * @param string $table Name of table - * @return array Array with inforation on table + * @return array Array with information on table */ public function DDLInfoTable($table) { @@ -686,9 +686,9 @@ class TraceableDB extends DoliDB } /** - * Close database connexion + * Close database connection * - * @return boolean True if disconnect successfull, false otherwise + * @return boolean True if disconnect successful, false otherwise * @see connect() */ public function close() @@ -707,9 +707,9 @@ class TraceableDB extends DoliDB } /** - * Return connexion ID + * Return connection ID * - * @return string Id connexion + * @return string Id connection */ public function DDLGetConnectId() { diff --git a/htdocs/delivery/card.php b/htdocs/delivery/card.php index 442d3df7453..54e1cb1e07f 100644 --- a/htdocs/delivery/card.php +++ b/htdocs/delivery/card.php @@ -696,11 +696,11 @@ if ($action == 'create') { print ''; } else { /* Expedition non trouvee */ - print "Expedition inexistante ou acces refuse"; + print "Expedition inexistante ou access refuse"; } } else { /* Expedition non trouvee */ - print "Expedition inexistante ou acces refuse"; + print "Expedition inexistante ou access refuse"; } } diff --git a/htdocs/delivery/class/delivery.class.php b/htdocs/delivery/class/delivery.class.php index b9a5aad392a..37c5f3a0a17 100644 --- a/htdocs/delivery/class/delivery.class.php +++ b/htdocs/delivery/class/delivery.class.php @@ -83,7 +83,7 @@ class Delivery extends CommonObject public $socid; /** - * @var string ref custome + * @var string ref customer */ public $ref_customer; @@ -143,7 +143,7 @@ class Delivery extends CommonObject /** * Create delivery receipt in database * - * @param User $user Objet du user qui cree + * @param User $user Object du user qui cree * @return int Return integer <0 si erreur, id delivery cree si ok */ public function create($user) @@ -991,7 +991,7 @@ class Delivery extends CommonObject } } - // Initialise parametres + // Initialise parameters $this->id = 0; $this->ref = 'SPECIMEN'; $this->specimen = 1; @@ -1040,7 +1040,7 @@ class Delivery extends CommonObject while ($i < $num_lines) { $objSourceLine = $this->db->fetch_object($resultSourceLine); - // Get lines of sources alread delivered + // Get lines of sources already delivered $sql = "SELECT ld.fk_origin_line, sum(ld.qty) as qty"; $sql .= " FROM ".MAIN_DB_PREFIX."deliverydet as ld, ".MAIN_DB_PREFIX."delivery as l,"; $sql .= " ".MAIN_DB_PREFIX.$this->linked_objects[0]['type']." as c"; @@ -1082,7 +1082,7 @@ class Delivery extends CommonObject /** * Set the planned delivery date * - * @param User $user Objet utilisateur qui modifie + * @param User $user Object utilisateur qui modifie * @param integer $delivery_date Delivery date * @return int Return integer <0 if KO, >0 if OK */ diff --git a/htdocs/don/card.php b/htdocs/don/card.php index 2ccfafae0f1..b8e7c01c763 100644 --- a/htdocs/don/card.php +++ b/htdocs/don/card.php @@ -442,7 +442,7 @@ if ($action == 'create') { print ''; $filter = '((s.client:IN:1,2,3) AND (status:=:1))'; print $form->select_company($soc->id, 'socid', $filter, 'SelectThirdParty', 0, 0, null, 0, 'minwidth300'); - // Option to reload page to retrieve customer informations. Note, this clear other input + // Option to reload page to retrieve customer information. Note, this clear other input if (getDolGlobalString('RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED')) { print '