@@ -1270,7 +1270,7 @@ |
||
| 1270 | 1270 | |
| 1271 | 1271 | // TODO prendre en compte le filtre |
| 1272 | 1272 | foreach ($pragmas as $var) { |
| 1273 | - $sql = "PRAGMA $var"; |
|
| 1273 | + $sql = "pragma $var"; |
|
| 1274 | 1274 | $resql = $this->query($sql); |
| 1275 | 1275 | if ($resql) { |
| 1276 | 1276 | $obj = $this->fetch_row($resql); |
@@ -938,7 +938,6 @@ |
||
| 938 | 938 | * |
| 939 | 939 | * @param string $table Name of table |
| 940 | 940 | * @return array<array<mixed>> Table with information of columns in the table |
| 941 | - |
|
| 942 | 941 | * TODO modify for sqlite |
| 943 | 942 | */ |
| 944 | 943 | public function DDLInfoTable($table) |
@@ -263,7 +263,7 @@ |
||
| 263 | 263 | echo '<div>'; |
| 264 | 264 | echo '<table class="noborder centpercent">'; |
| 265 | 265 | echo '<thead>'; |
| 266 | -echo '<tr class="liste_titre"><th>' . $langs->trans('Parameter') . '</th><th>' . $langs->trans('Value') . '</th></tr>'; |
|
| 266 | +echo '<tr class="liste_titre"><th>'.$langs->trans('Parameter').'</th><th>'.$langs->trans('Value').'</th></tr>'; |
|
| 267 | 267 | echo '</thead>'; |
| 268 | 268 | echo '<tbody>'; |
| 269 | 269 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * \brief Module to show box of members |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | -include_once DOL_DOCUMENT_ROOT . '/core/boxes/modules_boxes.php'; |
|
| 27 | +include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php'; |
|
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | $this->max = $max; |
| 85 | 85 | |
| 86 | - include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php'; |
|
| 87 | - require_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent_type.class.php'; |
|
| 86 | + include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; |
|
| 87 | + require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php'; |
|
| 88 | 88 | $memberstatic = new Adherent($this->db); |
| 89 | 89 | $statictype = new AdherentType($this->db); |
| 90 | 90 | |
@@ -100,8 +100,8 @@ discard block |
||
| 100 | 100 | $numb = 0; |
| 101 | 101 | |
| 102 | 102 | $sql = "SELECT c.subscription, c.dateadh as dateh"; |
| 103 | - $sql .= " FROM " . MAIN_DB_PREFIX . "adherent as d, " . MAIN_DB_PREFIX . "subscription as c"; |
|
| 104 | - $sql .= " WHERE d.entity IN (" . getEntity('adherent') . ")"; |
|
| 103 | + $sql .= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."subscription as c"; |
|
| 104 | + $sql .= " WHERE d.entity IN (".getEntity('adherent').")"; |
|
| 105 | 105 | $sql .= " AND d.rowid = c.fk_adherent"; |
| 106 | 106 | |
| 107 | 107 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | $this->info_box_contents[0][0] = array( |
| 217 | 217 | 'td' => '', |
| 218 | 218 | 'maxlength' => 500, |
| 219 | - 'text' => ($this->db->error() . ' sql=' . $sql), |
|
| 219 | + 'text' => ($this->db->error().' sql='.$sql), |
|
| 220 | 220 | ); |
| 221 | 221 | } |
| 222 | 222 | } else { |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | while ($line < $num) { |
| 101 | 101 | $objp = $this->db->fetch_object($result); |
| 102 | 102 | $date = $this->db->jdate($objp->date_movement); |
| 103 | - $journal = $objp->code_journal; |
|
| 103 | + $journal = $objp->code_journal; |
|
| 104 | 104 | $label = $objp->label_operation; |
| 105 | 105 | $amount = $objp->amount; |
| 106 | 106 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * View |
| 44 | 44 | */ |
| 45 | 45 | |
| 46 | -$form = new Form($db); // $form is required as global value into dol_banner_tab |
|
| 46 | +$form = new Form($db); // $form is required as global value into dol_banner_tab |
|
| 47 | 47 | |
| 48 | 48 | llxHeader('', $langs->trans("CronInfo")); |
| 49 | 49 | |
@@ -126,8 +126,8 @@ |
||
| 126 | 126 | public $usage_bill_time; // Is the time spent on project must be invoiced or not |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | - * @var integer Event organization: Use Event Organization |
|
| 130 | - */ |
|
| 129 | + * @var integer Event organization: Use Event Organization |
|
| 130 | + */ |
|
| 131 | 131 | public $usage_organize_event; |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -1762,7 +1762,7 @@ discard block |
||
| 1762 | 1762 | global $langs, $conf; |
| 1763 | 1763 | |
| 1764 | 1764 | $error = 0; |
| 1765 | - $clone_project_id = 0; // For static toolcheck |
|
| 1765 | + $clone_project_id = 0; // For static toolcheck |
|
| 1766 | 1766 | |
| 1767 | 1767 | dol_syslog("createFromClone clone_contact=".json_encode($clone_contact)." clone_task=".json_encode($clone_task)." clone_project_file=".json_encode($clone_project_file)." clone_note=".json_encode($clone_note)." move_date=".json_encode($move_date), LOG_DEBUG); |
| 1768 | 1768 | |
@@ -2060,7 +2060,7 @@ discard block |
||
| 2060 | 2060 | if ($tableName == "actioncomm") { |
| 2061 | 2061 | $sql .= " SET fk_project=".$this->id; |
| 2062 | 2062 | $sql .= " WHERE id=".((int) $elementSelectId); |
| 2063 | - } elseif (in_array($tableName, ["entrepot","mrp_mo","stocktransfer_stocktransfer"])) { |
|
| 2063 | + } elseif (in_array($tableName, ["entrepot", "mrp_mo", "stocktransfer_stocktransfer"])) { |
|
| 2064 | 2064 | $sql .= " SET fk_project=".$this->id; |
| 2065 | 2065 | $sql .= " WHERE rowid=".((int) $elementSelectId); |
| 2066 | 2066 | } else { |
@@ -2244,7 +2244,7 @@ discard block |
||
| 2244 | 2244 | |
| 2245 | 2245 | $num = $this->db->num_rows($resql); |
| 2246 | 2246 | $i = 0; |
| 2247 | - $week_number = ''; // Initialisation for static analysis |
|
| 2247 | + $week_number = ''; // Initialisation for static analysis |
|
| 2248 | 2248 | // Loop on each record found, so each couple (project id, task id) |
| 2249 | 2249 | while ($i < $num) { |
| 2250 | 2250 | $obj = $this->db->fetch_object($resql); |
@@ -2571,7 +2571,7 @@ discard block |
||
| 2571 | 2571 | $return .= '</div>'; |
| 2572 | 2572 | if (!empty($this->thirdparty->phone)) { |
| 2573 | 2573 | $return .= '<div class="inline-block valignmiddle">'; |
| 2574 | - $return .= dol_print_phone($this->thirdparty->phone, $this->thirdparty->country_code, 0, $this->thirdparty->id, 'tel', 'hidenum', 'phone', $this->thirdparty->phone, 0, 'paddingleft paddingright'); // @phan-suppress-current-line PhanPluginSuspiciousParamPosition |
|
| 2574 | + $return .= dol_print_phone($this->thirdparty->phone, $this->thirdparty->country_code, 0, $this->thirdparty->id, 'tel', 'hidenum', 'phone', $this->thirdparty->phone, 0, 'paddingleft paddingright'); // @phan-suppress-current-line PhanPluginSuspiciousParamPosition |
|
| 2575 | 2575 | $return .= '</div>'; |
| 2576 | 2576 | } |
| 2577 | 2577 | if (!empty($this->thirdparty->email)) { |
@@ -2596,7 +2596,7 @@ discard block |
||
| 2596 | 2596 | $return .= '<br><span class="info-box-label opacitymedium">'.$langs->trans("Author").'</span>'; |
| 2597 | 2597 | $return .= '<span> : '.$user->getNomUrl(1).'</span>'; |
| 2598 | 2598 | }*/ |
| 2599 | - $return .= '<br><div>'; // start div line status |
|
| 2599 | + $return .= '<br><div>'; // start div line status |
|
| 2600 | 2600 | if ($this->usage_opportunity && $this->opp_status_code) { |
| 2601 | 2601 | //$return .= '<br><span class="info-bo-label opacitymedium">'.$langs->trans("OpportunityStatusShort").'</span>'; |
| 2602 | 2602 | //$return .= '<div class="small inline-block">'.dol_trunc($langs->trans("OppStatus".$this->opp_status_code), 5).'</div>'; |
@@ -2606,7 +2606,7 @@ discard block |
||
| 2606 | 2606 | if (method_exists($this, 'getLibStatut')) { |
| 2607 | 2607 | $return .= '<div class="info-box-status small inline-block valignmiddle">'.$this->getLibStatut(3).'</div>'; |
| 2608 | 2608 | } |
| 2609 | - $return .= '</div>'; // end div line status |
|
| 2609 | + $return .= '</div>'; // end div line status |
|
| 2610 | 2610 | |
| 2611 | 2611 | $return .= '</div>'; |
| 2612 | 2612 | $return .= '</div>'; |
@@ -469,7 +469,7 @@ |
||
| 469 | 469 | $object->fetch($obj->rowid); |
| 470 | 470 | $object->id = $obj->rowid; |
| 471 | 471 | |
| 472 | - $action = 'anonymize'; // TODO Offer also action "delete" in setup of module |
|
| 472 | + $action = 'anonymize'; // TODO Offer also action "delete" in setup of module |
|
| 473 | 473 | |
| 474 | 474 | if ($action == 'anonymize') { |
| 475 | 475 | if ($object->isObjectUsed($obj->rowid) == 0) { // If object to clean is used |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | $facavoir->fetch($facid); |
| 194 | 194 | $invoicecredits[] = $facavoir->getNomUrl(1); |
| 195 | 195 | } |
| 196 | - print ' ('.$langs->transnoentities("InvoiceHasAvoir") . (count($invoicecredits) ? ' ' : '') . implode(',', $invoicecredits) . ')'; |
|
| 196 | + print ' ('.$langs->transnoentities("InvoiceHasAvoir").(count($invoicecredits) ? ' ' : '').implode(',', $invoicecredits).')'; |
|
| 197 | 197 | } |
| 198 | 198 | /* |
| 199 | 199 | if ($facidnext > 0) { |
@@ -335,10 +335,10 @@ |
||
| 335 | 335 | if (in_array($element, ['context1', 'context2'])) { |
| 336 | 336 | $datacount = 0; |
| 337 | 337 | |
| 338 | - $parameters['head'][$counter][0] = dol_buildpath('/mymodule/mymodule_tab.php', 1) . '?id=' . $id . '&module='.$element; |
|
| 338 | + $parameters['head'][$counter][0] = dol_buildpath('/mymodule/mymodule_tab.php', 1).'?id='.$id.'&module='.$element; |
|
| 339 | 339 | $parameters['head'][$counter][1] = $langs->trans('MyModuleTab'); |
| 340 | 340 | if ($datacount > 0) { |
| 341 | - $parameters['head'][$counter][1] .= '<span class="badge marginleftonlyshort">' . $datacount . '</span>'; |
|
| 341 | + $parameters['head'][$counter][1] .= '<span class="badge marginleftonlyshort">'.$datacount.'</span>'; |
|
| 342 | 342 | } |
| 343 | 343 | $parameters['head'][$counter][2] = 'mymoduleemails'; |
| 344 | 344 | $counter++; |