@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | abstract class ModelePDFEvaluation extends CommonDocGenerator |
| 41 | 41 | { |
| 42 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 42 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 43 | 43 | /** |
| 44 | 44 | * Return list of active generation modules |
| 45 | 45 | * |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 51 | 51 | { |
| 52 | - // phpcs:enable |
|
| 52 | + // phpcs:enable |
|
| 53 | 53 | $type = 'evaluation'; |
| 54 | 54 | $list = array(); |
| 55 | 55 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 133 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 134 | 134 | /** |
| 135 | 135 | * Function to build pdf onto disk |
| 136 | 136 | * |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 146 | 146 | { |
| 147 | - // phpcs:enable |
|
| 147 | + // phpcs:enable |
|
| 148 | 148 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 149 | 149 | |
| 150 | 150 | if (!is_object($outputlangs)) { |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | $pdf->writeHTMLCell($this->posxskill - $this->posxpiece - 0.8, 3, $this->posxpiece - 1, $curY, $linenumber + 1, 0, 1, 0, 0, 'C'); |
| 516 | 516 | } |
| 517 | 517 | |
| 518 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 518 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 519 | 519 | /** |
| 520 | 520 | * Show top header of page. |
| 521 | 521 | * |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | return 0; |
| 632 | 632 | } |
| 633 | 633 | |
| 634 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 634 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 635 | 635 | /** |
| 636 | 636 | * Show table for lines |
| 637 | 637 | * |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | |
| 708 | 708 | |
| 709 | 709 | |
| 710 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 710 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 711 | 711 | /** |
| 712 | 712 | * Show footer of page. Need this->emetteur object |
| 713 | 713 | * |
@@ -250,7 +250,7 @@ |
||
| 250 | 250 | |
| 251 | 251 | // Show notes |
| 252 | 252 | if (!empty($object->note_public)) { |
| 253 | - $tab_top = 65; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 253 | + $tab_top = 65; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 254 | 254 | |
| 255 | 255 | $pdf->SetFont('', 'B', $default_font_size); |
| 256 | 256 | $pdf->MultiCell(190, 4, $outputlangs->transnoentities("Notes") . ":", 0, 'L', 0, '', 12, $tab_top); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * \brief File containing class for advanced numbering model of Evaluation |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | - require_once DOL_DOCUMENT_ROOT . '/core/modules/hrm/modules_evaluation.php'; |
|
| 30 | + require_once DOL_DOCUMENT_ROOT . '/core/modules/hrm/modules_evaluation.php'; |
|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public $error = ''; |
| 43 | 43 | |
| 44 | 44 | |
| 45 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 45 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 46 | 46 | /** |
| 47 | 47 | * Return list of active generation modules |
| 48 | 48 | * |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 54 | 54 | { |
| 55 | - // phpcs:enable |
|
| 55 | + // phpcs:enable |
|
| 56 | 56 | $type = 'member'; |
| 57 | 57 | $list = array(); |
| 58 | 58 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | function members_card_pdf_create($db, $arrayofmembers, $modele, $outputlangs, $outputdir = '', $template = 'standard', $filename = 'tmp_cards') |
| 81 | 81 | { |
| 82 | - // phpcs:enable |
|
| 82 | + // phpcs:enable |
|
| 83 | 83 | global $conf, $langs; |
| 84 | 84 | $langs->load("members"); |
| 85 | 85 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | abstract class ModelePDFMember extends CommonDocGenerator |
| 40 | 40 | { |
| 41 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 41 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 42 | 42 | /** |
| 43 | 43 | * Return list of active generation modules |
| 44 | 44 | * |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 50 | 50 | { |
| 51 | - // phpcs:enable |
|
| 51 | + // phpcs:enable |
|
| 52 | 52 | $type = 'member'; |
| 53 | 53 | $list = array(); |
| 54 | 54 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | // use this method in future refactoring |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 78 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 79 | 79 | /** |
| 80 | 80 | * Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0) |
| 81 | 81 | * - __LOGO__ is replace with company logo |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | public function Add_PDF_card(&$pdf, $textleft, $header, $footer, $outputlangs, $textright = '', $idmember = 0, $photo = '') |
| 95 | 95 | { |
| 96 | - // phpcs:enable |
|
| 96 | + // phpcs:enable |
|
| 97 | 97 | global $db, $mysoc, $conf, $langs; |
| 98 | 98 | global $forceimgscalewidth, $forceimgscaleheight; |
| 99 | 99 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | } |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 263 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 264 | 264 | /** |
| 265 | 265 | * Function to build PDF on disk, then output on HTTP stream. |
| 266 | 266 | * |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | */ |
| 275 | 275 | public function write_file($object, $outputlangs, $srctemplatepath, $mode = 'member', $nooutput = 0, $filename = 'tmp_cards') |
| 276 | 276 | { |
| 277 | - // phpcs:enable |
|
| 277 | + // phpcs:enable |
|
| 278 | 278 | global $user, $conf, $langs, $mysoc, $_Avery_Labels; |
| 279 | 279 | |
| 280 | 280 | $this->code = $srctemplatepath; |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | return $texte; |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 186 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 187 | 187 | /** |
| 188 | 188 | * Function to build a document on disk using the generic odt module. |
| 189 | 189 | * |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function write_file($object, $outputlangs, $srctemplatepath, $mode = 'member', $nooutput = 0, $filename = 'tmp_cards') |
| 199 | 199 | { |
| 200 | - // phpcs:enable |
|
| 200 | + // phpcs:enable |
|
| 201 | 201 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 202 | 202 | |
| 203 | 203 | if (empty($srctemplatepath)) { |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | return -1; |
| 416 | 416 | } |
| 417 | 417 | |
| 418 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 418 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 419 | 419 | /** |
| 420 | 420 | * get substitution array for object |
| 421 | 421 | * |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | */ |
| 427 | 427 | public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object') |
| 428 | 428 | { |
| 429 | - // phpcs:enable |
|
| 429 | + // phpcs:enable |
|
| 430 | 430 | if (!$object instanceof Adherent) { |
| 431 | 431 | dol_syslog("Expected Adherent object, got " . gettype($object), LOG_ERR); |
| 432 | 432 | return array(); |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | $maxfilesizearray = getMaxFileSizeArray(); |
| 168 | 168 | $maxmin = $maxfilesizearray['maxmin']; |
| 169 | 169 | if ($maxmin > 0) { |
| 170 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 170 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 171 | 171 | } |
| 172 | 172 | $texte .= ' <input type="file" name="uploadfile">'; |
| 173 | 173 | $texte .= '<input type="hidden" value="MEMBER_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public $version = 'dolibarr'; |
| 54 | 54 | |
| 55 | 55 | |
| 56 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 56 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 57 | 57 | /** |
| 58 | 58 | * Return list of active generation modules |
| 59 | 59 | * |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 65 | 65 | { |
| 66 | - // phpcs:enable |
|
| 66 | + // phpcs:enable |
|
| 67 | 67 | $type = 'movement'; |
| 68 | 68 | $list = array(); |
| 69 | 69 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | |
| 126 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 126 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 127 | 127 | /** |
| 128 | 128 | * Function to build a document on disk using the generic odt module. |
| 129 | 129 | * |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 139 | 139 | { |
| 140 | - // phpcs:enable |
|
| 140 | + // phpcs:enable |
|
| 141 | 141 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
| 142 | 142 | |
| 143 | 143 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -775,7 +775,7 @@ discard block |
||
| 775 | 775 | } |
| 776 | 776 | } |
| 777 | 777 | |
| 778 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 778 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 779 | 779 | /** |
| 780 | 780 | * Show table for lines |
| 781 | 781 | * |
@@ -899,7 +899,7 @@ discard block |
||
| 899 | 899 | $pdf->SetLineStyle(array('dash' => 0)); |
| 900 | 900 | } |
| 901 | 901 | |
| 902 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 902 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 903 | 903 | /** |
| 904 | 904 | * Show top header of page. |
| 905 | 905 | * |
@@ -1122,7 +1122,7 @@ discard block |
||
| 1122 | 1122 | return $top_shift; |
| 1123 | 1123 | } |
| 1124 | 1124 | |
| 1125 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1125 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 1126 | 1126 | /** |
| 1127 | 1127 | * Show footer of page. Need this->emetteur object |
| 1128 | 1128 | * |
@@ -293,7 +293,7 @@ |
||
| 293 | 293 | // Add where from extra fields |
| 294 | 294 | include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_sql.tpl.php'; |
| 295 | 295 | // Add where from hooks |
| 296 | - $parameters = array(); // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 296 | + $parameters = array(); // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
| 297 | 297 | $reshook = $hookmanager->executeHooks('printFieldListWhere', $parameters); // Note that $action and $object may have been modified by hook |
| 298 | 298 | $sql .= $hookmanager->resPrint; |
| 299 | 299 | $sql .= $this->db->order($sortfield, $sortorder); |