@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | } |
284 | 284 | } |
285 | 285 | |
286 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
286 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
287 | 287 | /** |
288 | 288 | * Update total duration into llx_fichinter |
289 | 289 | * |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | */ |
292 | 292 | public function update_total() |
293 | 293 | { |
294 | - // phpcs:enable |
|
294 | + // phpcs:enable |
|
295 | 295 | global $conf; |
296 | 296 | |
297 | 297 | $this->db->begin(); |
@@ -52,19 +52,19 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public $fk_fichinter; |
54 | 54 | |
55 | - public $desc; // Description ligne |
|
55 | + public $desc; // Description ligne |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @var int Date of intervention |
59 | 59 | */ |
60 | - public $date; // Date intervention |
|
60 | + public $date; // Date intervention |
|
61 | 61 | /** |
62 | 62 | * @var int Date of intervention |
63 | 63 | * @deprecated |
64 | 64 | */ |
65 | - public $datei; // Date intervention |
|
65 | + public $datei; // Date intervention |
|
66 | 66 | |
67 | - public $duration; // Duration of intervention |
|
67 | + public $duration; // Duration of intervention |
|
68 | 68 | public $rang = 0; |
69 | 69 | public $tva_tx; |
70 | 70 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $this->id = $objp->rowid; |
123 | 123 | $this->fk_fichinter = $objp->fk_fichinter; |
124 | 124 | $this->date = $this->db->jdate($objp->date); |
125 | - $this->datei = $this->db->jdate($objp->date); // For backward compatibility |
|
125 | + $this->datei = $this->db->jdate($objp->date); // For backward compatibility |
|
126 | 126 | $this->desc = $objp->description; |
127 | 127 | $this->duration = $objp->duree; |
128 | 128 | $this->rang = $objp->rang; |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | return $this->LibStatut((isset($this->statut) ? $this->statut : $this->status), $mode); |
835 | 835 | } |
836 | 836 | |
837 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
837 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
838 | 838 | /** |
839 | 839 | * Returns the label of a status |
840 | 840 | * |
@@ -844,7 +844,7 @@ discard block |
||
844 | 844 | */ |
845 | 845 | public function LibStatut($status, $mode = 0) |
846 | 846 | { |
847 | - // phpcs:enable |
|
847 | + // phpcs:enable |
|
848 | 848 | // Init/load array of translation of status |
849 | 849 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
850 | 850 | global $langs; |
@@ -1198,7 +1198,7 @@ discard block |
||
1198 | 1198 | } |
1199 | 1199 | } |
1200 | 1200 | |
1201 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1201 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1202 | 1202 | /** |
1203 | 1203 | * Defines a delivery date of intervention |
1204 | 1204 | * |
@@ -1208,7 +1208,7 @@ discard block |
||
1208 | 1208 | */ |
1209 | 1209 | public function set_date_delivery($user, $date_delivery) |
1210 | 1210 | { |
1211 | - // phpcs:enable |
|
1211 | + // phpcs:enable |
|
1212 | 1212 | if ($user->hasRight('ficheinter', 'creer')) { |
1213 | 1213 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter "; |
1214 | 1214 | $sql .= " SET datei = '" . $this->db->idate($date_delivery) . "'"; |
@@ -1228,7 +1228,7 @@ discard block |
||
1228 | 1228 | return 0; |
1229 | 1229 | } |
1230 | 1230 | |
1231 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1231 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1232 | 1232 | /** |
1233 | 1233 | * Define the label of the intervention |
1234 | 1234 | * |
@@ -1238,7 +1238,7 @@ discard block |
||
1238 | 1238 | */ |
1239 | 1239 | public function set_description($user, $description) |
1240 | 1240 | { |
1241 | - // phpcs:enable |
|
1241 | + // phpcs:enable |
|
1242 | 1242 | if ($user->hasRight('ficheinter', 'creer')) { |
1243 | 1243 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter "; |
1244 | 1244 | $sql .= " SET description = '" . $this->db->escape($description) . "',"; |
@@ -1259,7 +1259,7 @@ discard block |
||
1259 | 1259 | } |
1260 | 1260 | |
1261 | 1261 | |
1262 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1262 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1263 | 1263 | /** |
1264 | 1264 | * Link intervention to a contract |
1265 | 1265 | * |
@@ -1269,7 +1269,7 @@ discard block |
||
1269 | 1269 | */ |
1270 | 1270 | public function set_contrat($user, $contractid) |
1271 | 1271 | { |
1272 | - // phpcs:enable |
|
1272 | + // phpcs:enable |
|
1273 | 1273 | if ($user->hasRight('ficheinter', 'creer')) { |
1274 | 1274 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter "; |
1275 | 1275 | $sql .= " SET fk_contrat = " . ((int) $contractid); |
@@ -1466,7 +1466,7 @@ discard block |
||
1466 | 1466 | return 1; |
1467 | 1467 | } |
1468 | 1468 | |
1469 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1469 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1470 | 1470 | /** |
1471 | 1471 | * Load array lines ->lines |
1472 | 1472 | * |
@@ -1474,7 +1474,7 @@ discard block |
||
1474 | 1474 | */ |
1475 | 1475 | public function fetch_lines() |
1476 | 1476 | { |
1477 | - // phpcs:enable |
|
1477 | + // phpcs:enable |
|
1478 | 1478 | $this->lines = array(); |
1479 | 1479 | |
1480 | 1480 | $sql = "SELECT rowid, fk_fichinter, description, duree, date, rang"; |
@@ -199,12 +199,12 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * No signature |
201 | 201 | */ |
202 | - const STATUS_NO_SIGNATURE = 0; |
|
202 | + const STATUS_NO_SIGNATURE = 0; |
|
203 | 203 | |
204 | 204 | /** |
205 | 205 | * Signed by sender |
206 | 206 | */ |
207 | - const STATUS_SIGNED_SENDER = 1; |
|
207 | + const STATUS_SIGNED_SENDER = 1; |
|
208 | 208 | |
209 | 209 | /** |
210 | 210 | * Signed by receiver |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Signed by all |
216 | 216 | */ |
217 | - const STATUS_SIGNED_ALL = 9; // To handle future kind of signature (ex: tripartite contract) |
|
217 | + const STATUS_SIGNED_ALL = 9; // To handle future kind of signature (ex: tripartite contract) |
|
218 | 218 | |
219 | 219 | |
220 | 220 | /** |
@@ -1406,7 +1406,7 @@ discard block |
||
1406 | 1406 | $line->fk_fichinter = $fichinterid; |
1407 | 1407 | $line->desc = $desc; |
1408 | 1408 | $line->date = $date_intervention; |
1409 | - $line->datei = $date_intervention; // For backward compatibility |
|
1409 | + $line->datei = $date_intervention; // For backward compatibility |
|
1410 | 1410 | $line->duration = $duration; |
1411 | 1411 | |
1412 | 1412 | if (is_array($array_options) && count($array_options) > 0) { |
@@ -1503,7 +1503,7 @@ discard block |
||
1503 | 1503 | //For invoicing we calculing hours |
1504 | 1504 | $line->qty = round($objp->duree / 3600, 2); |
1505 | 1505 | $line->date = $this->db->jdate($objp->date); |
1506 | - $line->datei = $this->db->jdate($objp->date); // For backward compatibility |
|
1506 | + $line->datei = $this->db->jdate($objp->date); // For backward compatibility |
|
1507 | 1507 | $line->rang = $objp->rang; |
1508 | 1508 | $line->product_type = 1; |
1509 | 1509 | $line->fetch_optionals(); |
@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | * @var array $FIELDS Mandatory fields, checked when create and update object |
41 | 41 | */ |
42 | 42 | public static $FIELDS = array( |
43 | - 'socid', |
|
44 | - 'fk_project', |
|
45 | - 'description', |
|
43 | + 'socid', |
|
44 | + 'fk_project', |
|
45 | + 'description', |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | /** |
49 | 49 | * @var array $FIELDS Mandatory fields, checked when create and update object |
50 | 50 | */ |
51 | 51 | public static $FIELDSLINE = array( |
52 | - 'description', |
|
53 | - 'date', |
|
54 | - 'duree', |
|
52 | + 'description', |
|
53 | + 'date', |
|
54 | + 'duree', |
|
55 | 55 | ); |
56 | 56 | |
57 | 57 | /** |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | } |
432 | 432 | |
433 | 433 | |
434 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
434 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
435 | 435 | /** |
436 | 436 | * Clean sensible object datas |
437 | 437 | * |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | */ |
441 | 441 | protected function _cleanObjectDatas($object) |
442 | 442 | { |
443 | - // phpcs:enable |
|
443 | + // phpcs:enable |
|
444 | 444 | $object = parent::_cleanObjectDatas($object); |
445 | 445 | |
446 | 446 | unset($object->labelStatus); |
@@ -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'; |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | return $this->LibStatutEvent($this->status, $mode); |
629 | 629 | } |
630 | 630 | |
631 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
631 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
632 | 632 | /** |
633 | 633 | * Return the status |
634 | 634 | * |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | */ |
639 | 639 | public function LibStatutEvent($status, $mode = 0) |
640 | 640 | { |
641 | - // phpcs:enable |
|
641 | + // phpcs:enable |
|
642 | 642 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
643 | 643 | global $langs; |
644 | 644 | //$langs->load("eventorganization@eventorganization"); |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | } |
412 | 412 | } |
413 | 413 | |
414 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
414 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
415 | 415 | /** |
416 | 416 | * Tag loan as payment started |
417 | 417 | * |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | */ |
423 | 423 | public function set_started($user) |
424 | 424 | { |
425 | - // phpcs:enable |
|
425 | + // phpcs:enable |
|
426 | 426 | dol_syslog(get_class($this) . "::set_started is deprecated, use setStarted instead", LOG_NOTICE); |
427 | 427 | return $this->setStarted($user); |
428 | 428 | } |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | return $this->LibStatut($this->paid, $mode, $alreadypaid); |
486 | 486 | } |
487 | 487 | |
488 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
488 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
489 | 489 | /** |
490 | 490 | * Return label for given status |
491 | 491 | * |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | */ |
497 | 497 | public function LibStatut($status, $mode = 0, $alreadypaid = -1) |
498 | 498 | { |
499 | - // phpcs:enable |
|
499 | + // phpcs:enable |
|
500 | 500 | global $langs; |
501 | 501 | |
502 | 502 | // Load translation files required by the page |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | return $this->LibStatut($this->statut, $mode); |
502 | 502 | } |
503 | 503 | |
504 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
504 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
505 | 505 | /** |
506 | 506 | * Renvoi le libelle d'un statut donne |
507 | 507 | * |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | */ |
512 | 512 | public function LibStatut($status, $mode = 0) |
513 | 513 | { |
514 | - // phpcs:enable |
|
514 | + // phpcs:enable |
|
515 | 515 | return ''; |
516 | 516 | } |
517 | 517 | |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | } |
621 | 621 | |
622 | 622 | |
623 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
623 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
624 | 624 | /** |
625 | 625 | * Update link between loan's payment and the line generate in llx_bank |
626 | 626 | * |
@@ -629,7 +629,7 @@ discard block |
||
629 | 629 | */ |
630 | 630 | public function update_fk_bank($id_bank) |
631 | 631 | { |
632 | - // phpcs:enable |
|
632 | + // phpcs:enable |
|
633 | 633 | $sql = "UPDATE " . MAIN_DB_PREFIX . "payment_loan SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id); |
634 | 634 | |
635 | 635 | dol_syslog(get_class($this) . "::update_fk_bank", LOG_DEBUG); |
@@ -804,7 +804,7 @@ discard block |
||
804 | 804 | return $this->LibStatut($this->status, $mode); |
805 | 805 | } |
806 | 806 | |
807 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
807 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
808 | 808 | |
809 | 809 | /** |
810 | 810 | * Return the status |
@@ -815,7 +815,7 @@ discard block |
||
815 | 815 | */ |
816 | 816 | public function LibStatut($status, $mode = 0) |
817 | 817 | { |
818 | - // phpcs:enable |
|
818 | + // phpcs:enable |
|
819 | 819 | if (is_null($status)) { |
820 | 820 | return ''; |
821 | 821 | } |