@@ -236,8 +236,8 @@ discard block |
||
236 | 236 | |
237 | 237 | // Properties for links to other objects |
238 | 238 | /** |
239 | - * @var int socpeople id linked to action |
|
240 | - */ |
|
239 | + * @var int socpeople id linked to action |
|
240 | + */ |
|
241 | 241 | public $contact_id; // Id of record |
242 | 242 | /** |
243 | 243 | * @var Societe|null Company linked to action (optional) |
@@ -320,12 +320,12 @@ discard block |
||
320 | 320 | */ |
321 | 321 | public $num_vote; /* A string YYYYMMDDHHMMSS shared by allevent of same series */ |
322 | 322 | /** |
323 | - * @var int if event is paid |
|
324 | - */ |
|
323 | + * @var int if event is paid |
|
324 | + */ |
|
325 | 325 | public $event_paid; /* Rule of recurring */ |
326 | 326 | /** |
327 | - * @var int status use but Event organisation module |
|
328 | - */ |
|
327 | + * @var int status use but Event organisation module |
|
328 | + */ |
|
329 | 329 | public $status; /* Repeat until this date */ |
330 | 330 | /** |
331 | 331 | * Properties to manage the recurring events |
@@ -378,9 +378,9 @@ discard block |
||
378 | 378 | } |
379 | 379 | |
380 | 380 | return $line; |
381 | - } |
|
381 | + } |
|
382 | 382 | |
383 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
383 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
384 | 384 | |
385 | 385 | /** |
386 | 386 | * Select a database |
@@ -392,8 +392,8 @@ discard block |
||
392 | 392 | * @return bool true if OK, false if KO |
393 | 393 | */ |
394 | 394 | public function select_db($database) |
395 | - { |
|
396 | - // phpcs:enable |
|
395 | + { |
|
396 | + // phpcs:enable |
|
397 | 397 | if ($database == $this->database_name) { |
398 | 398 | return true; |
399 | 399 | } else { |
@@ -594,8 +594,8 @@ discard block |
||
594 | 594 | } |
595 | 595 | |
596 | 596 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
597 | - /** |
|
598 | - * Returns the current line (as an object) for the resultset cursor |
|
597 | + /** |
|
598 | + * Returns the current line (as an object) for the resultset cursor |
|
599 | 599 | * |
600 | 600 | * @param resource $resultset Curseur de la requete voulue |
601 | 601 | * @return false|object Object result line or false if KO or end of cursor |
@@ -611,9 +611,9 @@ discard block |
||
611 | 611 | } |
612 | 612 | |
613 | 613 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
614 | - /** |
|
615 | - * Return datas as an array |
|
616 | - * |
|
614 | + /** |
|
615 | + * Return datas as an array |
|
616 | + * |
|
617 | 617 | * @param resource $resultset Resultset of request |
618 | 618 | * @return false|array Array |
619 | 619 | */ |
@@ -628,9 +628,9 @@ discard block |
||
628 | 628 | } |
629 | 629 | |
630 | 630 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
631 | - /** |
|
632 | - * Return datas as an array |
|
633 | - * |
|
631 | + /** |
|
632 | + * Return datas as an array |
|
633 | + * |
|
634 | 634 | * @param resource $resultset Resultset of request |
635 | 635 | * @return false|array Array |
636 | 636 | */ |
@@ -645,8 +645,8 @@ discard block |
||
645 | 645 | } |
646 | 646 | |
647 | 647 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
648 | - /** |
|
649 | - * Return number of lines for result of a SELECT |
|
648 | + /** |
|
649 | + * Return number of lines for result of a SELECT |
|
650 | 650 | * |
651 | 651 | * @param resource $resultset Resulset of requests |
652 | 652 | * @return int Nb of lines, -1 on error |
@@ -663,8 +663,8 @@ discard block |
||
663 | 663 | } |
664 | 664 | |
665 | 665 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
666 | - /** |
|
667 | - * Return the number of lines in the result of a request INSERT, DELETE or UPDATE |
|
666 | + /** |
|
667 | + * Return the number of lines in the result of a request INSERT, DELETE or UPDATE |
|
668 | 668 | * |
669 | 669 | * @param resource $resultset Result set of request |
670 | 670 | * @return int Nb of lines |
@@ -854,11 +854,11 @@ discard block |
||
854 | 854 | } |
855 | 855 | |
856 | 856 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
857 | - /** |
|
858 | - * Get last ID after an insert INSERT |
|
859 | - * |
|
860 | - * @param string $tab Table name concerned by insert. Ne sert pas sous MySql mais requis pour compatibilite |
|
861 | - * avec PostgreSQL |
|
857 | + /** |
|
858 | + * Get last ID after an insert INSERT |
|
859 | + * |
|
860 | + * @param string $tab Table name concerned by insert. Ne sert pas sous MySql mais requis pour compatibilite |
|
861 | + * avec PostgreSQL |
|
862 | 862 | * @param string $fieldid Field name |
863 | 863 | * @return string Id of row |
864 | 864 | */ |
@@ -922,10 +922,10 @@ discard block |
||
922 | 922 | |
923 | 923 | |
924 | 924 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
925 | - /** |
|
926 | - * Return connection ID |
|
927 | - * |
|
928 | - * @return string Id connection |
|
925 | + /** |
|
926 | + * Return connection ID |
|
927 | + * |
|
928 | + * @return string Id connection |
|
929 | 929 | */ |
930 | 930 | public function DDLGetConnectId() |
931 | 931 | { |
@@ -936,9 +936,9 @@ discard block |
||
936 | 936 | |
937 | 937 | |
938 | 938 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
939 | - /** |
|
940 | - * Create a new database |
|
941 | - * Do not use function xxx_create_db (xxx=mysql, ...) as they are deprecated |
|
939 | + /** |
|
940 | + * Create a new database |
|
941 | + * Do not use function xxx_create_db (xxx=mysql, ...) as they are deprecated |
|
942 | 942 | * We force to create database with charset this->forcecharset and collate this->forcecollate |
943 | 943 | * |
944 | 944 | * @param string $database Database name to create |
@@ -968,10 +968,10 @@ discard block |
||
968 | 968 | } |
969 | 969 | |
970 | 970 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
971 | - /** |
|
972 | - * List tables into a database |
|
973 | - * |
|
974 | - * @param string $database Name of database |
|
971 | + /** |
|
972 | + * List tables into a database |
|
973 | + * |
|
974 | + * @param string $database Name of database |
|
975 | 975 | * @param string $table Name of table filter ('xxx%') |
976 | 976 | * @return array List of tables in an array |
977 | 977 | */ |
@@ -981,7 +981,7 @@ discard block |
||
981 | 981 | $listtables = []; |
982 | 982 | |
983 | 983 | $escapedlike = ''; |
984 | - if ($table) { |
|
984 | + if ($table) { |
|
985 | 985 | $tmptable = preg_replace('/[^a-z0-9\.\-\_%]/i', '', $table); |
986 | 986 | |
987 | 987 | $escapedlike = " AND table_name LIKE '" . $this->escape($tmptable) . "'"; |
@@ -996,10 +996,10 @@ discard block |
||
996 | 996 | } |
997 | 997 | |
998 | 998 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
999 | - /** |
|
1000 | - * List tables into a database |
|
1001 | - * |
|
1002 | - * @param string $database Name of database |
|
999 | + /** |
|
1000 | + * List tables into a database |
|
1001 | + * |
|
1002 | + * @param string $database Name of database |
|
1003 | 1003 | * @param string $table Name of table filter ('xxx%') |
1004 | 1004 | * @return array List of tables in an array |
1005 | 1005 | */ |
@@ -1010,7 +1010,7 @@ discard block |
||
1010 | 1010 | |
1011 | 1011 | $escapedlike = ''; |
1012 | 1012 | if ($table) { |
1013 | - $tmptable = preg_replace('/[^a-z0-9\.\-\_%]/i', '', $table); |
|
1013 | + $tmptable = preg_replace('/[^a-z0-9\.\-\_%]/i', '', $table); |
|
1014 | 1014 | |
1015 | 1015 | $escapedlike = " AND table_name LIKE '" . $this->escape($tmptable). "'"; |
1016 | 1016 | } |
@@ -1024,10 +1024,10 @@ discard block |
||
1024 | 1024 | } |
1025 | 1025 | |
1026 | 1026 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
1027 | - /** |
|
1028 | - * List information of columns into a table. |
|
1029 | - * |
|
1030 | - * @param string $table Name of table |
|
1027 | + /** |
|
1028 | + * List information of columns into a table. |
|
1029 | + * |
|
1030 | + * @param string $table Name of table |
|
1031 | 1031 | * @return array Tableau des information des champs de la table |
1032 | 1032 | * |
1033 | 1033 | */ |
@@ -1064,13 +1064,13 @@ discard block |
||
1064 | 1064 | |
1065 | 1065 | |
1066 | 1066 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
1067 | - /** |
|
1068 | - * Create a table into database |
|
1069 | - * |
|
1070 | - * @param string $table Nom |
|
1071 | - * de |
|
1072 | - * la |
|
1073 | - * table |
|
1067 | + /** |
|
1068 | + * Create a table into database |
|
1069 | + * |
|
1070 | + * @param string $table Nom |
|
1071 | + * de |
|
1072 | + * la |
|
1073 | + * table |
|
1074 | 1074 | * @param array<string,array{type:string,label:string,enabled:int<0,2>|string,position:int,notnull?:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,csslist?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields Tableau |
1075 | 1075 | * associatif |
1076 | 1076 | * [nom |
@@ -1125,7 +1125,7 @@ discard block |
||
1125 | 1125 | // @TODO: $fulltext_keys parameter is unused |
1126 | 1126 | |
1127 | 1127 | $sqlk = array(); |
1128 | - $sqluq = []; |
|
1128 | + $sqluq = []; |
|
1129 | 1129 | |
1130 | 1130 | // Keys found into the array $fields: type,value,attribute,null,default,extra |
1131 | 1131 | // ex. : $fields['rowid'] = array( |
@@ -1202,8 +1202,8 @@ discard block |
||
1202 | 1202 | |
1203 | 1203 | /** |
1204 | 1204 | * Drop a table into database |
1205 | - * |
|
1206 | - * @param string $table Name of table |
|
1205 | + * |
|
1206 | + * @param string $table Name of table |
|
1207 | 1207 | * @return int Return integer <0 if KO, >=0 if OK |
1208 | 1208 | */ |
1209 | 1209 | public function DDLDropTable($table) |
@@ -1224,8 +1224,8 @@ discard block |
||
1224 | 1224 | |
1225 | 1225 | /** |
1226 | 1226 | * Return a pointer of line with description of a table or field |
1227 | - * |
|
1228 | - * @param string $table Name of table |
|
1227 | + * |
|
1228 | + * @param string $table Name of table |
|
1229 | 1229 | * @param string $field Optionnel : Name of field if we want description of field |
1230 | 1230 | * @return false|resource Resultset x (x->attname) |
1231 | 1231 | */ |
@@ -1247,8 +1247,8 @@ discard block |
||
1247 | 1247 | |
1248 | 1248 | /** |
1249 | 1249 | * Create a new field into table |
1250 | - * |
|
1251 | - * @param string $table Name of table |
|
1250 | + * |
|
1251 | + * @param string $table Name of table |
|
1252 | 1252 | * @param string $field_name Name of field to add |
1253 | 1253 | * @param string $field_desc Tableau associatif de description du champ a inserer[nom du parameter][valeur du |
1254 | 1254 | * parameter] |
@@ -1298,13 +1298,13 @@ discard block |
||
1298 | 1298 | |
1299 | 1299 | /** |
1300 | 1300 | * Update format of a field into a table |
1301 | - * |
|
1302 | - * @param string $table Name of table |
|
1303 | - * @param string $field_name Name |
|
1304 | - * of |
|
1305 | - * field |
|
1306 | - * to |
|
1307 | - * modify |
|
1301 | + * |
|
1302 | + * @param string $table Name of table |
|
1303 | + * @param string $field_name Name |
|
1304 | + * of |
|
1305 | + * field |
|
1306 | + * to |
|
1307 | + * modify |
|
1308 | 1308 | * @param array{type:string,label:string,enabled:int<0,2>|string,position:int,notnull?:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,csslist?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string} $field_desc Array |
1309 | 1309 | * with |
1310 | 1310 | * description |
@@ -1355,8 +1355,8 @@ discard block |
||
1355 | 1355 | /** |
1356 | 1356 | * Drop a field from table |
1357 | 1357 | * |
1358 | - * @param string $table Name of table |
|
1359 | - * @param string $field_name Name of field to drop |
|
1358 | + * @param string $table Name of table |
|
1359 | + * @param string $field_name Name of field to drop |
|
1360 | 1360 | * @return int Return integer <0 if KO, >0 if OK |
1361 | 1361 | */ |
1362 | 1362 | public function DDLDropField($table, $field_name) |
@@ -290,9 +290,9 @@ discard block |
||
290 | 290 | } |
291 | 291 | |
292 | 292 | return $line; |
293 | - } |
|
293 | + } |
|
294 | 294 | |
295 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
295 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
296 | 296 | |
297 | 297 | /** |
298 | 298 | * Select a database |
@@ -302,8 +302,8 @@ discard block |
||
302 | 302 | * @return boolean true if OK, false if KO |
303 | 303 | */ |
304 | 304 | public function select_db($database) |
305 | - { |
|
306 | - // phpcs:enable |
|
305 | + { |
|
306 | + // phpcs:enable |
|
307 | 307 | dol_syslog(get_class($this) . "::select_db database=" . $database, LOG_DEBUG); |
308 | 308 | // sqlite_select_db() does not exist |
309 | 309 | //return sqlite_select_db($this->db,$database); |
@@ -513,9 +513,9 @@ discard block |
||
513 | 513 | } |
514 | 514 | |
515 | 515 | return $ret; |
516 | - } |
|
516 | + } |
|
517 | 517 | |
518 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
518 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
519 | 519 | |
520 | 520 | /** |
521 | 521 | * Returns the current line (as an object) for the resultset cursor |
@@ -525,8 +525,8 @@ discard block |
||
525 | 525 | * @return false|object Object result line or false if KO or end of cursor |
526 | 526 | */ |
527 | 527 | public function fetch_object($resultset) |
528 | - { |
|
529 | - // phpcs:enable |
|
528 | + { |
|
529 | + // phpcs:enable |
|
530 | 530 | // Si le resultset n'est pas fourni, on prend le dernier utilise sur cette connection |
531 | 531 | if (!is_object($resultset)) { |
532 | 532 | $resultset = $this->_results; |
@@ -537,10 +537,10 @@ discard block |
||
537 | 537 | return (object) $ret; |
538 | 538 | } |
539 | 539 | return false; |
540 | - } |
|
540 | + } |
|
541 | 541 | |
542 | 542 | |
543 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
543 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
544 | 544 | |
545 | 545 | /** |
546 | 546 | * Return datas as an array |
@@ -550,8 +550,8 @@ discard block |
||
550 | 550 | * @return false|array Array or false if KO or end of cursor |
551 | 551 | */ |
552 | 552 | public function fetch_array($resultset) |
553 | - { |
|
554 | - // phpcs:enable |
|
553 | + { |
|
554 | + // phpcs:enable |
|
555 | 555 | // If resultset not provided, we take the last used by connection |
556 | 556 | if (!is_object($resultset)) { |
557 | 557 | $resultset = $this->_results; |
@@ -559,9 +559,9 @@ discard block |
||
559 | 559 | //return $resultset->fetch(PDO::FETCH_ASSOC); |
560 | 560 | $ret = $resultset->fetchArray(SQLITE3_ASSOC); |
561 | 561 | return $ret; |
562 | - } |
|
562 | + } |
|
563 | 563 | |
564 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
564 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
565 | 565 | |
566 | 566 | /** |
567 | 567 | * Return datas as an array |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | * @return false|array Array or false if KO or end of cursor |
572 | 572 | */ |
573 | 573 | public function fetch_row($resultset) |
574 | - { |
|
574 | + { |
|
575 | 575 | // phpcs:enable |
576 | 576 | // If resultset not provided, we take the last used by connection |
577 | 577 | if (!is_bool($resultset)) { |
@@ -582,10 +582,10 @@ discard block |
||
582 | 582 | } else { |
583 | 583 | // si le curseur est un boolean on retourne la valeur 0 |
584 | 584 | return false; |
585 | - } |
|
586 | - } |
|
585 | + } |
|
586 | + } |
|
587 | 587 | |
588 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
588 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
589 | 589 | |
590 | 590 | /** |
591 | 591 | * Return number of lines for result of a SELECT |
@@ -606,11 +606,11 @@ discard block |
||
606 | 606 | } |
607 | 607 | if (preg_match("/^SELECT/i", $resultset->queryString)) { |
608 | 608 | return $this->db->querySingle("SELECT count(*) FROM (" . $resultset->queryString . ") q"); |
609 | - } |
|
610 | - return 0; |
|
611 | - } |
|
609 | + } |
|
610 | + return 0; |
|
611 | + } |
|
612 | 612 | |
613 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
613 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
614 | 614 | |
615 | 615 | /** |
616 | 616 | * Return number of lines for result of a SELECT |
@@ -761,11 +761,11 @@ discard block |
||
761 | 761 | // Si il y a eu echec de connection, $this->db n'est pas valide pour sqlite_error. |
762 | 762 | return 'Not connected. Check setup parameters in conf/conf.php file and your sqlite version'; |
763 | 763 | } else { |
764 | - return $this->error; |
|
765 | - } |
|
766 | - } |
|
764 | + return $this->error; |
|
765 | + } |
|
766 | + } |
|
767 | 767 | |
768 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
768 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
769 | 769 | |
770 | 770 | /** |
771 | 771 | * Get last ID after an insert INSERT |
@@ -839,28 +839,28 @@ discard block |
||
839 | 839 | $return = 'AES_DECRYPT(' . $value . ',\'' . $cryptKey . '\')'; |
840 | 840 | } elseif ($cryptType == 1) { |
841 | 841 | $return = 'DES_DECRYPT(' . $value . ',\'' . $cryptKey.'\')'; |
842 | - } |
|
843 | - } |
|
842 | + } |
|
843 | + } |
|
844 | 844 | |
845 | - return $return; |
|
846 | - } |
|
845 | + return $return; |
|
846 | + } |
|
847 | 847 | |
848 | 848 | |
849 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
849 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
850 | 850 | |
851 | 851 | /** |
852 | 852 | * Return connection ID |
853 | 853 | * |
854 | 854 | * @return string Id connection |
855 | - */ |
|
856 | - public function DDLGetConnectId() |
|
857 | - { |
|
858 | - // phpcs:enable |
|
859 | - return '?'; |
|
860 | - } |
|
855 | + */ |
|
856 | + public function DDLGetConnectId() |
|
857 | + { |
|
858 | + // phpcs:enable |
|
859 | + return '?'; |
|
860 | + } |
|
861 | 861 | |
862 | 862 | |
863 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
863 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
864 | 864 | |
865 | 865 | /** |
866 | 866 | * Create a new database |
@@ -889,12 +889,12 @@ discard block |
||
889 | 889 | $sql .= " DEFAULT CHARACTER SET " . $this->escape($charset) . " DEFAULT COLLATE " . $this->escape($collation); |
890 | 890 | |
891 | 891 | dol_syslog($sql, LOG_DEBUG); |
892 | - $ret = $this->query($sql); |
|
892 | + $ret = $this->query($sql); |
|
893 | 893 | |
894 | - return $ret; |
|
895 | - } |
|
894 | + return $ret; |
|
895 | + } |
|
896 | 896 | |
897 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
897 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
898 | 898 | |
899 | 899 | /** |
900 | 900 | * List tables into a database |
@@ -923,12 +923,12 @@ discard block |
||
923 | 923 | if ($result) { |
924 | 924 | while ($row = $this->fetch_row($result)) { |
925 | 925 | $listtables[] = $row[0]; |
926 | - } |
|
927 | - } |
|
928 | - return $listtables; |
|
929 | - } |
|
926 | + } |
|
927 | + } |
|
928 | + return $listtables; |
|
929 | + } |
|
930 | 930 | |
931 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
931 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
932 | 932 | |
933 | 933 | /** |
934 | 934 | * List tables into a database with table type |
@@ -957,12 +957,12 @@ discard block |
||
957 | 957 | if ($result) { |
958 | 958 | while ($row = $this->fetch_row($result)) { |
959 | 959 | $listtables[] = $row; |
960 | - } |
|
961 | - } |
|
962 | - return $listtables; |
|
963 | - } |
|
960 | + } |
|
961 | + } |
|
962 | + return $listtables; |
|
963 | + } |
|
964 | 964 | |
965 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
965 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
966 | 966 | |
967 | 967 | /** |
968 | 968 | * List information of columns into a table. |
@@ -970,8 +970,8 @@ discard block |
||
970 | 970 | * @param string $table Name of table |
971 | 971 | * @return array Tableau des information des champs de la table |
972 | 972 | * TODO modify for sqlite |
973 | - */ |
|
974 | - public function DDLInfoTable($table) |
|
973 | + */ |
|
974 | + public function DDLInfoTable($table) |
|
975 | 975 | { |
976 | 976 | // phpcs:enable |
977 | 977 | $infotables = []; |
@@ -985,12 +985,12 @@ discard block |
||
985 | 985 | if ($result) { |
986 | 986 | while ($row = $this->fetch_row($result)) { |
987 | 987 | $infotables[] = $row; |
988 | - } |
|
989 | - } |
|
990 | - return $infotables; |
|
991 | - } |
|
988 | + } |
|
989 | + } |
|
990 | + return $infotables; |
|
991 | + } |
|
992 | 992 | |
993 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
993 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
994 | 994 | |
995 | 995 | /** |
996 | 996 | * Create a table into database |
@@ -1126,11 +1126,11 @@ discard block |
||
1126 | 1126 | if (!$this->query($sql)) { |
1127 | 1127 | return -1; |
1128 | 1128 | } else { |
1129 | - return 1; |
|
1130 | - } |
|
1131 | - } |
|
1129 | + return 1; |
|
1130 | + } |
|
1131 | + } |
|
1132 | 1132 | |
1133 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1133 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1134 | 1134 | |
1135 | 1135 | /** |
1136 | 1136 | * Drop a table into database |
@@ -1149,11 +1149,11 @@ discard block |
||
1149 | 1149 | if (!$this->query($sql)) { |
1150 | 1150 | return -1; |
1151 | 1151 | } else { |
1152 | - return 1; |
|
1153 | - } |
|
1154 | - } |
|
1152 | + return 1; |
|
1153 | + } |
|
1154 | + } |
|
1155 | 1155 | |
1156 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1156 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1157 | 1157 | |
1158 | 1158 | /** |
1159 | 1159 | * Return a pointer of line with description of a table or field |
@@ -1170,10 +1170,10 @@ discard block |
||
1170 | 1170 | |
1171 | 1171 | dol_syslog(get_class($this) . "::DDLDescTable " . $sql, LOG_DEBUG); |
1172 | 1172 | $this->_results = $this->query($sql); |
1173 | - return $this->_results; |
|
1174 | - } |
|
1173 | + return $this->_results; |
|
1174 | + } |
|
1175 | 1175 | |
1176 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1176 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1177 | 1177 | |
1178 | 1178 | /** |
1179 | 1179 | * Create a new field into table |
@@ -1237,11 +1237,11 @@ discard block |
||
1237 | 1237 | dol_syslog(get_class($this) . "::DDLAddField " . $sql, LOG_DEBUG); |
1238 | 1238 | if (!$this->query($sql)) { |
1239 | 1239 | return -1; |
1240 | - } |
|
1241 | - return 1; |
|
1242 | - } |
|
1240 | + } |
|
1241 | + return 1; |
|
1242 | + } |
|
1243 | 1243 | |
1244 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1244 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1245 | 1245 | |
1246 | 1246 | /** |
1247 | 1247 | * Update format of a field into a table |
@@ -1275,11 +1275,11 @@ discard block |
||
1275 | 1275 | dol_syslog(get_class($this) . "::DDLUpdateField " . $sql, LOG_DEBUG); |
1276 | 1276 | if (!$this->query($sql)) { |
1277 | 1277 | return -1; |
1278 | - } |
|
1279 | - return 1; |
|
1280 | - } |
|
1278 | + } |
|
1279 | + return 1; |
|
1280 | + } |
|
1281 | 1281 | |
1282 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1282 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1283 | 1283 | |
1284 | 1284 | /** |
1285 | 1285 | * Drop a field from table |
@@ -1297,13 +1297,13 @@ discard block |
||
1297 | 1297 | $sql = "ALTER TABLE " . $this->sanitize($table) . " DROP COLUMN `" . $this->sanitize($tmp_field_name) . "`"; |
1298 | 1298 | if (!$this->query($sql)) { |
1299 | 1299 | $this->error = $this->lasterror(); |
1300 | - return -1; |
|
1301 | - } |
|
1302 | - return 1; |
|
1303 | - } |
|
1300 | + return -1; |
|
1301 | + } |
|
1302 | + return 1; |
|
1303 | + } |
|
1304 | 1304 | |
1305 | 1305 | |
1306 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1306 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1307 | 1307 | |
1308 | 1308 | /** |
1309 | 1309 | * Create a user and privileges to connect to database (even if database does not exists yet) |
@@ -1532,11 +1532,11 @@ discard block |
||
1532 | 1532 | } |
1533 | 1533 | if (!$this->db->createFunction($name, $localname, $arg_count)) { |
1534 | 1534 | $this->error = "unable to create custom function '$name'"; |
1535 | - } |
|
1536 | - } |
|
1537 | - } |
|
1535 | + } |
|
1536 | + } |
|
1537 | + } |
|
1538 | 1538 | |
1539 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1539 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1540 | 1540 | |
1541 | 1541 | /** |
1542 | 1542 | * calc_daynr |
@@ -1562,9 +1562,9 @@ discard block |
||
1562 | 1562 | } |
1563 | 1563 | $temp = floor(($y / 100 + 1) * 3 / 4); |
1564 | 1564 | return (int) ($num + floor($y / 4) - $temp); |
1565 | - } |
|
1565 | + } |
|
1566 | 1566 | |
1567 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1567 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1568 | 1568 | |
1569 | 1569 | /** |
1570 | 1570 | * calc_weekday |
@@ -1578,10 +1578,10 @@ discard block |
||
1578 | 1578 | { |
1579 | 1579 | // phpcs:enable |
1580 | 1580 | $ret = (int) floor(($daynr + 5 + ($sunday_first_day_of_week ? 1 : 0)) % 7); |
1581 | - return $ret; |
|
1582 | - } |
|
1581 | + return $ret; |
|
1582 | + } |
|
1583 | 1583 | |
1584 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1584 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1585 | 1585 | |
1586 | 1586 | /** |
1587 | 1587 | * calc_days_in_year |
@@ -1594,9 +1594,9 @@ discard block |
||
1594 | 1594 | { |
1595 | 1595 | // phpcs:enable |
1596 | 1596 | return (($year & 3) == 0 && ($year % 100 || ($year % 400 == 0 && $year)) ? 366 : 365); |
1597 | - } |
|
1597 | + } |
|
1598 | 1598 | |
1599 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1599 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1600 | 1600 | |
1601 | 1601 | /** |
1602 | 1602 | * calc_week |
@@ -1643,7 +1643,7 @@ discard block |
||
1643 | 1643 | $calc_year++; |
1644 | 1644 | return 1; |
1645 | 1645 | } |
1646 | - } |
|
1647 | - return (int) floor($days / 7 + 1); |
|
1648 | - } |
|
1646 | + } |
|
1647 | + return (int) floor($days / 7 + 1); |
|
1648 | + } |
|
1649 | 1649 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function stddevPop($nameoffield); |
49 | 49 | |
50 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
50 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Return datas as an array |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @return array Array |
60 | 60 | */ |
61 | 61 | public function fetch_row($resultset); |
62 | - // phpcs:enable |
|
62 | + // phpcs:enable |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Convert (by PHP) a GM Timestamp date into a string date with PHP server TZ to insert into a date field. |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function begin($textinlog = ''); |
89 | 89 | |
90 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
90 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Create a new database |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public function convertSQLFromMysql($line, $type = 'ddl'); |
123 | 123 | |
124 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
124 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
125 | 125 | |
126 | 126 | /** |
127 | 127 | * Return the number of lines in the result of a request INSERT, DELETE or UPDATE |
@@ -138,10 +138,10 @@ discard block |
||
138 | 138 | * Return description of last error |
139 | 139 | * |
140 | 140 | * @return string Error text |
141 | - */ |
|
142 | - public function error(); |
|
141 | + */ |
|
142 | + public function error(); |
|
143 | 143 | |
144 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
144 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
145 | 145 | |
146 | 146 | /** |
147 | 147 | * List tables into a database |
@@ -152,9 +152,9 @@ discard block |
||
152 | 152 | * @return array List of tables in an array |
153 | 153 | */ |
154 | 154 | public function DDLListTables($database, $table = ''); |
155 | - // phpcs:enable |
|
155 | + // phpcs:enable |
|
156 | 156 | |
157 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
157 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
158 | 158 | /** |
159 | 159 | * List tables into a database with table type |
160 | 160 | * |
@@ -188,10 +188,10 @@ discard block |
||
188 | 188 | * |
189 | 189 | * @param string $value Value to decrypt |
190 | 190 | * @return string Decrypted value if used |
191 | - */ |
|
192 | - public function decrypt($value); |
|
191 | + */ |
|
192 | + public function decrypt($value); |
|
193 | 193 | |
194 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
194 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
195 | 195 | |
196 | 196 | /** |
197 | 197 | * Return datas as an array |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * @param resource $resultset Resultset of request |
200 | 200 | * @return array Array |
201 | 201 | */ |
202 | - public function fetch_array($resultset); |
|
202 | + public function fetch_array($resultset); |
|
203 | 203 | // phpcs:enable |
204 | 204 | |
205 | 205 | /** |
@@ -233,9 +233,9 @@ discard block |
||
233 | 233 | * @param string $stringtosanitize String to escape |
234 | 234 | * @return string String escaped |
235 | 235 | */ |
236 | - public function sanitize($stringtosanitize); |
|
236 | + public function sanitize($stringtosanitize); |
|
237 | 237 | |
238 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
238 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
239 | 239 | |
240 | 240 | /** |
241 | 241 | * Get last ID after an insert INSERT |
@@ -323,10 +323,10 @@ discard block |
||
323 | 323 | * Return collation used in database |
324 | 324 | * |
325 | 325 | * @return string Collation value |
326 | - */ |
|
327 | - public function getDefaultCollationDatabase(); |
|
326 | + */ |
|
327 | + public function getDefaultCollationDatabase(); |
|
328 | 328 | |
329 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
329 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
330 | 330 | |
331 | 331 | /** |
332 | 332 | * Return number of lines for result of a SELECT |
@@ -356,10 +356,10 @@ discard block |
||
356 | 356 | * Return generic error code of last operation. |
357 | 357 | * |
358 | 358 | * @return string Error code (Examples: DB_ERROR_TABLE_ALREADY_EXISTS, DB_ERROR_RECORD_ALREADY_EXISTS...) |
359 | - */ |
|
360 | - public function errno(); |
|
359 | + */ |
|
360 | + public function errno(); |
|
361 | 361 | |
362 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
362 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
363 | 363 | |
364 | 364 | /** |
365 | 365 | * Create a table into database |
@@ -418,9 +418,9 @@ discard block |
||
418 | 418 | * @return int Return integer <0 if KO, >=0 if OK |
419 | 419 | */ |
420 | 420 | public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_keys = null, $fulltext_keys = null, $keys = null); |
421 | - // phpcs:enable |
|
421 | + // phpcs:enable |
|
422 | 422 | |
423 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
423 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
424 | 424 | /** |
425 | 425 | * Drop a table into database |
426 | 426 | * |
@@ -434,10 +434,10 @@ discard block |
||
434 | 434 | * Return list of available charset that can be used to store data in database |
435 | 435 | * |
436 | 436 | * @return array List of Charset |
437 | - */ |
|
438 | - public function getListOfCharacterSet(); |
|
437 | + */ |
|
438 | + public function getListOfCharacterSet(); |
|
439 | 439 | |
440 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
440 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
441 | 441 | |
442 | 442 | /** |
443 | 443 | * Create a new field into table |
@@ -471,20 +471,20 @@ discard block |
||
471 | 471 | * @return int Return integer <0 if KO, >0 if OK |
472 | 472 | */ |
473 | 473 | public function DDLAddField($table, $field_name, $field_desc, $field_position = ""); |
474 | - // phpcs:enable |
|
474 | + // phpcs:enable |
|
475 | 475 | |
476 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
476 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
477 | 477 | /** |
478 | 478 | * Drop a field from table |
479 | 479 | * |
480 | 480 | * @param string $table Name of table |
481 | 481 | * @param string $field_name Name of field to drop |
482 | 482 | * @return int Return integer <0 if KO, >0 if OK |
483 | - */ |
|
484 | - public function DDLDropField($table, $field_name); |
|
485 | - // phpcs:enable |
|
483 | + */ |
|
484 | + public function DDLDropField($table, $field_name); |
|
485 | + // phpcs:enable |
|
486 | 486 | |
487 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
487 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
488 | 488 | /** |
489 | 489 | * Update format of a field into a table |
490 | 490 | * |
@@ -504,17 +504,17 @@ discard block |
||
504 | 504 | * format |
505 | 505 | * @return int Return integer <0 if KO, >0 if OK |
506 | 506 | */ |
507 | - public function DDLUpdateField($table, $field_name, $field_desc); |
|
507 | + public function DDLUpdateField($table, $field_name, $field_desc); |
|
508 | 508 | // phpcs:enable |
509 | 509 | |
510 | 510 | /** |
511 | 511 | * Return list of available collation that can be used for database |
512 | 512 | * |
513 | 513 | * @return array List of Collation |
514 | - */ |
|
515 | - public function getListOfCollation(); |
|
514 | + */ |
|
515 | + public function getListOfCollation(); |
|
516 | 516 | |
517 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
517 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
518 | 518 | |
519 | 519 | /** |
520 | 520 | * Return a pointer of line with description of a table or field |
@@ -522,8 +522,8 @@ discard block |
||
522 | 522 | * @param string $table Name of table |
523 | 523 | * @param string $field Optional : Name of field if we want description of field |
524 | 524 | * @return resource Resource |
525 | - */ |
|
526 | - public function DDLDescTable($table, $field = ""); |
|
525 | + */ |
|
526 | + public function DDLDescTable($table, $field = ""); |
|
527 | 527 | // phpcs:enable |
528 | 528 | |
529 | 529 | /** |
@@ -537,10 +537,10 @@ discard block |
||
537 | 537 | * Return charset used to store data in database |
538 | 538 | * |
539 | 539 | * @return string Charset |
540 | - */ |
|
541 | - public function getDefaultCharacterSetDatabase(); |
|
540 | + */ |
|
541 | + public function getDefaultCharacterSetDatabase(); |
|
542 | 542 | |
543 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
543 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
544 | 544 | |
545 | 545 | /** |
546 | 546 | * Create a user and privileges to connect to database (even if database does not exists yet) |
@@ -621,8 +621,8 @@ discard block |
||
621 | 621 | * Return last query in error |
622 | 622 | * |
623 | 623 | * @return string lastqueryerror |
624 | - */ |
|
625 | - public function lastqueryerror(); |
|
624 | + */ |
|
625 | + public function lastqueryerror(); |
|
626 | 626 | |
627 | 627 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
628 | 628 | |
@@ -630,9 +630,9 @@ discard block |
||
630 | 630 | * Return connection ID |
631 | 631 | * |
632 | 632 | * @return string Id connection |
633 | - */ |
|
634 | - public function DDLGetConnectId(); |
|
635 | - // phpcs:enable |
|
633 | + */ |
|
634 | + public function DDLGetConnectId(); |
|
635 | + // phpcs:enable |
|
636 | 636 | |
637 | 637 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
638 | 638 | /** |
@@ -640,9 +640,9 @@ discard block |
||
640 | 640 | * |
641 | 641 | * @param resource|PgSql\Connection $resultset Handler of the desired request |
642 | 642 | * @return Object|false Object result line or false if KO or end of cursor |
643 | - */ |
|
644 | - public function fetch_object($resultset); |
|
645 | - // phpcs:enable |
|
643 | + */ |
|
644 | + public function fetch_object($resultset); |
|
645 | + // phpcs:enable |
|
646 | 646 | |
647 | 647 | // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
648 | 648 | /** |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | * |
651 | 651 | * @param string $database Name of database |
652 | 652 | * @return boolean true if OK, false if KO |
653 | - */ |
|
654 | - public function select_db($database); |
|
655 | - // phpcs:enable |
|
653 | + */ |
|
654 | + public function select_db($database); |
|
655 | + // phpcs:enable |
|
656 | 656 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | |
117 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
117 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
118 | 118 | /** |
119 | 119 | * Fonction generant la rapport sur le disque |
120 | 120 | * |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function write_file($_dir, $month, $year, $outputlangs) |
128 | 128 | { |
129 | - // phpcs:enable |
|
129 | + // phpcs:enable |
|
130 | 130 | include_once BASE_PATH . '/../Dolibarr/Lib/Date.php'; |
131 | 131 | |
132 | 132 | global $conf, $hookmanager, $langs, $user; |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | return 1; |
383 | 383 | } |
384 | 384 | |
385 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
385 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
386 | 386 | /** |
387 | 387 | * Show top header of page. |
388 | 388 | * |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | */ |
395 | 395 | protected function _pagehead(&$pdf, $page, $showaddress, $outputlangs) |
396 | 396 | { |
397 | - // phpcs:enable |
|
397 | + // phpcs:enable |
|
398 | 398 | |
399 | 399 | // Do not add the BACKGROUND as this is a report |
400 | 400 | //pdf_pagehead($pdf,$outputlangs,$this->page_hauteur); |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | } |
458 | 458 | |
459 | 459 | |
460 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
460 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
461 | 461 | /** |
462 | 462 | * Output body |
463 | 463 | * |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | */ |
470 | 470 | public function Body(&$pdf, $page, $lines, $outputlangs) |
471 | 471 | { |
472 | - // phpcs:enable |
|
472 | + // phpcs:enable |
|
473 | 473 | global $langs, $conf; |
474 | 474 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
475 | 475 |
@@ -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 BASE_PATH . '/../Dolibarr/Lib/Files.php'; |
@@ -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 BASE_PATH . '/../Dolibarr/Lib/Files.php'; |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | return $event; |
340 | 340 | } |
341 | 341 | |
342 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
342 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
343 | 343 | /** |
344 | 344 | * Clean sensible object datas |
345 | 345 | * |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | */ |
349 | 349 | protected function _cleanObjectDatas($object) |
350 | 350 | { |
351 | - // phpcs:enable |
|
351 | + // phpcs:enable |
|
352 | 352 | $object = parent::_cleanObjectDatas($object); |
353 | 353 | |
354 | 354 | unset($object->note); // alreaydy into note_private |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | return $this->LibStatut($this->status, $mode); |
227 | 227 | } |
228 | 228 | |
229 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
229 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
230 | 230 | /** |
231 | 231 | * Return the status |
232 | 232 | * |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | public static function LibStatut($status, $mode = 0) |
238 | 238 | { |
239 | - // phpcs:enable |
|
239 | + // phpcs:enable |
|
240 | 240 | global $langs; |
241 | 241 | |
242 | 242 | $labelStatus = $langs->transnoentitiesnoconv('ToDo'); |