clean code (#35341)

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
This commit is contained in:
Frédéric FRANCE
2025-09-15 16:15:49 +02:00
committed by GitHub
parent e69ff3428b
commit 4c80eee890
3 changed files with 13 additions and 36 deletions

View File

@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2012-2013 Charles-Fr BENKE <charles.fr@benke.fr>
* Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,7 +25,7 @@
*/
/**
* Class to manage generation of HTML components for contract module
* Class to manage generation of HTML components for intervention module
*/
class FormIntervention
{
@@ -52,7 +53,7 @@ class FormIntervention
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Show a combo list with contracts qualified for a third party
* Show a combo list with interventions qualified for a third party
*
* @param int $socid Id third party (-1=all, 0=only interventions not linked to a third party, id=intervention not linked or linked to third party id)
* @param int $selected Id intervention preselected
@@ -69,7 +70,7 @@ class FormIntervention
$out = '';
$hideunselectables = false;
$hideunselectables = getDolGlobalInt('MAIN_SHOW_UNSELECTABLES_IN_SELECT_INTERVENTIONS');
// Search all contacts
$sql = "SELECT f.rowid, f.ref, f.fk_soc, f.fk_statut as status";
@@ -86,7 +87,7 @@ class FormIntervention
$sql .= " AND f.fk_statut = 0";
}
dol_syslog(get_class($this)."::select_intervention", LOG_DEBUG);
dol_syslog(get_class($this)."::select_interventions", LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql) {
$out .= '<select id="'.dol_escape_htmltag($htmlname).'" class="flat" name="'.dol_escape_htmltag($htmlname).'">';