@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Simple autoloader, so we don't need Composer just for this. |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -spl_autoload_register(function ($class) { |
|
| 7 | +spl_autoload_register(function($class) { |
|
| 8 | 8 | if (preg_match('/^DebugBar/', $class)) { |
| 9 | 9 | $file = DOL_DOCUMENT_ROOT.'/includes/maximebf/debugbar/src/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php'; |
| 10 | 10 | //var_dump($class.' - '.file_exists($file).' - '.$file); |
@@ -695,7 +695,7 @@ |
||
| 695 | 695 | }); |
| 696 | 696 | }); |
| 697 | 697 | </script> |
| 698 | -END; |
|
| 698 | +end; |
|
| 699 | 699 | } else { |
| 700 | 700 | // Price qty min |
| 701 | 701 | print '<tr><td class="fieldrequired">'.$langs->trans("PriceQtyMin").'</td>'; |
@@ -972,7 +972,7 @@ discard block |
||
| 972 | 972 | // Show field if not hidden |
| 973 | 973 | if (!empty($extrafields->attributes["product_fournisseur_price"]['list'][$key]) && $extrafields->attributes["product_fournisseur_price"]['list'][$key] != 3) { |
| 974 | 974 | $extratitle = $langs->trans($value); |
| 975 | - $arrayfields['ef.' . $key] = array('label' => $extratitle, 'checked' => 0, |
|
| 975 | + $arrayfields['ef.'.$key] = array('label' => $extratitle, 'checked' => 0, |
|
| 976 | 976 | 'position' => (end($arrayfields)['position'] + 1), |
| 977 | 977 | 'langfile' => $extrafields->attributes["product_fournisseur_price"]['langfile'][$key], |
| 978 | 978 | 'help' => $extrafields->attributes["product_fournisseur_price"]['help'][$key]); |
@@ -1093,8 +1093,8 @@ discard block |
||
| 1093 | 1093 | } else { |
| 1094 | 1094 | $extratitle = $langs->trans($value); |
| 1095 | 1095 | } |
| 1096 | - if (!empty($arrayfields['ef.' . $key]['checked'])) { |
|
| 1097 | - print_liste_field_titre($extratitle, $_SERVER["PHP_SELF"], 'ef.' . $key, '', $param, '', $sortfield, $sortorder, 'right '); |
|
| 1096 | + if (!empty($arrayfields['ef.'.$key]['checked'])) { |
|
| 1097 | + print_liste_field_titre($extratitle, $_SERVER["PHP_SELF"], 'ef.'.$key, '', $param, '', $sortfield, $sortorder, 'right '); |
|
| 1098 | 1098 | $nbfields++; |
| 1099 | 1099 | } |
| 1100 | 1100 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | // Create the autoloader for Luracast |
| 20 | 20 | require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/AutoLoader.php'; |
| 21 | -call_user_func(function () { |
|
| 21 | +call_user_func(function() { |
|
| 22 | 22 | $loader = Luracast\Restler\AutoLoader::instance(); |
| 23 | 23 | spl_autoload_register($loader); |
| 24 | 24 | return $loader; |
@@ -152,15 +152,15 @@ |
||
| 152 | 152 | |
| 153 | 153 | // Create a line of payments |
| 154 | 154 | $payment = new PaymentLoan($db); |
| 155 | - $payment->chid = $chid; |
|
| 155 | + $payment->chid = $chid; |
|
| 156 | 156 | $payment->datep = $datepaid; |
| 157 | 157 | $payment->label = $loan->label; |
| 158 | - $payment->amount_capital = $pay_amount_capital; |
|
| 159 | - $payment->amount_insurance = $pay_amount_insurance; |
|
| 160 | - $payment->amount_interest = $pay_amount_interest; |
|
| 158 | + $payment->amount_capital = $pay_amount_capital; |
|
| 159 | + $payment->amount_insurance = $pay_amount_insurance; |
|
| 160 | + $payment->amount_interest = $pay_amount_interest; |
|
| 161 | 161 | $payment->fk_bank = GETPOST('accountid', 'int'); |
| 162 | 162 | $payment->paymenttype = GETPOST('paymenttype', 'int'); |
| 163 | - $payment->num_payment = GETPOST('num_payment'); |
|
| 163 | + $payment->num_payment = GETPOST('num_payment'); |
|
| 164 | 164 | $payment->note_private = GETPOST('note_private', 'restricthtml'); |
| 165 | 165 | $payment->note_public = GETPOST('note_public', 'restricthtml'); |
| 166 | 166 | |
@@ -166,11 +166,11 @@ |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | // Clean parameters |
| 169 | - $this->url = clean_url($this->url, 1); |
|
| 169 | + $this->url = clean_url($this->url, 1); |
|
| 170 | 170 | if (empty($this->label)) { |
| 171 | 171 | $this->label = basename($this->url); |
| 172 | 172 | } |
| 173 | - $this->label = trim($this->label); |
|
| 173 | + $this->label = trim($this->label); |
|
| 174 | 174 | |
| 175 | 175 | |
| 176 | 176 | $this->db->begin(); |
@@ -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); |
@@ -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 | |