@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | return $this->LibStatut($this->status, $mode); |
953 | 953 | } |
954 | 954 | |
955 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
955 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
956 | 956 | /** |
957 | 957 | * Return the status |
958 | 958 | * |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | */ |
963 | 963 | public static function LibStatut($status, $mode = 0) |
964 | 964 | { |
965 | - // phpcs:enable |
|
965 | + // phpcs:enable |
|
966 | 966 | global $langs; |
967 | 967 | return ''; |
968 | 968 | } |
@@ -163,16 +163,16 @@ |
||
163 | 163 | 'label' => array('type' => 'varchar(128)', 'label' => 'Label', 'enabled' => 1, 'position' => 30, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "contains hash of file content"), |
164 | 164 | 'share' => array('type' => 'varchar(128)', 'label' => 'Share', 'enabled' => 1, 'position' => 40, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "contains hash for file sharing"), |
165 | 165 | 'entity' => array('type' => 'integer', 'label' => 'Entity', 'default' => '1', 'enabled' => 1, 'visible' => -2, 'notnull' => -1, 'position' => 50, 'index' => 1), |
166 | - 'filepath' => array('type' => 'varchar(255)', 'label' => 'FilePath', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "relative to dolibarr document dir. Example module/def"), |
|
167 | - 'filename' => array('type' => 'varchar(255)', 'label' => 'FileName', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "file name only without any directory"), |
|
168 | - 'src_object_type' => array('type' => 'varchar(64)', 'label' => 'SourceType', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => 0, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "Source object type ('proposal', 'invoice', ...)"), |
|
166 | + 'filepath' => array('type' => 'varchar(255)', 'label' => 'FilePath', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "relative to dolibarr document dir. Example module/def"), |
|
167 | + 'filename' => array('type' => 'varchar(255)', 'label' => 'FileName', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "file name only without any directory"), |
|
168 | + 'src_object_type' => array('type' => 'varchar(64)', 'label' => 'SourceType', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => 0, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "Source object type ('proposal', 'invoice', ...)"), |
|
169 | 169 | 'src_object_id' => array('type' => 'integer', 'label' => 'SourceID', 'default' => '1', 'enabled' => 1, 'visible' => 0, 'notnull' => 1, 'position' => 90, 'index' => 1, 'comment' => "Source object id"), |
170 | - 'fullpath_orig' => array('type' => 'varchar(750)', 'label' => 'FullPathOrig', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "full path of original filename, when file is uploaded from a local computer"), |
|
170 | + 'fullpath_orig' => array('type' => 'varchar(750)', 'label' => 'FullPathOrig', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "full path of original filename, when file is uploaded from a local computer"), |
|
171 | 171 | 'description' => array('type' => 'text', 'label' => 'Description', 'enabled' => 1, 'visible' => 0, 'position' => 110), |
172 | - 'keywords' => array('type' => 'varchar(750)', 'label' => 'Keywords', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "list of keywords, separated with comma. Must be limited to most important keywords."), |
|
172 | + 'keywords' => array('type' => 'varchar(750)', 'label' => 'Keywords', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "list of keywords, separated with comma. Must be limited to most important keywords."), |
|
173 | 173 | 'cover' => array('type' => 'text', 'label' => 'Cover', 'enabled' => 1, 'visible' => 0, 'position' => 130, 'comment' => "is this file a file to use for a cover"), |
174 | 174 | 'position' => array('type' => 'integer', 'label' => 'Position', 'default' => '1', 'enabled' => 1, 'visible' => -2, 'notnull' => 1, 'position' => 140, 'index' => 1, 'comment' => "position of file among others"), |
175 | - 'gen_or_uploaded' => array('type' => 'varchar(12)', 'label' => 'GenOrUpload', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "'generated' or 'uploaded'"), |
|
175 | + 'gen_or_uploaded' => array('type' => 'varchar(12)', 'label' => 'GenOrUpload', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "'generated' or 'uploaded'"), |
|
176 | 176 | 'extraparams' => array('type' => 'varchar(255)', 'label' => 'ExtraParams', 'enabled' => 1, 'position' => 160, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "for stocking other parameters with json format"), |
177 | 177 | 'date_c' => array('type' => 'datetime', 'label' => 'DateCreation', 'enabled' => 1, 'visible' => -1, 'position' => 170), |
178 | 178 | 'tms' => array('type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'visible' => -1, 'notnull' => 1, 'position' => 175), |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | return $ret; |
559 | 559 | } |
560 | 560 | |
561 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
561 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
562 | 562 | /** |
563 | 563 | * Load this->motherof that is array(id_son=>id_parent, ...) |
564 | 564 | * |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | */ |
567 | 567 | public function load_motherof() |
568 | 568 | { |
569 | - // phpcs:enable |
|
569 | + // phpcs:enable |
|
570 | 570 | global $conf; |
571 | 571 | |
572 | 572 | $this->motherof = array(); |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | return $this->LibStatut($this->status, $mode); |
604 | 604 | } |
605 | 605 | |
606 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
606 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
607 | 607 | /** |
608 | 608 | * Return the status |
609 | 609 | * |
@@ -613,13 +613,13 @@ discard block |
||
613 | 613 | */ |
614 | 614 | public static function LibStatut($status, $mode = 0) |
615 | 615 | { |
616 | - // phpcs:enable |
|
616 | + // phpcs:enable |
|
617 | 617 | global $langs; |
618 | 618 | return ''; |
619 | 619 | } |
620 | 620 | |
621 | 621 | |
622 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
622 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
623 | 623 | /** |
624 | 624 | * Reconstruit l'arborescence des categories sous la forme d'un tableau à partir de la base de donnée |
625 | 625 | * Renvoi un tableau de tableau('id','id_mere',...) trie selon arbre et avec: |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | */ |
642 | 642 | public function get_full_arbo($force = 0) |
643 | 643 | { |
644 | - // phpcs:enable |
|
644 | + // phpcs:enable |
|
645 | 645 | global $conf; |
646 | 646 | |
647 | 647 | if (empty($force) && !empty($this->full_arbo_loaded)) { |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | } |
790 | 790 | } |
791 | 791 | |
792 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
792 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
793 | 793 | /** |
794 | 794 | * Call trigger based on this instance. |
795 | 795 | * We implement it here because this class doe not extend CommonObject. |
@@ -804,7 +804,7 @@ discard block |
||
804 | 804 | */ |
805 | 805 | public function call_trigger($triggerName, $user) |
806 | 806 | { |
807 | - // phpcs:enable |
|
807 | + // phpcs:enable |
|
808 | 808 | global $langs, $conf; |
809 | 809 | |
810 | 810 | include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php'; |
@@ -966,7 +966,7 @@ |
||
966 | 966 | /** |
967 | 967 | * @var array $suffix2numAsked map HTTP query parameter suffixes (like '1_0') to line indices so that |
968 | 968 | * extrafields from HTTP query can be assigned to the correct dispatch line |
969 | - */ |
|
969 | + */ |
|
970 | 970 | $suffix2numAsked = array(); |
971 | 971 | $dispatchLines = array(); |
972 | 972 |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | // Loop lines to calculate $totalqty |
345 | 345 | for ($i = 1; $i <= $num; $i++) { |
346 | - $idl = "idl" . $i; // id line source |
|
346 | + $idl = "idl" . $i; // id line source |
|
347 | 347 | |
348 | 348 | //$sub_qty = array(); |
349 | 349 | //$subtotalqty = 0; |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | //$j = 0; |
352 | 352 | //$batch = "batchl".$i."_0"; |
353 | 353 | //$stockLocation = "ent1".$i."_0"; |
354 | - $qty = "qtyl" . $i; // qty |
|
354 | + $qty = "qtyl" . $i; // qty |
|
355 | 355 | |
356 | 356 | //reception line for product with no batch management and no multiple stock location |
357 | 357 | if (GETPOST($qty, 'alpha') > 0) { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | |
366 | 366 | if ($totalqty > 0) { // There is at least one thing to ship |
367 | 367 | for ($i = 1; $i <= $num; $i++) { |
368 | - $idl = "idl" . $i; // id line source |
|
368 | + $idl = "idl" . $i; // id line source |
|
369 | 369 | $lineToTest = ''; |
370 | 370 | $lineId = GETPOSTINT($idl); |
371 | 371 | foreach ($objectsrc->lines as $linesrc) { |
@@ -1144,7 +1144,7 @@ discard block |
||
1144 | 1144 | |
1145 | 1145 | print '<input type="hidden" name="productl' . $indiceAsked . '" value="' . $line->fk_product . '">'; |
1146 | 1146 | |
1147 | - if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1147 | + if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1148 | 1148 | print '<input type="hidden" name="productid' . $indiceAsked . '" value="' . $line->fk_product . '">'; |
1149 | 1149 | |
1150 | 1150 | // Show product and description |
@@ -1166,7 +1166,7 @@ discard block |
||
1166 | 1166 | print '</td>'; |
1167 | 1167 | } else { |
1168 | 1168 | print "<td>"; |
1169 | - if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1169 | + if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1170 | 1170 | if ($type == 1) { |
1171 | 1171 | $text = img_object($langs->trans('Service'), 'service'); |
1172 | 1172 | } else { |
@@ -1195,7 +1195,7 @@ discard block |
||
1195 | 1195 | |
1196 | 1196 | // Qty in source purchase order line |
1197 | 1197 | print '<td class="center">'; |
1198 | - if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1198 | + if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1199 | 1199 | print $line->qty; |
1200 | 1200 | } |
1201 | 1201 | print '<input type="hidden" name="fk_commandefournisseurdet' . $indiceAsked . '" value="' . $line->id . '">'; |
@@ -1207,7 +1207,7 @@ discard block |
||
1207 | 1207 | // Qty already received |
1208 | 1208 | print '<td class="center">'; |
1209 | 1209 | $quantityDelivered = $objectsrc->receptions[$line->id]; |
1210 | - if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1210 | + if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice |
|
1211 | 1211 | print $quantityDelivered; |
1212 | 1212 | } |
1213 | 1213 | print '<input name="qtydelivered' . $indiceAsked . '" id="qtydelivered' . $indiceAsked . '" type="hidden" value="' . $quantityDelivered . '">'; |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | } |
199 | 199 | } |
200 | 200 | |
201 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
201 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
202 | 202 | /** |
203 | 203 | * Return tree of Dolistore categories. $this->categories must have been loaded before. |
204 | 204 | * |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | */ |
208 | 208 | public function get_categories($parent = 0) |
209 | 209 | { |
210 | - // phpcs:enable |
|
210 | + // phpcs:enable |
|
211 | 211 | if (!isset($this->categories)) { |
212 | 212 | die('not possible'); |
213 | 213 | } |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | } |
246 | 246 | } |
247 | 247 | |
248 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
248 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
249 | 249 | /** |
250 | 250 | * Return list of product formatted for output |
251 | 251 | * |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | public function get_products() |
255 | 255 | { |
256 | - // phpcs:enable |
|
256 | + // phpcs:enable |
|
257 | 257 | global $langs, $conf; |
258 | 258 | $html = ""; |
259 | 259 | $last_month = time() - (30 * 24 * 60 * 60); |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | return $html; |
343 | 343 | } |
344 | 344 | |
345 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
345 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
346 | 346 | /** |
347 | 347 | * get previous link |
348 | 348 | * |
@@ -351,11 +351,11 @@ discard block |
||
351 | 351 | */ |
352 | 352 | public function get_previous_link($text = '<<') |
353 | 353 | { |
354 | - // phpcs:enable |
|
354 | + // phpcs:enable |
|
355 | 355 | return '<a href="' . $this->get_previous_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>'; |
356 | 356 | } |
357 | 357 | |
358 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
358 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
359 | 359 | /** |
360 | 360 | * get next link |
361 | 361 | * |
@@ -364,11 +364,11 @@ discard block |
||
364 | 364 | */ |
365 | 365 | public function get_next_link($text = '>>') |
366 | 366 | { |
367 | - // phpcs:enable |
|
367 | + // phpcs:enable |
|
368 | 368 | return '<a href="' . $this->get_next_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>'; |
369 | 369 | } |
370 | 370 | |
371 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
371 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
372 | 372 | /** |
373 | 373 | * get previous url |
374 | 374 | * |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | */ |
377 | 377 | public function get_previous_url() |
378 | 378 | { |
379 | - // phpcs:enable |
|
379 | + // phpcs:enable |
|
380 | 380 | $param_array = array(); |
381 | 381 | if ($this->start < $this->per_page) { |
382 | 382 | $sub = 0; |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | return $this->url . "&" . $param; |
393 | 393 | } |
394 | 394 | |
395 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
395 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
396 | 396 | /** |
397 | 397 | * get next url |
398 | 398 | * |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | */ |
401 | 401 | public function get_next_url() |
402 | 402 | { |
403 | - // phpcs:enable |
|
403 | + // phpcs:enable |
|
404 | 404 | $param_array = array(); |
405 | 405 | if (count($this->products) < $this->per_page) { |
406 | 406 | $add = 0; |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | return $this->url . "&" . $param; |
417 | 417 | } |
418 | 418 | |
419 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
419 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
420 | 420 | /** |
421 | 421 | * version compare |
422 | 422 | * |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | */ |
427 | 427 | public function version_compare($v1, $v2) |
428 | 428 | { |
429 | - // phpcs:enable |
|
429 | + // phpcs:enable |
|
430 | 430 | $v1 = explode('.', $v1); |
431 | 431 | $v2 = explode('.', $v2); |
432 | 432 | $ret = 0; |
@@ -324,12 +324,12 @@ |
||
324 | 324 | //output template |
325 | 325 | $html .= '<tr class="app oddeven ' . dol_escape_htmltag($compatible) . '">'; |
326 | 326 | $html .= '<td class="center" width="210"><div class="newAppParent">'; |
327 | - $html .= $newapp . $images; // No dol_escape_htmltag, it is already escape html |
|
327 | + $html .= $newapp . $images; // No dol_escape_htmltag, it is already escape html |
|
328 | 328 | $html .= '</div></td>'; |
329 | 329 | $html .= '<td class="margeCote"><h2 class="appTitle">'; |
330 | 330 | $html .= dol_escape_htmltag($product->name->language[$this->lang - 1]); |
331 | 331 | $html .= '<br><small>'; |
332 | - $html .= $version; // No dol_escape_htmltag, it is already escape html |
|
332 | + $html .= $version; // No dol_escape_htmltag, it is already escape html |
|
333 | 333 | $html .= '</small></h2>'; |
334 | 334 | $html .= '<small> ' . dol_print_date(dol_stringtotime($product->date_upd), 'dayhour') . ' - ' . $langs->trans('Ref') . ': ' . dol_escape_htmltag($product->reference) . ' - ' . dol_escape_htmltag($langs->trans('Id')) . ': ' . ((int) $product->id) . '</small><br><br>' . dol_escape_htmltag($product->description_short->language[$this->lang - 1]) . '</td>'; |
335 | 335 | // do not load if display none |
@@ -189,7 +189,7 @@ |
||
189 | 189 | <div class="tagtd center noborderbottom"> |
190 | 190 | <input type="submit" id="add-customer-contact" class="button small" value="<?php echo $langs->trans("Add"); ?>"<?php if (!$nbofcontacts) { |
191 | 191 | echo ' disabled'; |
192 | - } ?>> |
|
192 | + } ?>> |
|
193 | 193 | </div> |
194 | 194 | </form> |
195 | 195 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $module = $object->element; |
41 | 41 | |
42 | 42 | // Special cases |
43 | -if (isset($permissiontoadd) && ! isset($permission)) { |
|
43 | +if (isset($permissiontoadd) && !isset($permission)) { |
|
44 | 44 | $permission = $permissiontoadd; |
45 | 45 | } |
46 | 46 | // TODO Remove this section. We already got $permissiontoadd. |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | <div class="tagtd nowrap noborderbottom"> |
165 | 165 | <?php |
166 | 166 | $selectedCompany = GETPOSTISSET("newcompany") ? GETPOSTINT("newcompany") : (empty($object->socid) ? 0 : $object->socid); |
167 | - $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component?> |
|
167 | + $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component?> |
|
168 | 168 | </div> |
169 | 169 | <div class="tagtd noborderbottom minwidth500imp"> |
170 | 170 | <?php |
@@ -118,13 +118,13 @@ |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * Return array head with list of tabs to view object information |
|
122 | - * |
|
123 | - * @param BonPrelevement $object Member |
|
124 | - * @param int $nbOfInvoices No of invoices |
|
125 | - * @param int $nbOfSalaryInvoice No of salary invoices |
|
126 | - * @return array head |
|
127 | - */ |
|
121 | + * Return array head with list of tabs to view object information |
|
122 | + * |
|
123 | + * @param BonPrelevement $object Member |
|
124 | + * @param int $nbOfInvoices No of invoices |
|
125 | + * @param int $nbOfSalaryInvoice No of salary invoices |
|
126 | + * @return array head |
|
127 | + */ |
|
128 | 128 | function bon_prelevement_prepare_head(BonPrelevement $object, $nbOfInvoices, $nbOfSalaryInvoice) |
129 | 129 | { |
130 | 130 | global $langs, $conf; |
@@ -1387,7 +1387,7 @@ |
||
1387 | 1387 | |
1388 | 1388 | // build format asciidoc for urls in table |
1389 | 1389 | if (!$error) { |
1390 | - $asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore |
|
1390 | + $asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore |
|
1391 | 1391 | foreach ($groupedUrls as $objectName => $urls) { |
1392 | 1392 | $urlsList = implode(" +\n*", $urls); |
1393 | 1393 | $asciiDocTable .= "|$objectName | \n*$urlsList +\n"; |
@@ -275,22 +275,22 @@ discard block |
||
275 | 275 | // Edit .sql file |
276 | 276 | if ($moduletype == 'internal') { |
277 | 277 | $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '_' . strtolower($objectname) . '.sql'; |
278 | - if (! dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
278 | + if (!dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
279 | 279 | $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '_' . strtolower($objectname) . '-' . strtolower($module) . '.sql'; |
280 | - if (! dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
280 | + if (!dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
281 | 281 | $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '-' . strtolower($module) . '.sql'; |
282 | - if (! dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
282 | + if (!dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
283 | 283 | $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '.sql'; |
284 | 284 | } |
285 | 285 | } |
286 | 286 | } |
287 | 287 | } else { |
288 | 288 | $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '_' . strtolower($objectname) . '.sql'; |
289 | - if (! dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
289 | + if (!dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
290 | 290 | $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '_' . strtolower($objectname) . '-' . strtolower($module) . '.sql'; |
291 | - if (! dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
291 | + if (!dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
292 | 292 | $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '-' . strtolower($module) . '.sql'; |
293 | - if (! dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
293 | + if (!dol_is_file($readdir . $pathoffiletoeditsrc)) { |
|
294 | 294 | $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '.sql'; |
295 | 295 | } |
296 | 296 | } |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | if (!$error) { |
613 | 613 | // prepare permissions array |
614 | 614 | $count_perms = count($permissions); |
615 | - for ($i = 0;$i < $count_perms;$i++) { |
|
615 | + for ($i = 0; $i < $count_perms; $i++) { |
|
616 | 616 | $permissions[$i][0] = "\$this->rights[\$r][0] = \$this->numero . sprintf('%02d', \$r + 1)"; |
617 | 617 | $permissions[$i][1] = "\$this->rights[\$r][1] = '" . $permissions[$i][1] . "'"; |
618 | 618 | $permissions[$i][4] = "\$this->rights[\$r][4] = '" . $permissions[$i][4] . "'"; |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | { |
727 | 727 | |
728 | 728 | // stock all properties in array |
729 | - $attributesUnique = array('type','label', 'enabled', 'position', 'notnull', 'visible', 'noteditable', 'index', 'default' , 'foreignkey', 'arrayofkeyval', 'alwayseditable','validate', 'searchall','comment', 'isameasure', 'css', 'cssview','csslist', 'help', 'showoncombobox','picto' ); |
|
729 | + $attributesUnique = array('type', 'label', 'enabled', 'position', 'notnull', 'visible', 'noteditable', 'index', 'default', 'foreignkey', 'arrayofkeyval', 'alwayseditable', 'validate', 'searchall', 'comment', 'isameasure', 'css', 'cssview', 'csslist', 'help', 'showoncombobox', 'picto'); |
|
730 | 730 | |
731 | 731 | $start = "public \$fields=array("; |
732 | 732 | $end = ");"; |
@@ -892,7 +892,7 @@ discard block |
||
892 | 892 | $string = "[options='header',grid=rows,width=60%,caption=Organisation]\n"; |
893 | 893 | $string .= "|===\n"; |
894 | 894 | // header for table |
895 | - $header = array($langs->trans('Objects'),$langs->trans('Permission')); |
|
895 | + $header = array($langs->trans('Objects'), $langs->trans('Permission')); |
|
896 | 896 | foreach ($header as $h) { |
897 | 897 | $string .= "|" . $h; |
898 | 898 | } |
@@ -1219,7 +1219,7 @@ discard block |
||
1219 | 1219 | * @param bool|int|string $val |
1220 | 1220 | * @return string|int |
1221 | 1221 | */ |
1222 | - function ($val) use ($module) { |
|
1222 | + function($val) use ($module) { |
|
1223 | 1223 | return is_bool($val) ? "isModEnabled('$module')" : $val; |
1224 | 1224 | }, |
1225 | 1225 | $value |
@@ -1240,7 +1240,7 @@ discard block |
||
1240 | 1240 | * @param string $val |
1241 | 1241 | * @return string |
1242 | 1242 | */ |
1243 | - static function ($val) { |
|
1243 | + static function($val) { |
|
1244 | 1244 | return "'$val'"; |
1245 | 1245 | }, |
1246 | 1246 | $value |
@@ -1335,7 +1335,7 @@ discard block |
||
1335 | 1335 | $dictionnaires['tabfieldvalue'][] = (array_key_exists('code', $columns) && array_key_exists('label', $columns) ? 'code,label' : ''); |
1336 | 1336 | $dictionnaires['tabfieldinsert'][] = (array_key_exists('code', $columns) && array_key_exists('label', $columns) ? 'code,label' : ''); |
1337 | 1337 | $dictionnaires['tabrowid'][] = $primaryKey; |
1338 | - $dictionnaires['tabcond'][] = isModEnabled('$modulename'); // @phan-suppress-current-line UnknownModuleName |
|
1338 | + $dictionnaires['tabcond'][] = isModEnabled('$modulename'); // @phan-suppress-current-line UnknownModuleName |
|
1339 | 1339 | $dictionnaires['tabhelp'][] = (array_key_exists('code', $columns) ? array('code' => $langs->trans('CodeTooltipHelp'), 'field2' => 'field2tooltip') : ''); |
1340 | 1340 | |
1341 | 1341 | // Build the dictionary string |
@@ -1387,7 +1387,7 @@ discard block |
||
1387 | 1387 | |
1388 | 1388 | // build format asciidoc for urls in table |
1389 | 1389 | if (!$error) { |
1390 | - $asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore |
|
1390 | + $asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore |
|
1391 | 1391 | foreach ($groupedUrls as $objectName => $urls) { |
1392 | 1392 | $urlsList = implode(" +\n*", $urls); |
1393 | 1393 | $asciiDocTable .= "|$objectName | \n*$urlsList +\n"; |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | |
147 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
147 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
148 | 148 | /** |
149 | 149 | * Utiliser SetNumTicks ou SetHorizTickIncrement mais pas les 2 |
150 | 150 | * |
@@ -153,12 +153,12 @@ discard block |
||
153 | 153 | */ |
154 | 154 | public function SetHorizTickIncrement($xi) |
155 | 155 | { |
156 | - // phpcs:enable |
|
156 | + // phpcs:enable |
|
157 | 157 | $this->horizTickIncrement = $xi; |
158 | 158 | return true; |
159 | 159 | } |
160 | 160 | |
161 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
161 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
162 | 162 | /** |
163 | 163 | * Utiliser SetNumTicks ou SetHorizTickIncrement mais pas les 2 |
164 | 164 | * |
@@ -167,12 +167,12 @@ discard block |
||
167 | 167 | */ |
168 | 168 | public function SetNumXTicks($xt) |
169 | 169 | { |
170 | - // phpcs:enable |
|
170 | + // phpcs:enable |
|
171 | 171 | $this->SetNumXTicks = $xt; |
172 | 172 | return true; |
173 | 173 | } |
174 | 174 | |
175 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
175 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
176 | 176 | /** |
177 | 177 | * Set label interval to reduce number of labels |
178 | 178 | * |
@@ -181,12 +181,12 @@ discard block |
||
181 | 181 | */ |
182 | 182 | public function SetLabelInterval($x) |
183 | 183 | { |
184 | - // phpcs:enable |
|
184 | + // phpcs:enable |
|
185 | 185 | $this->labelInterval = $x; |
186 | 186 | return true; |
187 | 187 | } |
188 | 188 | |
189 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
189 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
190 | 190 | /** |
191 | 191 | * Hide X grid |
192 | 192 | * |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | */ |
196 | 196 | public function SetHideXGrid($bool) |
197 | 197 | { |
198 | - // phpcs:enable |
|
198 | + // phpcs:enable |
|
199 | 199 | $this->hideXGrid = $bool; |
200 | 200 | return true; |
201 | 201 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | return true; |
213 | 213 | } |
214 | 214 | |
215 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
215 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
216 | 216 | /** |
217 | 217 | * Hide Y grid |
218 | 218 | * |
@@ -221,12 +221,12 @@ discard block |
||
221 | 221 | */ |
222 | 222 | public function SetHideYGrid($bool) |
223 | 223 | { |
224 | - // phpcs:enable |
|
224 | + // phpcs:enable |
|
225 | 225 | $this->hideYGrid = $bool; |
226 | 226 | return true; |
227 | 227 | } |
228 | 228 | |
229 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
229 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
230 | 230 | /** |
231 | 231 | * Set y label |
232 | 232 | * |
@@ -235,11 +235,11 @@ discard block |
||
235 | 235 | */ |
236 | 236 | public function SetYLabel($label) |
237 | 237 | { |
238 | - // phpcs:enable |
|
238 | + // phpcs:enable |
|
239 | 239 | $this->YLabel = $label; |
240 | 240 | } |
241 | 241 | |
242 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
242 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
243 | 243 | /** |
244 | 244 | * Set width |
245 | 245 | * |
@@ -248,11 +248,11 @@ discard block |
||
248 | 248 | */ |
249 | 249 | public function SetWidth($w) |
250 | 250 | { |
251 | - // phpcs:enable |
|
251 | + // phpcs:enable |
|
252 | 252 | $this->width = $w; |
253 | 253 | } |
254 | 254 | |
255 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
255 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
256 | 256 | /** |
257 | 257 | * Set title |
258 | 258 | * |
@@ -261,11 +261,11 @@ discard block |
||
261 | 261 | */ |
262 | 262 | public function SetTitle($title) |
263 | 263 | { |
264 | - // phpcs:enable |
|
264 | + // phpcs:enable |
|
265 | 265 | $this->title = $title; |
266 | 266 | } |
267 | 267 | |
268 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
268 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
269 | 269 | /** |
270 | 270 | * Set data |
271 | 271 | * |
@@ -275,11 +275,11 @@ discard block |
||
275 | 275 | */ |
276 | 276 | public function SetData($data) |
277 | 277 | { |
278 | - // phpcs:enable |
|
278 | + // phpcs:enable |
|
279 | 279 | $this->data = $data; |
280 | 280 | } |
281 | 281 | |
282 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
282 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
283 | 283 | /** |
284 | 284 | * Set data color |
285 | 285 | * |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | */ |
289 | 289 | public function SetDataColor($datacolor) |
290 | 290 | { |
291 | - // phpcs:enable |
|
291 | + // phpcs:enable |
|
292 | 292 | $this->datacolor = $datacolor; |
293 | 293 | } |
294 | 294 | |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | $this->tooltipsTitles = $tooltipsTitles; |
349 | 349 | } |
350 | 350 | |
351 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
351 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
352 | 352 | /** |
353 | 353 | * Set type |
354 | 354 | * |
@@ -358,11 +358,11 @@ discard block |
||
358 | 358 | */ |
359 | 359 | public function SetType($type) |
360 | 360 | { |
361 | - // phpcs:enable |
|
361 | + // phpcs:enable |
|
362 | 362 | $this->type = $type; |
363 | 363 | } |
364 | 364 | |
365 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
365 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
366 | 366 | /** |
367 | 367 | * Set legend |
368 | 368 | * |
@@ -371,11 +371,11 @@ discard block |
||
371 | 371 | */ |
372 | 372 | public function SetLegend($legend) |
373 | 373 | { |
374 | - // phpcs:enable |
|
374 | + // phpcs:enable |
|
375 | 375 | $this->Legend = $legend; |
376 | 376 | } |
377 | 377 | |
378 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
378 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
379 | 379 | /** |
380 | 380 | * Set min width |
381 | 381 | * |
@@ -384,11 +384,11 @@ discard block |
||
384 | 384 | */ |
385 | 385 | public function SetLegendWidthMin($legendwidthmin) |
386 | 386 | { |
387 | - // phpcs:enable |
|
387 | + // phpcs:enable |
|
388 | 388 | $this->LegendWidthMin = $legendwidthmin; |
389 | 389 | } |
390 | 390 | |
391 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
391 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
392 | 392 | /** |
393 | 393 | * Set max value |
394 | 394 | * |
@@ -397,11 +397,11 @@ discard block |
||
397 | 397 | */ |
398 | 398 | public function SetMaxValue($max) |
399 | 399 | { |
400 | - // phpcs:enable |
|
400 | + // phpcs:enable |
|
401 | 401 | $this->MaxValue = $max; |
402 | 402 | } |
403 | 403 | |
404 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
404 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
405 | 405 | /** |
406 | 406 | * Get max value |
407 | 407 | * |
@@ -409,11 +409,11 @@ discard block |
||
409 | 409 | */ |
410 | 410 | public function GetMaxValue() |
411 | 411 | { |
412 | - // phpcs:enable |
|
412 | + // phpcs:enable |
|
413 | 413 | return $this->MaxValue; |
414 | 414 | } |
415 | 415 | |
416 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
416 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
417 | 417 | /** |
418 | 418 | * Set min value |
419 | 419 | * |
@@ -422,11 +422,11 @@ discard block |
||
422 | 422 | */ |
423 | 423 | public function SetMinValue($min) |
424 | 424 | { |
425 | - // phpcs:enable |
|
425 | + // phpcs:enable |
|
426 | 426 | $this->MinValue = $min; |
427 | 427 | } |
428 | 428 | |
429 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
429 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
430 | 430 | /** |
431 | 431 | * Get min value |
432 | 432 | * |
@@ -434,11 +434,11 @@ discard block |
||
434 | 434 | */ |
435 | 435 | public function GetMinValue() |
436 | 436 | { |
437 | - // phpcs:enable |
|
437 | + // phpcs:enable |
|
438 | 438 | return $this->MinValue; |
439 | 439 | } |
440 | 440 | |
441 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
441 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
442 | 442 | /** |
443 | 443 | * Set height |
444 | 444 | * |
@@ -447,11 +447,11 @@ discard block |
||
447 | 447 | */ |
448 | 448 | public function SetHeight($h) |
449 | 449 | { |
450 | - // phpcs:enable |
|
450 | + // phpcs:enable |
|
451 | 451 | $this->height = $h; |
452 | 452 | } |
453 | 453 | |
454 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
454 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
455 | 455 | /** |
456 | 456 | * Set shading |
457 | 457 | * |
@@ -460,11 +460,11 @@ discard block |
||
460 | 460 | */ |
461 | 461 | public function SetShading($s) |
462 | 462 | { |
463 | - // phpcs:enable |
|
463 | + // phpcs:enable |
|
464 | 464 | $this->SetShading = $s; |
465 | 465 | } |
466 | 466 | |
467 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
467 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
468 | 468 | /** |
469 | 469 | * Set shading |
470 | 470 | * |
@@ -473,11 +473,11 @@ discard block |
||
473 | 473 | */ |
474 | 474 | public function SetCssPrefix($s) |
475 | 475 | { |
476 | - // phpcs:enable |
|
476 | + // phpcs:enable |
|
477 | 477 | $this->cssprefix = $s; |
478 | 478 | } |
479 | 479 | |
480 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
480 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
481 | 481 | /** |
482 | 482 | * Reset bg color |
483 | 483 | * |
@@ -485,11 +485,11 @@ discard block |
||
485 | 485 | */ |
486 | 486 | public function ResetBgColor() |
487 | 487 | { |
488 | - // phpcs:enable |
|
488 | + // phpcs:enable |
|
489 | 489 | unset($this->bgcolor); |
490 | 490 | } |
491 | 491 | |
492 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
492 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
493 | 493 | /** |
494 | 494 | * Reset bgcolorgrid |
495 | 495 | * |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | */ |
498 | 498 | public function ResetBgColorGrid() |
499 | 499 | { |
500 | - // phpcs:enable |
|
500 | + // phpcs:enable |
|
501 | 501 | unset($this->bgcolorgrid); |
502 | 502 | } |
503 | 503 | |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | |
558 | 558 | |
559 | 559 | |
560 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
560 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
561 | 561 | /** |
562 | 562 | * Define background color of complete image |
563 | 563 | * |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | */ |
567 | 567 | public function SetBgColor($bg_color = array(255, 255, 255)) |
568 | 568 | { |
569 | - // phpcs:enable |
|
569 | + // phpcs:enable |
|
570 | 570 | global $theme_bgcolor, $theme_bgcoloronglet; |
571 | 571 | |
572 | 572 | if (!is_array($bg_color)) { |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | } |
582 | 582 | } |
583 | 583 | |
584 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
584 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
585 | 585 | /** |
586 | 586 | * Define background color of grid |
587 | 587 | * |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | */ |
591 | 591 | public function SetBgColorGrid($bg_colorgrid = array(255, 255, 255)) |
592 | 592 | { |
593 | - // phpcs:enable |
|
593 | + // phpcs:enable |
|
594 | 594 | global $theme_bgcolor, $theme_bgcoloronglet; |
595 | 595 | |
596 | 596 | if (!is_array($bg_colorgrid)) { |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | } |
606 | 606 | } |
607 | 607 | |
608 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
608 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
609 | 609 | /** |
610 | 610 | * Reset data color |
611 | 611 | * |
@@ -613,11 +613,11 @@ discard block |
||
613 | 613 | */ |
614 | 614 | public function ResetDataColor() |
615 | 615 | { |
616 | - // phpcs:enable |
|
616 | + // phpcs:enable |
|
617 | 617 | unset($this->datacolor); |
618 | 618 | } |
619 | 619 | |
620 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
620 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
621 | 621 | /** |
622 | 622 | * Get max value among all values of all series |
623 | 623 | * |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | */ |
626 | 626 | public function GetMaxValueInData() |
627 | 627 | { |
628 | - // phpcs:enable |
|
628 | + // phpcs:enable |
|
629 | 629 | if (!is_array($this->data)) { |
630 | 630 | return 0; |
631 | 631 | } |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | return $max; |
648 | 648 | } |
649 | 649 | |
650 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
650 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
651 | 651 | /** |
652 | 652 | * Return min value of all values of all series |
653 | 653 | * |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | */ |
656 | 656 | public function GetMinValueInData() |
657 | 657 | { |
658 | - // phpcs:enable |
|
658 | + // phpcs:enable |
|
659 | 659 | if (!is_array($this->data)) { |
660 | 660 | return 0; |
661 | 661 | } |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | return $min; |
678 | 678 | } |
679 | 679 | |
680 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
680 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
681 | 681 | /** |
682 | 682 | * Return max value of all data |
683 | 683 | * |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | */ |
686 | 686 | public function GetCeilMaxValue() |
687 | 687 | { |
688 | - // phpcs:enable |
|
688 | + // phpcs:enable |
|
689 | 689 | $max = $this->GetMaxValueInData(); |
690 | 690 | if ($max != 0) { |
691 | 691 | $max++; |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | return (int) $res; |
706 | 706 | } |
707 | 707 | |
708 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
708 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
709 | 709 | /** |
710 | 710 | * Return min value of all data |
711 | 711 | * |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | */ |
714 | 714 | public function GetFloorMinValue() |
715 | 715 | { |
716 | - // phpcs:enable |
|
716 | + // phpcs:enable |
|
717 | 717 | $min = $this->GetMinValueInData(); |
718 | 718 | if ($min == '') { |
719 | 719 | $min = 0; |
@@ -761,7 +761,7 @@ discard block |
||
761 | 761 | return call_user_func_array(array($this, $call), array($file, $fileurl)); |
762 | 762 | } |
763 | 763 | |
764 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
764 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
765 | 765 | /** |
766 | 766 | * Build a graph using JFlot library. Input when calling this method should be: |
767 | 767 | * $this->data = array(array(0=>'labelxA',1=>yA), array('labelxB',yB)); |
@@ -780,7 +780,7 @@ discard block |
||
780 | 780 | */ |
781 | 781 | private function draw_jflot($file, $fileurl) |
782 | 782 | { |
783 | - // phpcs:enable |
|
783 | + // phpcs:enable |
|
784 | 784 | global $langs; |
785 | 785 | |
786 | 786 | dol_syslog(get_class($this) . "::draw_jflot this->type=" . implode(',', $this->type) . " this->MaxValue=" . $this->MaxValue); |
@@ -1048,7 +1048,7 @@ discard block |
||
1048 | 1048 | } |
1049 | 1049 | |
1050 | 1050 | |
1051 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1051 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1052 | 1052 | /** |
1053 | 1053 | * Build a graph using Chart library. Input when calling this method should be: |
1054 | 1054 | * $this->data = array(array(0=>'labelxA',1=>yA), array('labelxB',yB)); |
@@ -1067,7 +1067,7 @@ discard block |
||
1067 | 1067 | */ |
1068 | 1068 | private function draw_chart($file, $fileurl) |
1069 | 1069 | { |
1070 | - // phpcs:enable |
|
1070 | + // phpcs:enable |
|
1071 | 1071 | global $langs; |
1072 | 1072 | |
1073 | 1073 | dol_syslog(get_class($this) . "::draw_chart this->type=" . implode(',', $this->type) . " this->MaxValue=" . $this->MaxValue); |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | foreach ($this->data as $x) { // Loop on each x |
638 | 638 | for ($i = 0; $i < $nbseries; $i++) { // Loop on each series |
639 | 639 | if (is_null($max)) { |
640 | - $max = $x[$i + 1]; // $i+1 because the index 0 is the legend |
|
640 | + $max = $x[$i + 1]; // $i+1 because the index 0 is the legend |
|
641 | 641 | } elseif ($max < $x[$i + 1]) { |
642 | 642 | $max = $x[$i + 1]; |
643 | 643 | } |
@@ -667,7 +667,7 @@ discard block |
||
667 | 667 | foreach ($this->data as $x) { // Loop on each x |
668 | 668 | for ($i = 0; $i < $nbseries; $i++) { // Loop on each series |
669 | 669 | if (is_null($min)) { |
670 | - $min = $x[$i + 1]; // $i+1 because the index 0 is the legend |
|
670 | + $min = $x[$i + 1]; // $i+1 because the index 0 is the legend |
|
671 | 671 | } elseif ($min > $x[$i + 1]) { |
672 | 672 | $min = $x[$i + 1]; |
673 | 673 | } |
@@ -1283,7 +1283,7 @@ discard block |
||
1283 | 1283 | if ($i > 0) { |
1284 | 1284 | $this->stringtoshow .= ', '; |
1285 | 1285 | } |
1286 | - $this->stringtoshow .= "'" . dol_escape_js(dol_trunc($val, 25)) . "'"; // Lower than 25 make some important label (that we can't shorten) to be truncated |
|
1286 | + $this->stringtoshow .= "'" . dol_escape_js(dol_trunc($val, 25)) . "'"; // Lower than 25 make some important label (that we can't shorten) to be truncated |
|
1287 | 1287 | $i++; |
1288 | 1288 | } |
1289 | 1289 |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | |
527 | 527 | |
528 | 528 | |
529 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
529 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
530 | 530 | /** |
531 | 531 | * Triggered when opened tag is found |
532 | 532 | * |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | */ |
538 | 538 | public function feed_start_element($p, $element, $attrs) |
539 | 539 | { |
540 | - // phpcs:enable |
|
540 | + // phpcs:enable |
|
541 | 541 | $el = $element = strtolower($element); |
542 | 542 | $attrs = array_change_key_case($attrs, CASE_LOWER); |
543 | 543 | |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | } |
616 | 616 | |
617 | 617 | |
618 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
618 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
619 | 619 | /** |
620 | 620 | * Triggered when CDATA is found |
621 | 621 | * |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | */ |
626 | 626 | public function feed_cdata($p, $text) |
627 | 627 | { |
628 | - // phpcs:enable |
|
628 | + // phpcs:enable |
|
629 | 629 | if ($this->_format == 'atom' and $this->incontent) { |
630 | 630 | $this->append_content($text); |
631 | 631 | } else { |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | } |
635 | 635 | } |
636 | 636 | |
637 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
637 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
638 | 638 | /** |
639 | 639 | * Triggered when closed tag is found |
640 | 640 | * |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | */ |
645 | 645 | public function feed_end_element($p, $el) |
646 | 646 | { |
647 | - // phpcs:enable |
|
647 | + // phpcs:enable |
|
648 | 648 | $el = strtolower($el); |
649 | 649 | |
650 | 650 | if ($el == 'item' or $el == 'entry') { |
@@ -693,7 +693,7 @@ discard block |
||
693 | 693 | return $str1; |
694 | 694 | } |
695 | 695 | |
696 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
696 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
697 | 697 | /** |
698 | 698 | * Enter description here ... |
699 | 699 | * |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | */ |
703 | 703 | public function append_content($text) |
704 | 704 | { |
705 | - // phpcs:enable |
|
705 | + // phpcs:enable |
|
706 | 706 | if (!empty($this->initem)) { |
707 | 707 | $this->concat($this->current_item[$this->incontent], $text); |
708 | 708 | } elseif (!empty($this->inchannel)) { |