@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | |
| 84 | 84 | // Authentication callback function |
| 85 | -$authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function ($username, $password) { |
|
| 85 | +$authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function($username, $password) { |
|
| 86 | 86 | global $user; |
| 87 | 87 | global $conf; |
| 88 | 88 | global $dolibarr_main_authentication, $dolibarr_auto_user; |
@@ -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>'; |
@@ -950,7 +950,7 @@ discard block |
||
| 950 | 950 | // Show field if not hidden |
| 951 | 951 | if (!empty($extrafields->attributes["product_fournisseur_price"]['list'][$key]) && $extrafields->attributes["product_fournisseur_price"]['list'][$key] != 3) { |
| 952 | 952 | $extratitle = $langs->trans($value); |
| 953 | - $arrayfields['ef.' . $key] = array('label' => $extratitle, 'checked' => 0, |
|
| 953 | + $arrayfields['ef.'.$key] = array('label' => $extratitle, 'checked' => 0, |
|
| 954 | 954 | 'position' => (end($arrayfields)['position'] + 1), |
| 955 | 955 | 'langfile' => $extrafields->attributes["product_fournisseur_price"]['langfile'][$key], |
| 956 | 956 | 'help' => $extrafields->attributes["product_fournisseur_price"]['help'][$key]); |
@@ -1043,8 +1043,8 @@ discard block |
||
| 1043 | 1043 | } else { |
| 1044 | 1044 | $extratitle = $langs->trans($value); |
| 1045 | 1045 | } |
| 1046 | - if (!empty($arrayfields['ef.' . $key]['checked'])) { |
|
| 1047 | - print_liste_field_titre($extratitle, $_SERVER["PHP_SELF"], 'ef.' . $key, '', $param, '', $sortfield, $sortorder, 'right '); |
|
| 1046 | + if (!empty($arrayfields['ef.'.$key]['checked'])) { |
|
| 1047 | + print_liste_field_titre($extratitle, $_SERVER["PHP_SELF"], 'ef.'.$key, '', $param, '', $sortfield, $sortorder, 'right '); |
|
| 1048 | 1048 | } |
| 1049 | 1049 | } |
| 1050 | 1050 | } |
@@ -1052,7 +1052,7 @@ discard block |
||
| 1052 | 1052 | } |
| 1053 | 1053 | |
| 1054 | 1054 | if (is_object($hookmanager)) { |
| 1055 | - $parameters = array('id_fourn'=>(!empty($id_fourn)?$id_fourn:''), 'prod_id'=>$object->id); |
|
| 1055 | + $parameters = array('id_fourn'=>(!empty($id_fourn) ? $id_fourn : ''), 'prod_id'=>$object->id); |
|
| 1056 | 1056 | $reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters, $object, $action); |
| 1057 | 1057 | } |
| 1058 | 1058 | print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch '); |
@@ -1220,7 +1220,7 @@ discard block |
||
| 1220 | 1220 | } |
| 1221 | 1221 | |
| 1222 | 1222 | if (is_object($hookmanager)) { |
| 1223 | - $parameters = array('id_pfp'=>$productfourn->product_fourn_price_id, 'id_fourn'=>(!empty($id_fourn)?$id_fourn:''), 'prod_id'=>$object->id); |
|
| 1223 | + $parameters = array('id_pfp'=>$productfourn->product_fourn_price_id, 'id_fourn'=>(!empty($id_fourn) ? $id_fourn : ''), 'prod_id'=>$object->id); |
|
| 1224 | 1224 | $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters, $object, $action); |
| 1225 | 1225 | } |
| 1226 | 1226 | |
@@ -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 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * \ingroup workstation |
| 24 | 24 | * \brief File of class to manage Workstation numbering rules standard |
| 25 | 25 | */ |
| 26 | -require_once DOL_DOCUMENT_ROOT . '/core/modules/workstation/modules_workstation.php'; |
|
| 26 | +require_once DOL_DOCUMENT_ROOT.'/core/modules/workstation/modules_workstation.php'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Class to manage customer order numbering rules standard |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | $this->db = $db; |
| 136 | 136 | $this->name = "cornas"; |
| 137 | 137 | $this->description = $langs->trans('SuppliersCommandModel'); |
| 138 | - $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template |
|
| 138 | + $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template |
|
| 139 | 139 | |
| 140 | 140 | // Page size for A4 format |
| 141 | 141 | $this->type = 'pdf'; |
@@ -1120,7 +1120,9 @@ |
||
| 1120 | 1120 | global $langs, $conf, $mysoc; |
| 1121 | 1121 | |
| 1122 | 1122 | $ltrdirection = 'L'; |
| 1123 | - if ($outputlangs->trans("DIRECTION") == 'rtl') $ltrdirection = 'R'; |
|
| 1123 | + if ($outputlangs->trans("DIRECTION") == 'rtl') { |
|
| 1124 | + $ltrdirection = 'R'; |
|
| 1125 | + } |
|
| 1124 | 1126 | |
| 1125 | 1127 | // Load translation files required by the page |
| 1126 | 1128 | $outputlangs->loadLangs(array("main", "orders", "companies", "bills", "sendings")); |
@@ -849,7 +849,7 @@ |
||
| 849 | 849 | $key = 'PROJECT_CLASSIFY_CLOSED_WHEN_ALL_TASKS_DONE'; |
| 850 | 850 | echo '<tr class="oddeven">', |
| 851 | 851 | '<td class="left">', |
| 852 | - $form->textwithpicto($langs->transnoentities($key), $langs->transnoentities($key . '_help')), |
|
| 852 | + $form->textwithpicto($langs->transnoentities($key), $langs->transnoentities($key.'_help')), |
|
| 853 | 853 | '</td>', |
| 854 | 854 | '<td class="right" colspan="2">', |
| 855 | 855 | ajax_constantonoff($key), |
@@ -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(); |