@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | |
| 227 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 227 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 228 | 228 | /** |
| 229 | 229 | * Ajoute destinataires dans table des cibles |
| 230 | 230 | * |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | public function add_to_target($mailing_id) |
| 235 | 235 | { |
| 236 | - // phpcs:enable |
|
| 236 | + // phpcs:enable |
|
| 237 | 237 | global $conf, $langs, $_POST; |
| 238 | 238 | |
| 239 | 239 | // Load translation files required by the page |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | return $s; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 124 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 125 | 125 | /** |
| 126 | 126 | * Ajoute destinataires dans table des cibles |
| 127 | 127 | * |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | public function add_to_target($mailing_id) |
| 132 | 132 | { |
| 133 | - // phpcs:enable |
|
| 133 | + // phpcs:enable |
|
| 134 | 134 | global $conf, $langs, $_FILES; |
| 135 | 135 | |
| 136 | 136 | require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php'; |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | $maxfilesizearray = getMaxFileSizeArray(); |
| 116 | 116 | $maxmin = $maxfilesizearray['maxmin']; |
| 117 | 117 | if ($maxmin > 0) { |
| 118 | - $s .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 118 | + $s .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 119 | 119 | } |
| 120 | 120 | $s .= '<input type="file" name="username" class="flat">'; |
| 121 | 121 | return $s; |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | |
| 332 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 332 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 333 | 333 | /** |
| 334 | 334 | * Add some recipients into target table |
| 335 | 335 | * |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | */ |
| 339 | 339 | public function add_to_target($mailing_id) |
| 340 | 340 | { |
| 341 | - // phpcs:enable |
|
| 341 | + // phpcs:enable |
|
| 342 | 342 | global $conf, $langs; |
| 343 | 343 | |
| 344 | 344 | $filter = GETPOST('filter', 'alpha'); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function formFilter() |
| 121 | 121 | { |
| 122 | - global $conf,$langs; |
|
| 122 | + global $conf, $langs; |
|
| 123 | 123 | |
| 124 | 124 | // Load translation files required by the page |
| 125 | 125 | $langs->loadLangs(array("commercial", "companies", "suppliers", "categories")); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $sql = "SELECT sp.poste, count(distinct(sp.email)) AS nb"; |
| 131 | 131 | $sql .= " FROM " . MAIN_DB_PREFIX . "socpeople as sp"; |
| 132 | 132 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 133 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 133 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 134 | 134 | $sql .= " AND sp.statut = 1"; |
| 135 | 135 | $sql .= " AND (sp.poste IS NOT NULL AND sp.poste <> '')"; |
| 136 | 136 | $sql .= " GROUP BY sp.poste"; |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $sql .= " " . MAIN_DB_PREFIX . "categorie as c,"; |
| 166 | 166 | $sql .= " " . MAIN_DB_PREFIX . "categorie_contact as cs"; |
| 167 | 167 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 168 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 168 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 169 | 169 | $sql .= " AND sp.statut = 1"; |
| 170 | 170 | $sql .= " AND cs.fk_categorie = c.rowid"; |
| 171 | 171 | $sql .= " AND cs.fk_socpeople = sp.rowid"; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $sql .= " " . MAIN_DB_PREFIX . "categorie as c,"; |
| 240 | 240 | $sql .= " " . MAIN_DB_PREFIX . "categorie_societe as cs"; |
| 241 | 241 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 242 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 242 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 243 | 243 | $sql .= " AND sp.statut = 1"; |
| 244 | 244 | $sql .= " AND cs.fk_categorie = c.rowid"; |
| 245 | 245 | $sql .= " AND cs.fk_soc = sp.fk_soc"; |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $sql .= " " . MAIN_DB_PREFIX . "categorie as c,"; |
| 277 | 277 | $sql .= " " . MAIN_DB_PREFIX . "categorie_fournisseur as cs"; |
| 278 | 278 | $sql .= " WHERE sp.entity IN (" . getEntity('contact') . ")"; |
| 279 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 279 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
| 280 | 280 | $sql .= " AND sp.statut = 1"; |
| 281 | 281 | $sql .= " AND cs.fk_categorie = c.rowid"; |
| 282 | 282 | $sql .= " AND cs.fk_soc = sp.fk_soc"; |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | |
| 437 | 437 | // Filter on job position |
| 438 | 438 | $key = $filter_jobposition; |
| 439 | - if (!empty($key) && $key != 'all' && $key != '-1') { |
|
| 439 | + if (!empty($key) && $key != 'all' && $key != '-1') { |
|
| 440 | 440 | $sql .= " AND sp.poste = '" . $this->db->escape($key) . "'"; |
| 441 | 441 | } |
| 442 | 442 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | |
| 153 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 153 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 154 | 154 | /** |
| 155 | 155 | * Ajoute destinataires dans table des cibles |
| 156 | 156 | * |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function add_to_target($mailing_id) |
| 161 | 161 | { |
| 162 | - // phpcs:enable |
|
| 162 | + // phpcs:enable |
|
| 163 | 163 | global $conf, $langs; |
| 164 | 164 | $langs->load("companies"); |
| 165 | 165 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | |
| 55 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 55 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 56 | 56 | /** |
| 57 | 57 | * This is the main function that returns the array of emails |
| 58 | 58 | * |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function add_to_target_spec($mailing_id, $socid, $type_of_target, $contactid) |
| 66 | 66 | { |
| 67 | - // phpcs:enable |
|
| 67 | + // phpcs:enable |
|
| 68 | 68 | global $conf, $langs; |
| 69 | 69 | |
| 70 | 70 | dol_syslog(get_class($this) . "::add_to_target_spec socid=" . var_export($socid, true) . ' contactid=' . var_export($contactid, true)); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | return ''; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 159 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 160 | 160 | /** |
| 161 | 161 | * Met a jour nombre de destinataires |
| 162 | 162 | * |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | public function update_nb($mailing_id) |
| 167 | 167 | { |
| 168 | - // phpcs:enable |
|
| 168 | + // phpcs:enable |
|
| 169 | 169 | // Mise a jour nombre de destinataire dans table des mailings |
| 170 | 170 | $sql = "SELECT COUNT(*) nb FROM " . MAIN_DB_PREFIX . "mailing_cibles"; |
| 171 | 171 | $sql .= " WHERE fk_mailing = " . ((int) $mailing_id); |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | return $j; |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 281 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 282 | 282 | /** |
| 283 | 283 | * Supprime tous les destinataires de la table des cibles |
| 284 | 284 | * |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | */ |
| 288 | 288 | public function clear_target($mailing_id) |
| 289 | 289 | { |
| 290 | - // phpcs:enable |
|
| 290 | + // phpcs:enable |
|
| 291 | 291 | $sql = "DELETE FROM " . MAIN_DB_PREFIX . "mailing_cibles"; |
| 292 | 292 | $sql .= " WHERE fk_mailing = " . ((int) $mailing_id); |
| 293 | 293 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | public $sql; |
| 75 | 75 | |
| 76 | 76 | |
| 77 | - public $evenunsubscribe = 0; // Set this to 1 if you want to flag you also want to include email in target that has opt-out. |
|
| 77 | + public $evenunsubscribe = 0; // Set this to 1 if you want to flag you also want to include email in target that has opt-out. |
|
| 78 | 78 | |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | $part1 = $reg[1]; |
| 345 | 345 | |
| 346 | 346 | //$modName = ucfirst($reg[1]); |
| 347 | - $modName = 'mailing_' . $reg[1]; // name of selector submodule |
|
| 347 | + $modName = 'mailing_' . $reg[1]; // name of selector submodule |
|
| 348 | 348 | //print "file=$file modName=$modName"; exit; |
| 349 | 349 | if (in_array($modName, $modules)) { |
| 350 | 350 | $langs->load("errors"); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public $atleastonediscount = 0; |
| 60 | 60 | |
| 61 | 61 | |
| 62 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 62 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 63 | 63 | /** |
| 64 | 64 | * Return list of active generation modules |
| 65 | 65 | * |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 71 | 71 | { |
| 72 | - // phpcs:enable |
|
| 72 | + // phpcs:enable |
|
| 73 | 73 | $type = 'order'; |
| 74 | 74 | $list = array(); |
| 75 | 75 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $this->atleastonediscount = 0; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 165 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 166 | 166 | /** |
| 167 | 167 | * Function to build pdf onto disk |
| 168 | 168 | * |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 178 | 178 | { |
| 179 | - // phpcs:enable |
|
| 179 | + // phpcs:enable |
|
| 180 | 180 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 181 | 181 | |
| 182 | 182 | if (!is_object($outputlangs)) { |
@@ -663,8 +663,8 @@ discard block |
||
| 663 | 663 | } |
| 664 | 664 | } |
| 665 | 665 | |
| 666 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 667 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 666 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 667 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 668 | 668 | /** |
| 669 | 669 | * Show payments table |
| 670 | 670 | * |
@@ -676,12 +676,12 @@ discard block |
||
| 676 | 676 | */ |
| 677 | 677 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs) |
| 678 | 678 | { |
| 679 | - // phpcs:enable |
|
| 679 | + // phpcs:enable |
|
| 680 | 680 | return 1; |
| 681 | 681 | } |
| 682 | 682 | |
| 683 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 684 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 683 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 684 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 685 | 685 | /** |
| 686 | 686 | * Show miscellaneous information (payment mode, payment term, ...) |
| 687 | 687 | * |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | */ |
| 694 | 694 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs) |
| 695 | 695 | { |
| 696 | - // phpcs:enable |
|
| 696 | + // phpcs:enable |
|
| 697 | 697 | global $conf, $mysoc; |
| 698 | 698 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
| 699 | 699 | |
@@ -866,8 +866,8 @@ discard block |
||
| 866 | 866 | return $posy; |
| 867 | 867 | } |
| 868 | 868 | |
| 869 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 870 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 869 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 870 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 871 | 871 | /** |
| 872 | 872 | * Show total to pay |
| 873 | 873 | * |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | */ |
| 882 | 882 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $outputlangsbis = null) |
| 883 | 883 | { |
| 884 | - // phpcs:enable |
|
| 884 | + // phpcs:enable |
|
| 885 | 885 | global $conf, $mysoc, $hookmanager; |
| 886 | 886 | |
| 887 | 887 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | return ($tab2_top + ($tab2_hl * $index)); |
| 1143 | 1143 | } |
| 1144 | 1144 | |
| 1145 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1145 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1146 | 1146 | /** |
| 1147 | 1147 | * Show table for lines |
| 1148 | 1148 | * |
@@ -1247,8 +1247,8 @@ discard block |
||
| 1247 | 1247 | } |
| 1248 | 1248 | } |
| 1249 | 1249 | |
| 1250 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1251 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1250 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1251 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1252 | 1252 | /** |
| 1253 | 1253 | * Show top header of page. |
| 1254 | 1254 | * |
@@ -1262,7 +1262,7 @@ discard block |
||
| 1262 | 1262 | */ |
| 1263 | 1263 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "PdfOrderTitle") |
| 1264 | 1264 | { |
| 1265 | - // phpcs:enable |
|
| 1265 | + // phpcs:enable |
|
| 1266 | 1266 | global $conf, $langs, $hookmanager; |
| 1267 | 1267 | |
| 1268 | 1268 | $ltrdirection = 'L'; |
@@ -1514,8 +1514,8 @@ discard block |
||
| 1514 | 1514 | return $top_shift; |
| 1515 | 1515 | } |
| 1516 | 1516 | |
| 1517 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1518 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1517 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1518 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1519 | 1519 | /** |
| 1520 | 1520 | * Show footer of page. Need this->emetteur object |
| 1521 | 1521 | * |
@@ -1527,7 +1527,7 @@ discard block |
||
| 1527 | 1527 | */ |
| 1528 | 1528 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
| 1529 | 1529 | { |
| 1530 | - // phpcs:enable |
|
| 1530 | + // phpcs:enable |
|
| 1531 | 1531 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
| 1532 | 1532 | return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark); |
| 1533 | 1533 | } |
@@ -1682,7 +1682,7 @@ |
||
| 1682 | 1682 | |
| 1683 | 1683 | $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs); |
| 1684 | 1684 | |
| 1685 | - $mode = 'target'; |
|
| 1685 | + $mode = 'target'; |
|
| 1686 | 1686 | $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object); |
| 1687 | 1687 | |
| 1688 | 1688 | // Show recipient |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $this->atleastonediscount = 0; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 149 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 150 | 150 | /** |
| 151 | 151 | * Function to build pdf onto disk |
| 152 | 152 | * |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 162 | 162 | { |
| 163 | - // phpcs:enable |
|
| 163 | + // phpcs:enable |
|
| 164 | 164 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 165 | 165 | |
| 166 | 166 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -1352,7 +1352,7 @@ discard block |
||
| 1352 | 1352 | return ($tab2_top + ($tab2_hl * $index)); |
| 1353 | 1353 | } |
| 1354 | 1354 | |
| 1355 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1355 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1356 | 1356 | /** |
| 1357 | 1357 | * Show table for lines |
| 1358 | 1358 | * |
@@ -1413,8 +1413,8 @@ discard block |
||
| 1413 | 1413 | } |
| 1414 | 1414 | } |
| 1415 | 1415 | |
| 1416 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1417 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1416 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1417 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1418 | 1418 | /** |
| 1419 | 1419 | * Show top header of page. |
| 1420 | 1420 | * |
@@ -1428,7 +1428,7 @@ discard block |
||
| 1428 | 1428 | */ |
| 1429 | 1429 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "PdfOrderTitle") |
| 1430 | 1430 | { |
| 1431 | - // phpcs:enable |
|
| 1431 | + // phpcs:enable |
|
| 1432 | 1432 | global $conf, $langs, $hookmanager, $mysoc; |
| 1433 | 1433 | |
| 1434 | 1434 | $ltrdirection = 'L'; |
@@ -1700,8 +1700,8 @@ discard block |
||
| 1700 | 1700 | return $top_shift; |
| 1701 | 1701 | } |
| 1702 | 1702 | |
| 1703 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1704 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1703 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1704 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1705 | 1705 | /** |
| 1706 | 1706 | * Show footer of page. Need this->emetteur object |
| 1707 | 1707 | * |
@@ -1713,7 +1713,7 @@ discard block |
||
| 1713 | 1713 | */ |
| 1714 | 1714 | protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0) |
| 1715 | 1715 | { |
| 1716 | - // phpcs:enable |
|
| 1716 | + // phpcs:enable |
|
| 1717 | 1717 | $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0); |
| 1718 | 1718 | return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark); |
| 1719 | 1719 | } |
@@ -1656,7 +1656,7 @@ |
||
| 1656 | 1656 | $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs); |
| 1657 | 1657 | } |
| 1658 | 1658 | |
| 1659 | - $mode = 'target'; |
|
| 1659 | + $mode = 'target'; |
|
| 1660 | 1660 | $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object); |
| 1661 | 1661 | |
| 1662 | 1662 | // Show recipient |