@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | return $this->LibStatut($this->status, $mode); |
351 | 351 | } |
352 | 352 | |
353 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
353 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
354 | 354 | |
355 | 355 | /** |
356 | 356 | * Return the status |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | */ |
362 | 362 | public function LibStatut($status, $mode = 0) |
363 | 363 | { |
364 | - // phpcs:enable |
|
364 | + // phpcs:enable |
|
365 | 365 | return $this->getPartnershipStatic()->LibStatut($status, $mode); |
366 | 366 | } |
367 | 367 | } |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | return $this->LibStatut($this->status, $mode); |
827 | 827 | } |
828 | 828 | |
829 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
829 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
830 | 830 | /** |
831 | 831 | * Return the label of a given status |
832 | 832 | * |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | */ |
837 | 837 | public function LibStatut($status, $mode = 0) |
838 | 838 | { |
839 | - // phpcs:enable |
|
839 | + // phpcs:enable |
|
840 | 840 | global $langs; |
841 | 841 | |
842 | 842 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -1126,7 +1126,7 @@ discard block |
||
1126 | 1126 | $stringtoexport = str_replace('medias/image/' . $website->ref . '/', "medias/image/__WEBSITE_KEY__/", $stringtoexport); |
1127 | 1127 | $stringtoexport = str_replace('medias/js/' . $website->ref . '/', "medias/js/__WEBSITE_KEY__/", $stringtoexport); |
1128 | 1128 | $stringtoexport = str_replace('"image/' . $website->ref . '/', '"image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="image/websiteref/file.png" into html content |
1129 | - $stringtoexport = str_replace('"/image/' . $website->ref . '/', '"/image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="/image/websiteref/file.png" into html content |
|
1129 | + $stringtoexport = str_replace('"/image/' . $website->ref . '/', '"/image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="/image/websiteref/file.png" into html content |
|
1130 | 1130 | $stringtoexport = str_replace('"js/' . $website->ref . '/', '"js/__WEBSITE_KEY__/', $stringtoexport); |
1131 | 1131 | $stringtoexport = str_replace('"/js/' . $website->ref . '/', '"/js/__WEBSITE_KEY__/', $stringtoexport); |
1132 | 1132 | |
@@ -1455,7 +1455,7 @@ discard block |
||
1455 | 1455 | $filetpl = $pathofwebsite . '/page' . $object->fk_default_home . '.tpl.php'; |
1456 | 1456 | } |
1457 | 1457 | $filewrapper = $pathofwebsite . '/wrapper.php'; |
1458 | - dolSaveIndexPage($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object); // This includes also a version of index.php into sublanguage directories |
|
1458 | + dolSaveIndexPage($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object); // This includes also a version of index.php into sublanguage directories |
|
1459 | 1459 | } |
1460 | 1460 | |
1461 | 1461 | if ($error) { |
@@ -1901,7 +1901,7 @@ discard block |
||
1901 | 1901 | $destContent = file_get_contents($fileNeeded['fullname']); |
1902 | 1902 | |
1903 | 1903 | $numOfPageDest = $this->extractNumberFromFilename($fileNeeded['name']); |
1904 | - $differences = $this->showDifferences($destContent, $sourceContent, array($numOfPageDest,$numOfPageSource)); |
|
1904 | + $differences = $this->showDifferences($destContent, $sourceContent, array($numOfPageDest, $numOfPageSource)); |
|
1905 | 1905 | $differences['file_destination'] = $fileNeeded; |
1906 | 1906 | } else { |
1907 | 1907 | $differences = array(); |
@@ -1944,7 +1944,7 @@ discard block |
||
1944 | 1944 | $linefound = array(); |
1945 | 1945 | $countNumPage = count($exceptNumPge); |
1946 | 1946 | |
1947 | - for ($i = 0;$i < $countNumPage; $i++) { |
|
1947 | + for ($i = 0; $i < $countNumPage; $i++) { |
|
1948 | 1948 | $linefound[$i] = array(); |
1949 | 1949 | $linefound[$i]['meta'] = '/content="' . preg_quote($exceptNumPge[$i], '/') . '" \/>/'; |
1950 | 1950 | $linefound[$i]['output'] = '/dolWebsiteOutput\(\$tmp, "html", ' . preg_quote($exceptNumPge[$i], '/') . '\);/'; |
@@ -124,8 +124,8 @@ |
||
124 | 124 | */ |
125 | 125 | public $newid; // offline |
126 | 126 | /** |
127 | - * @var 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}> Array with all fields and their property. Do not use it as a static var. It may be modified by constructor. |
|
128 | - */ |
|
127 | + * @var 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}> Array with all fields and their property. Do not use it as a static var. It may be modified by constructor. |
|
128 | + */ |
|
129 | 129 | public $fields = array( |
130 | 130 | 'rowid' => array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'visible' => -1, 'notnull' => 1, 'index' => 1, 'position' => 1, 'comment' => 'Id'), |
131 | 131 | 'pageurl' => array('type' => 'varchar(16)', 'label' => 'WEBSITE_PAGENAME', 'enabled' => 1, 'visible' => 1, 'notnull' => 1, 'index' => 1, 'position' => 10, 'searchall' => 1, 'comment' => 'Ref/alias of page'), |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * @var int ID |
66 | 66 | */ |
67 | - public $fk_website; // If translation of another page |
|
67 | + public $fk_website; // If translation of another page |
|
68 | 68 | public $fk_page; |
69 | 69 | public $pageurl; |
70 | 70 | public $aliasalt; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | /** |
123 | 123 | * @var int Another ID that is the $id but with an offset so that ID of pages of the website start at 1 |
124 | 124 | */ |
125 | - public $newid; // offline |
|
125 | + public $newid; // offline |
|
126 | 126 | /** |
127 | 127 | * @var 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}> Array with all fields and their property. Do not use it as a static var. It may be modified by constructor. |
128 | 128 | */ |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'import_key' => array('type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => 1, 'visible' => -1, 'index' => 1, 'position' => 1000, 'notnull' => -1), |
154 | 154 | 'object_type' => array('type' => 'varchar(255)', 'label' => 'ObjectType', 'enabled' => 1, 'visible' => 0, 'position' => 46, 'searchall' => 0, 'help' => ''), |
155 | 155 | 'fk_object' => array('type' => 'varchar(255)', 'label' => 'ObjectId', 'enabled' => 1, 'visible' => 0, 'position' => 47, 'searchall' => 0, 'help' => '') |
156 | - ); // online |
|
156 | + ); // online |
|
157 | 157 | |
158 | 158 | |
159 | 159 | /** |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | $sql .= " t.fk_object"; |
244 | 244 | $sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t'; |
245 | 245 | if (!empty($websiteid)) { |
246 | - $sql .= ' WHERE t.fk_website = ' . ((int)$websiteid); |
|
246 | + $sql .= ' WHERE t.fk_website = ' . ((int) $websiteid); |
|
247 | 247 | } |
248 | 248 | |
249 | 249 | // Deprecated. If we receive an array, we use it. Prefer using the USF syntax. |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | if (count($filter) > 0) { |
254 | 254 | foreach ($filter as $key => $value) { |
255 | 255 | if ($key == 't.rowid' || $key == 'rowid' || $key == 't.fk_website' || $key == 'fk_website' || $key == 'status' || $key == 't.status') { |
256 | - $sqlwhere[] = $key . " = " . ((int)$value); |
|
256 | + $sqlwhere[] = $key . " = " . ((int) $value); |
|
257 | 257 | } elseif ($key == 'type_container' || $key == 't.type_container') { |
258 | 258 | $sqlwhere[] = $key . " = '" . $this->db->escape($value) . "'"; |
259 | 259 | } elseif ($key == 'lang' || $key == 't.lang') { |
@@ -364,14 +364,14 @@ discard block |
||
364 | 364 | |
365 | 365 | $sql = 'SELECT COUNT(t.rowid) as nb'; |
366 | 366 | $sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t'; |
367 | - $sql .= ' WHERE t.fk_website = ' . ((int)$websiteid); |
|
367 | + $sql .= ' WHERE t.fk_website = ' . ((int) $websiteid); |
|
368 | 368 | |
369 | 369 | // Manage filter (same than into fetchAll) |
370 | 370 | $sqlwhere = array(); |
371 | 371 | if (count($filter) > 0) { |
372 | 372 | foreach ($filter as $key => $value) { |
373 | 373 | if ($key == 't.rowid' || $key == 't.fk_website' || $key == 'status') { |
374 | - $sqlwhere[] = $key . " = " . ((int)$value); |
|
374 | + $sqlwhere[] = $key . " = " . ((int) $value); |
|
375 | 375 | } elseif ($key == 'type_container') { |
376 | 376 | $sqlwhere[] = $key . " = '" . $this->db->escape($value) . "'"; |
377 | 377 | } elseif ($key == 'lang' || $key == 't.lang') { |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | //$sql .= ' WHERE entity IN ('.getEntity('website').')'; // entity is on website level |
500 | 500 | $sql .= ' WHERE 1 = 1'; |
501 | 501 | if ($id > 0) { |
502 | - $sql .= ' AND t.rowid = ' . ((int)$id); |
|
502 | + $sql .= ' AND t.rowid = ' . ((int) $id); |
|
503 | 503 | } else { |
504 | 504 | if ($id < 0) { |
505 | 505 | $sql .= ' AND t.rowid <> ' . abs($id); |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | if (!$error) { |
596 | 596 | foreach ($this->childtablesoncascade as $table) { |
597 | 597 | $sql = "DELETE FROM " . MAIN_DB_PREFIX . $table; |
598 | - $sql .= " WHERE fk_website_page = " . (int)$this->id; |
|
598 | + $sql .= " WHERE fk_website_page = " . (int) $this->id; |
|
599 | 599 | |
600 | 600 | $result = $this->db->query($sql); |
601 | 601 | if (!$result) { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | return parent::fetch($rowid, $ref, $ref_ext, $barcode, $idprof1, $idprof2, $idprof3, $idprof4, $idprof5, $idprof6, $email, $ref_alias, $is_client, $is_supplier); |
83 | 83 | } |
84 | 84 | |
85 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
85 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
86 | 86 | /** |
87 | 87 | * Load indicators into this->nb for board |
88 | 88 | * |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | /** |
254 | 254 | * @var string external payment site |
255 | 255 | */ |
256 | - public $ext_payment_site; // Name of the external payment system ('StripeLive', 'StripeTest', 'StancerLive', 'StancerTest', ...) |
|
256 | + public $ext_payment_site; // Name of the external payment system ('StripeLive', 'StripeTest', 'StancerLive', 'StancerTest', ...) |
|
257 | 257 | |
258 | 258 | /** |
259 | 259 | * @var string comment |
@@ -544,9 +544,9 @@ discard block |
||
544 | 544 | $this->rum = $obj->rum; |
545 | 545 | $this->frstrecur = $obj->frstrecur; |
546 | 546 | $this->date_rum = $this->db->jdate($obj->date_rum); |
547 | - $this->stripe_card_ref = $obj->stripe_card_ref; // External system payment mode ID |
|
548 | - $this->stripe_account = $obj->stripe_account; // External system customer ID |
|
549 | - $this->ext_payment_site = $obj->ext_payment_site; // External system name ('StripeLive', 'StripeTest', 'StancerLive', 'StancerTest', ...) |
|
547 | + $this->stripe_card_ref = $obj->stripe_card_ref; // External system payment mode ID |
|
548 | + $this->stripe_account = $obj->stripe_account; // External system customer ID |
|
549 | + $this->ext_payment_site = $obj->ext_payment_site; // External system name ('StripeLive', 'StripeTest', 'StancerLive', 'StancerTest', ...) |
|
550 | 550 | $this->last_main_doc = $obj->last_main_doc; |
551 | 551 | $this->model_pdf = $obj->model_pdf; |
552 | 552 | } |
@@ -1057,7 +1057,7 @@ discard block |
||
1057 | 1057 | } |
1058 | 1058 | |
1059 | 1059 | if ($ret >= 0) { |
1060 | - if (! $notrigger) { |
|
1060 | + if (!$notrigger) { |
|
1061 | 1061 | // Call trigger |
1062 | 1062 | $result = $this->call_trigger('COMPANY_CREATE', $user); |
1063 | 1063 | if ($result < 0) { |
@@ -1986,7 +1986,7 @@ discard block |
||
1986 | 1986 | $this->code_client = $obj->code_client; |
1987 | 1987 | $this->code_fournisseur = $obj->code_fournisseur; |
1988 | 1988 | |
1989 | - $this->code_compta = $obj->code_compta; // For backward compatibility |
|
1989 | + $this->code_compta = $obj->code_compta; // For backward compatibility |
|
1990 | 1990 | $this->code_compta_client = $obj->code_compta; |
1991 | 1991 | $this->code_compta_fournisseur = $obj->code_compta_fournisseur; |
1992 | 1992 | |
@@ -2566,10 +2566,10 @@ discard block |
||
2566 | 2566 | $reparray[$i]['firstname'] = $obj->firstname; |
2567 | 2567 | $reparray[$i]['email'] = $obj->email; |
2568 | 2568 | $reparray[$i]['phone'] = $obj->office_phone; |
2569 | - $reparray[$i]['office_phone'] = $obj->office_phone; // Pro phone |
|
2569 | + $reparray[$i]['office_phone'] = $obj->office_phone; // Pro phone |
|
2570 | 2570 | $reparray[$i]['office_fax'] = $obj->office_fax; |
2571 | - $reparray[$i]['user_mobile'] = $obj->user_mobile; // Pro mobile |
|
2572 | - $reparray[$i]['personal_mobile'] = $obj->personal_mobile; // Personal mobile |
|
2571 | + $reparray[$i]['user_mobile'] = $obj->user_mobile; // Pro mobile |
|
2572 | + $reparray[$i]['personal_mobile'] = $obj->personal_mobile; // Personal mobile |
|
2573 | 2573 | $reparray[$i]['job'] = $obj->job; |
2574 | 2574 | $reparray[$i]['statut'] = $obj->status; // deprecated |
2575 | 2575 | $reparray[$i]['status'] = $obj->status; |
@@ -3735,7 +3735,7 @@ discard block |
||
3735 | 3735 | $sql .= ' WHERE rowid = ' . ((int) $idparent); |
3736 | 3736 | $resql = $this->db->query($sql); |
3737 | 3737 | if ($resql) { |
3738 | - $obj = $this->db->fetch_object($resql); |
|
3738 | + $obj = $this->db->fetch_object($resql); |
|
3739 | 3739 | |
3740 | 3740 | if ($obj->parent == '') { |
3741 | 3741 | return 0; |
@@ -4371,7 +4371,7 @@ discard block |
||
4371 | 4371 | $country_code = $country_label = ''; |
4372 | 4372 | if (getDolGlobalString('MAIN_INFO_SOCIETE_COUNTRY')) { |
4373 | 4373 | $tmp = explode(':', getDolGlobalString('MAIN_INFO_SOCIETE_COUNTRY')); |
4374 | - $country_id = (is_numeric($tmp[0])) ? (int) $tmp[0] : 0; |
|
4374 | + $country_id = (is_numeric($tmp[0])) ? (int) $tmp[0] : 0; |
|
4375 | 4375 | if (!empty($tmp[1])) { // If $conf->global->MAIN_INFO_SOCIETE_COUNTRY is "id:code:label" |
4376 | 4376 | $country_code = $tmp[1]; |
4377 | 4377 | $country_label = $tmp[2]; |
@@ -5343,7 +5343,7 @@ discard block |
||
5343 | 5343 | global $conf, $langs, $hookmanager, $user, $action; |
5344 | 5344 | |
5345 | 5345 | $error = 0; |
5346 | - $soc_origin = new Societe($this->db); // The thirdparty that we will delete |
|
5346 | + $soc_origin = new Societe($this->db); // The thirdparty that we will delete |
|
5347 | 5347 | |
5348 | 5348 | dol_syslog("mergeCompany merge thirdparty id=" . $soc_origin_id . " (will be deleted) into the thirdparty id=" . $this->id); |
5349 | 5349 |
@@ -1104,7 +1104,7 @@ discard block |
||
1104 | 1104 | } |
1105 | 1105 | |
1106 | 1106 | |
1107 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1107 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1108 | 1108 | /** |
1109 | 1109 | * Create a contact/address from thirdparty |
1110 | 1110 | * |
@@ -2254,7 +2254,7 @@ discard block |
||
2254 | 2254 | return 0; |
2255 | 2255 | } |
2256 | 2256 | |
2257 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2257 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2258 | 2258 | /** |
2259 | 2259 | * Define third party as a customer |
2260 | 2260 | * |
@@ -2265,7 +2265,7 @@ discard block |
||
2265 | 2265 | public function set_as_client() |
2266 | 2266 | { |
2267 | 2267 | global $conf; |
2268 | - // phpcs:enable |
|
2268 | + // phpcs:enable |
|
2269 | 2269 | dol_syslog(get_class($this) . "::set_as_client is deprecated use setAsCustomer instead", LOG_NOTICE); |
2270 | 2270 | return $this->setAsCustomer(); |
2271 | 2271 | } |
@@ -2298,7 +2298,7 @@ discard block |
||
2298 | 2298 | return 0; |
2299 | 2299 | } |
2300 | 2300 | |
2301 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2301 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2302 | 2302 | /** |
2303 | 2303 | * Defines the company as a customer |
2304 | 2304 | * |
@@ -2309,7 +2309,7 @@ discard block |
||
2309 | 2309 | */ |
2310 | 2310 | public function set_remise_client($remise, $note, User $user) |
2311 | 2311 | { |
2312 | - // phpcs:enable |
|
2312 | + // phpcs:enable |
|
2313 | 2313 | global $conf, $langs; |
2314 | 2314 | |
2315 | 2315 | // Parameter cleaning |
@@ -2359,7 +2359,7 @@ discard block |
||
2359 | 2359 | return -1; |
2360 | 2360 | } |
2361 | 2361 | |
2362 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2362 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2363 | 2363 | /** |
2364 | 2364 | * Defines the company as a customer |
2365 | 2365 | * |
@@ -2370,7 +2370,7 @@ discard block |
||
2370 | 2370 | */ |
2371 | 2371 | public function set_remise_supplier($remise, $note, User $user) |
2372 | 2372 | { |
2373 | - // phpcs:enable |
|
2373 | + // phpcs:enable |
|
2374 | 2374 | global $conf, $langs; |
2375 | 2375 | |
2376 | 2376 | // Parameter cleaning |
@@ -2420,7 +2420,7 @@ discard block |
||
2420 | 2420 | return -1; |
2421 | 2421 | } |
2422 | 2422 | |
2423 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2423 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2424 | 2424 | /** |
2425 | 2425 | * Add a discount for third party |
2426 | 2426 | * |
@@ -2434,7 +2434,7 @@ discard block |
||
2434 | 2434 | */ |
2435 | 2435 | public function set_remise_except($remise, User $user, $desc, $vatrate = '', $discount_type = 0, $price_base_type = 'HT') |
2436 | 2436 | { |
2437 | - // phpcs:enable |
|
2437 | + // phpcs:enable |
|
2438 | 2438 | global $langs; |
2439 | 2439 | |
2440 | 2440 | // Clean parameters |
@@ -2620,7 +2620,7 @@ discard block |
||
2620 | 2620 | return -1; |
2621 | 2621 | } |
2622 | 2622 | |
2623 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2623 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2624 | 2624 | /** |
2625 | 2625 | * Add link to sales representative |
2626 | 2626 | * |
@@ -2630,7 +2630,7 @@ discard block |
||
2630 | 2630 | */ |
2631 | 2631 | public function add_commercial(User $user, $commid) |
2632 | 2632 | { |
2633 | - // phpcs:enable |
|
2633 | + // phpcs:enable |
|
2634 | 2634 | $error = 0; |
2635 | 2635 | |
2636 | 2636 | if ($this->id > 0 && $commid > 0) { |
@@ -2680,7 +2680,7 @@ discard block |
||
2680 | 2680 | return 0; |
2681 | 2681 | } |
2682 | 2682 | |
2683 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2683 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2684 | 2684 | /** |
2685 | 2685 | * Add link to sales representative |
2686 | 2686 | * |
@@ -2690,7 +2690,7 @@ discard block |
||
2690 | 2690 | */ |
2691 | 2691 | public function del_commercial(User $user, $commid) |
2692 | 2692 | { |
2693 | - // phpcs:enable |
|
2693 | + // phpcs:enable |
|
2694 | 2694 | $error = 0; |
2695 | 2695 | $this->context = array('commercial_modified' => $commid); |
2696 | 2696 | |
@@ -3075,7 +3075,7 @@ discard block |
||
3075 | 3075 | return $this->LibStatut($this->status, $mode); |
3076 | 3076 | } |
3077 | 3077 | |
3078 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3078 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3079 | 3079 | /** |
3080 | 3080 | * Return the label of a given status |
3081 | 3081 | * |
@@ -3085,7 +3085,7 @@ discard block |
||
3085 | 3085 | */ |
3086 | 3086 | public function LibStatut($status, $mode = 0) |
3087 | 3087 | { |
3088 | - // phpcs:enable |
|
3088 | + // phpcs:enable |
|
3089 | 3089 | global $langs; |
3090 | 3090 | $langs->load('companies'); |
3091 | 3091 | |
@@ -3104,7 +3104,7 @@ discard block |
||
3104 | 3104 | return dolGetStatus($this->labelStatus[$status], $this->labelStatusShort[$status], '', $statusType, $mode); |
3105 | 3105 | } |
3106 | 3106 | |
3107 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3107 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3108 | 3108 | /** |
3109 | 3109 | * Return list of contacts emails existing for third party |
3110 | 3110 | * |
@@ -3113,7 +3113,7 @@ discard block |
||
3113 | 3113 | */ |
3114 | 3114 | public function thirdparty_and_contact_email_array($addthirdparty = 0) |
3115 | 3115 | { |
3116 | - // phpcs:enable |
|
3116 | + // phpcs:enable |
|
3117 | 3117 | global $langs; |
3118 | 3118 | |
3119 | 3119 | $contact_emails = $this->contact_property_array('email', 1); |
@@ -3129,7 +3129,7 @@ discard block |
||
3129 | 3129 | return $contact_emails; |
3130 | 3130 | } |
3131 | 3131 | |
3132 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3132 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3133 | 3133 | /** |
3134 | 3134 | * Return list of contacts mobile phone existing for third party |
3135 | 3135 | * |
@@ -3137,7 +3137,7 @@ discard block |
||
3137 | 3137 | */ |
3138 | 3138 | public function thirdparty_and_contact_phone_array() |
3139 | 3139 | { |
3140 | - // phpcs:enable |
|
3140 | + // phpcs:enable |
|
3141 | 3141 | global $langs; |
3142 | 3142 | |
3143 | 3143 | $contact_phone = $this->contact_property_array('mobile'); |
@@ -3152,7 +3152,7 @@ discard block |
||
3152 | 3152 | return $contact_phone; |
3153 | 3153 | } |
3154 | 3154 | |
3155 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3155 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3156 | 3156 | /** |
3157 | 3157 | * Return list of contacts emails or mobile existing for third party |
3158 | 3158 | * |
@@ -3162,7 +3162,7 @@ discard block |
||
3162 | 3162 | */ |
3163 | 3163 | public function contact_property_array($mode = 'email', $hidedisabled = 0) |
3164 | 3164 | { |
3165 | - // phpcs:enable |
|
3165 | + // phpcs:enable |
|
3166 | 3166 | global $langs; |
3167 | 3167 | |
3168 | 3168 | $contact_property = array(); |
@@ -3222,7 +3222,7 @@ discard block |
||
3222 | 3222 | } |
3223 | 3223 | |
3224 | 3224 | |
3225 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3225 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3226 | 3226 | /** |
3227 | 3227 | * Returns the contact list of this company |
3228 | 3228 | * |
@@ -3230,7 +3230,7 @@ discard block |
||
3230 | 3230 | */ |
3231 | 3231 | public function contact_array() |
3232 | 3232 | { |
3233 | - // phpcs:enable |
|
3233 | + // phpcs:enable |
|
3234 | 3234 | $contacts = array(); |
3235 | 3235 | |
3236 | 3236 | $sql = "SELECT rowid, lastname, firstname FROM " . MAIN_DB_PREFIX . "socpeople WHERE fk_soc = " . ((int) $this->id); |
@@ -3251,7 +3251,7 @@ discard block |
||
3251 | 3251 | return $contacts; |
3252 | 3252 | } |
3253 | 3253 | |
3254 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3254 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3255 | 3255 | /** |
3256 | 3256 | * Returns the contact list of this company |
3257 | 3257 | * |
@@ -3281,7 +3281,7 @@ discard block |
||
3281 | 3281 | return $contacts; |
3282 | 3282 | } |
3283 | 3283 | |
3284 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3284 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3285 | 3285 | /** |
3286 | 3286 | * Return property of contact from its id |
3287 | 3287 | * |
@@ -3291,7 +3291,7 @@ discard block |
||
3291 | 3291 | */ |
3292 | 3292 | public function contact_get_property($rowid, $mode) |
3293 | 3293 | { |
3294 | - // phpcs:enable |
|
3294 | + // phpcs:enable |
|
3295 | 3295 | $contact_property = ''; |
3296 | 3296 | |
3297 | 3297 | if (empty($rowid)) { |
@@ -3324,7 +3324,7 @@ discard block |
||
3324 | 3324 | } |
3325 | 3325 | |
3326 | 3326 | |
3327 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3327 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3328 | 3328 | /** |
3329 | 3329 | * Return bank number property of thirdparty (label or rum) |
3330 | 3330 | * |
@@ -3333,7 +3333,7 @@ discard block |
||
3333 | 3333 | */ |
3334 | 3334 | public function display_rib($mode = 'label') |
3335 | 3335 | { |
3336 | - // phpcs:enable |
|
3336 | + // phpcs:enable |
|
3337 | 3337 | |
3338 | 3338 | $bac = new CompanyBankAccount($this->db); |
3339 | 3339 | // @phan-suppress-next-line PhanPluginSuspiciousParamPosition |
@@ -3360,7 +3360,7 @@ discard block |
||
3360 | 3360 | } |
3361 | 3361 | } |
3362 | 3362 | |
3363 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3363 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3364 | 3364 | /** |
3365 | 3365 | * Return Array of RIB |
3366 | 3366 | * |
@@ -3368,7 +3368,7 @@ discard block |
||
3368 | 3368 | */ |
3369 | 3369 | public function get_all_rib() |
3370 | 3370 | { |
3371 | - // phpcs:enable |
|
3371 | + // phpcs:enable |
|
3372 | 3372 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_rib WHERE type='ban' AND fk_soc = " . ((int) $this->id); |
3373 | 3373 | $result = $this->db->query($sql); |
3374 | 3374 | if (!$result) { |
@@ -3389,7 +3389,7 @@ discard block |
||
3389 | 3389 | } |
3390 | 3390 | } |
3391 | 3391 | |
3392 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3392 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3393 | 3393 | /** |
3394 | 3394 | * Assigns a customer code from the code control module. |
3395 | 3395 | * Return value is stored into this->code_client |
@@ -3400,7 +3400,7 @@ discard block |
||
3400 | 3400 | */ |
3401 | 3401 | public function get_codeclient($objsoc = null, $type = 0) |
3402 | 3402 | { |
3403 | - // phpcs:enable |
|
3403 | + // phpcs:enable |
|
3404 | 3404 | global $conf; |
3405 | 3405 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3406 | 3406 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3422,7 +3422,7 @@ discard block |
||
3422 | 3422 | } |
3423 | 3423 | } |
3424 | 3424 | |
3425 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3425 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3426 | 3426 | /** |
3427 | 3427 | * Assigns a vendor code from the code control module. |
3428 | 3428 | * Return value is stored into this->code_fournisseur |
@@ -3433,7 +3433,7 @@ discard block |
||
3433 | 3433 | */ |
3434 | 3434 | public function get_codefournisseur($objsoc = null, $type = 1) |
3435 | 3435 | { |
3436 | - // phpcs:enable |
|
3436 | + // phpcs:enable |
|
3437 | 3437 | global $conf; |
3438 | 3438 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3439 | 3439 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3454,7 +3454,7 @@ discard block |
||
3454 | 3454 | } |
3455 | 3455 | } |
3456 | 3456 | |
3457 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3457 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3458 | 3458 | /** |
3459 | 3459 | * Check if a client code is editable based on the parameters of the |
3460 | 3460 | * code control module. |
@@ -3463,7 +3463,7 @@ discard block |
||
3463 | 3463 | */ |
3464 | 3464 | public function codeclient_modifiable() |
3465 | 3465 | { |
3466 | - // phpcs:enable |
|
3466 | + // phpcs:enable |
|
3467 | 3467 | global $conf; |
3468 | 3468 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3469 | 3469 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3495,7 +3495,7 @@ discard block |
||
3495 | 3495 | } |
3496 | 3496 | |
3497 | 3497 | |
3498 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3498 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3499 | 3499 | /** |
3500 | 3500 | * Check if a vendor code is editable in the code control module configuration |
3501 | 3501 | * |
@@ -3503,7 +3503,7 @@ discard block |
||
3503 | 3503 | */ |
3504 | 3504 | public function codefournisseur_modifiable() |
3505 | 3505 | { |
3506 | - // phpcs:enable |
|
3506 | + // phpcs:enable |
|
3507 | 3507 | global $conf; |
3508 | 3508 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3509 | 3509 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3535,7 +3535,7 @@ discard block |
||
3535 | 3535 | } |
3536 | 3536 | |
3537 | 3537 | |
3538 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3538 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3539 | 3539 | /** |
3540 | 3540 | * Check customer code |
3541 | 3541 | * |
@@ -3549,7 +3549,7 @@ discard block |
||
3549 | 3549 | */ |
3550 | 3550 | public function check_codeclient() |
3551 | 3551 | { |
3552 | - // phpcs:enable |
|
3552 | + // phpcs:enable |
|
3553 | 3553 | global $conf; |
3554 | 3554 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3555 | 3555 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3576,7 +3576,7 @@ discard block |
||
3576 | 3576 | } |
3577 | 3577 | } |
3578 | 3578 | |
3579 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3579 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3580 | 3580 | /** |
3581 | 3581 | * Check supplier code |
3582 | 3582 | * |
@@ -3590,7 +3590,7 @@ discard block |
||
3590 | 3590 | */ |
3591 | 3591 | public function check_codefournisseur() |
3592 | 3592 | { |
3593 | - // phpcs:enable |
|
3593 | + // phpcs:enable |
|
3594 | 3594 | global $conf; |
3595 | 3595 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
3596 | 3596 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3617,7 +3617,7 @@ discard block |
||
3617 | 3617 | } |
3618 | 3618 | } |
3619 | 3619 | |
3620 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3620 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3621 | 3621 | /** |
3622 | 3622 | * Assigns a accounting code from the accounting code module. |
3623 | 3623 | * Computed value is stored into this->code_compta or this->code_compta_fournisseur according to $type. |
@@ -3628,7 +3628,7 @@ discard block |
||
3628 | 3628 | */ |
3629 | 3629 | public function get_codecompta($type) |
3630 | 3630 | { |
3631 | - // phpcs:enable |
|
3631 | + // phpcs:enable |
|
3632 | 3632 | global $conf; |
3633 | 3633 | |
3634 | 3634 | if (getDolGlobalString('SOCIETE_CODECOMPTA_ADDON')) { |
@@ -3776,7 +3776,7 @@ discard block |
||
3776 | 3776 | return array(); |
3777 | 3777 | } |
3778 | 3778 | |
3779 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3779 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3780 | 3780 | /** |
3781 | 3781 | * Returns if a profid should be verified to be unique |
3782 | 3782 | * |
@@ -3785,7 +3785,7 @@ discard block |
||
3785 | 3785 | */ |
3786 | 3786 | public function id_prof_verifiable($idprof) |
3787 | 3787 | { |
3788 | - // phpcs:enable |
|
3788 | + // phpcs:enable |
|
3789 | 3789 | global $conf; |
3790 | 3790 | |
3791 | 3791 | switch ($idprof) { |
@@ -3814,7 +3814,7 @@ discard block |
||
3814 | 3814 | return $ret; |
3815 | 3815 | } |
3816 | 3816 | |
3817 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3817 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3818 | 3818 | /** |
3819 | 3819 | * Verify if a profid exists into database for others thirds |
3820 | 3820 | * |
@@ -3825,7 +3825,7 @@ discard block |
||
3825 | 3825 | */ |
3826 | 3826 | public function id_prof_exists($idprof, $value, $socid = 0) |
3827 | 3827 | { |
3828 | - // phpcs:enable |
|
3828 | + // phpcs:enable |
|
3829 | 3829 | $field = $idprof; |
3830 | 3830 | |
3831 | 3831 | switch ($idprof) { // For backward compatibility |
@@ -3875,7 +3875,7 @@ discard block |
||
3875 | 3875 | } |
3876 | 3876 | } |
3877 | 3877 | |
3878 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3878 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3879 | 3879 | /** |
3880 | 3880 | * Check the validity of a professional identifier according to the country of the company (siren, siret, ...) |
3881 | 3881 | * |
@@ -3886,7 +3886,7 @@ discard block |
||
3886 | 3886 | */ |
3887 | 3887 | public function id_prof_check($idprof, $soc) |
3888 | 3888 | { |
3889 | - // phpcs:enable |
|
3889 | + // phpcs:enable |
|
3890 | 3890 | global $conf; |
3891 | 3891 | |
3892 | 3892 | // load the library necessary to check the professional identifiers |
@@ -3931,7 +3931,7 @@ discard block |
||
3931 | 3931 | return $ok; |
3932 | 3932 | } |
3933 | 3933 | |
3934 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3934 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3935 | 3935 | /** |
3936 | 3936 | * Return an url to check online a professional id or empty string |
3937 | 3937 | * |
@@ -3942,7 +3942,7 @@ discard block |
||
3942 | 3942 | */ |
3943 | 3943 | public function id_prof_url($idprof, $thirdparty) |
3944 | 3944 | { |
3945 | - // phpcs:enable |
|
3945 | + // phpcs:enable |
|
3946 | 3946 | global $conf, $langs, $hookmanager; |
3947 | 3947 | |
3948 | 3948 | $url = ''; |
@@ -3987,7 +3987,7 @@ discard block |
||
3987 | 3987 | return ''; |
3988 | 3988 | } |
3989 | 3989 | |
3990 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3990 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
3991 | 3991 | /** |
3992 | 3992 | * Indicates if the company has projects |
3993 | 3993 | * |
@@ -3995,7 +3995,7 @@ discard block |
||
3995 | 3995 | */ |
3996 | 3996 | public function has_projects() |
3997 | 3997 | { |
3998 | - // phpcs:enable |
|
3998 | + // phpcs:enable |
|
3999 | 3999 | $sql = "SELECT COUNT(*) as numproj FROM " . MAIN_DB_PREFIX . "projet WHERE fk_soc = " . ((int) $this->id); |
4000 | 4000 | $resql = $this->db->query($sql); |
4001 | 4001 | if ($resql) { |
@@ -4086,7 +4086,7 @@ discard block |
||
4086 | 4086 | return isInEEC($this); |
4087 | 4087 | } |
4088 | 4088 | |
4089 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4089 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4090 | 4090 | /** |
4091 | 4091 | * Load the list of provider categories |
4092 | 4092 | * |
@@ -4094,7 +4094,7 @@ discard block |
||
4094 | 4094 | */ |
4095 | 4095 | public function LoadSupplierCateg() |
4096 | 4096 | { |
4097 | - // phpcs:enable |
|
4097 | + // phpcs:enable |
|
4098 | 4098 | $this->SupplierCategories = array(); |
4099 | 4099 | $sql = "SELECT rowid, label"; |
4100 | 4100 | $sql .= " FROM " . MAIN_DB_PREFIX . "categorie"; |
@@ -4111,7 +4111,7 @@ discard block |
||
4111 | 4111 | } |
4112 | 4112 | } |
4113 | 4113 | |
4114 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4114 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4115 | 4115 | /** |
4116 | 4116 | * Insert link supplier - category |
4117 | 4117 | * |
@@ -4120,7 +4120,7 @@ discard block |
||
4120 | 4120 | */ |
4121 | 4121 | public function AddFournisseurInCategory($categorie_id) |
4122 | 4122 | { |
4123 | - // phpcs:enable |
|
4123 | + // phpcs:enable |
|
4124 | 4124 | if ($categorie_id > 0 && $this->id > 0) { |
4125 | 4125 | $sql = "INSERT INTO " . MAIN_DB_PREFIX . "categorie_fournisseur (fk_categorie, fk_soc) "; |
4126 | 4126 | $sql .= " VALUES (" . ((int) $categorie_id) . ", " . ((int) $this->id) . ")"; |
@@ -4240,7 +4240,7 @@ discard block |
||
4240 | 4240 | return 0; |
4241 | 4241 | } |
4242 | 4242 | |
4243 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4243 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4244 | 4244 | /** |
4245 | 4245 | * Create a third party into database from a member object |
4246 | 4246 | * |
@@ -4252,7 +4252,7 @@ discard block |
||
4252 | 4252 | */ |
4253 | 4253 | public function create_from_member(Adherent $member, $socname = '', $socalias = '', $customercode = '') |
4254 | 4254 | { |
4255 | - // phpcs:enable |
|
4255 | + // phpcs:enable |
|
4256 | 4256 | global $conf, $user, $langs; |
4257 | 4257 | |
4258 | 4258 | dol_syslog(get_class($this) . "::create_from_member", LOG_DEBUG); |
@@ -4619,7 +4619,7 @@ discard block |
||
4619 | 4619 | return $this->LibProspLevel($this->fk_prospectlevel); |
4620 | 4620 | } |
4621 | 4621 | |
4622 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4622 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4623 | 4623 | /** |
4624 | 4624 | * Return label of prospect level |
4625 | 4625 | * |
@@ -4628,7 +4628,7 @@ discard block |
||
4628 | 4628 | */ |
4629 | 4629 | public function LibProspLevel($fk_prospectlevel) |
4630 | 4630 | { |
4631 | - // phpcs:enable |
|
4631 | + // phpcs:enable |
|
4632 | 4632 | global $langs; |
4633 | 4633 | |
4634 | 4634 | $label = ''; |
@@ -4655,7 +4655,7 @@ discard block |
||
4655 | 4655 | return $this->LibProspCommStatut($this->stcomm_id, $mode, $label, $this->stcomm_picto); |
4656 | 4656 | } |
4657 | 4657 | |
4658 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4658 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4659 | 4659 | /** |
4660 | 4660 | * Return label of a given status |
4661 | 4661 | * |
@@ -4671,7 +4671,7 @@ discard block |
||
4671 | 4671 | */ |
4672 | 4672 | public function LibProspCommStatut($status, $mode = 0, $label = '', $picto = '') |
4673 | 4673 | { |
4674 | - // phpcs:enable |
|
4674 | + // phpcs:enable |
|
4675 | 4675 | global $langs; |
4676 | 4676 | |
4677 | 4677 | $langs->load('customers'); |
@@ -4914,7 +4914,7 @@ discard block |
||
4914 | 4914 | return $this->LibCustProspStatut($this->client); |
4915 | 4915 | } |
4916 | 4916 | |
4917 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4917 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
4918 | 4918 | /** |
4919 | 4919 | * Return the label of the customer/prospect status |
4920 | 4920 | * |
@@ -4923,7 +4923,7 @@ discard block |
||
4923 | 4923 | */ |
4924 | 4924 | public function LibCustProspStatut($status) |
4925 | 4925 | { |
4926 | - // phpcs:enable |
|
4926 | + // phpcs:enable |
|
4927 | 4927 | global $langs; |
4928 | 4928 | $langs->load('companies'); |
4929 | 4929 |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | return $this->LibStatut($this->status, $mode); |
639 | 639 | } |
640 | 640 | |
641 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
641 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
642 | 642 | /** |
643 | 643 | * Return the status |
644 | 644 | * |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | */ |
649 | 649 | public function LibStatut($status, $mode = 0) |
650 | 650 | { |
651 | - // phpcs:enable |
|
651 | + // phpcs:enable |
|
652 | 652 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
653 | 653 | global $langs; |
654 | 654 | //$langs->load("mymodule"); |
@@ -181,9 +181,9 @@ |
||
181 | 181 | public $max_total_amount_of_all_payments; |
182 | 182 | public $preapproval_key; |
183 | 183 | public $total_amount_of_all_payments; |
184 | - public $stripe_card_ref; // External system payment mode ID |
|
185 | - public $stripe_account; // External system customer ID |
|
186 | - public $ext_payment_site; // External system 'StripeLive', 'StripeTest', 'StancerLive', 'StancerTest', ... |
|
184 | + public $stripe_card_ref; // External system payment mode ID |
|
185 | + public $stripe_account; // External system customer ID |
|
186 | + public $ext_payment_site; // External system 'StripeLive', 'StripeTest', 'StancerLive', 'StancerTest', ... |
|
187 | 187 | |
188 | 188 | /** |
189 | 189 | * @var int Status |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | return $this->LibStatut($this->status, $mode); |
499 | 499 | } |
500 | 500 | |
501 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
501 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
502 | 502 | /** |
503 | 503 | * Return the status |
504 | 504 | * |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | */ |
509 | 509 | public function LibStatut($status, $mode = 0) |
510 | 510 | { |
511 | - // phpcs:enable |
|
511 | + // phpcs:enable |
|
512 | 512 | if (is_null($status)) { |
513 | 513 | return ''; |
514 | 514 | } |
@@ -1743,7 +1743,7 @@ discard block |
||
1743 | 1743 | } |
1744 | 1744 | } |
1745 | 1745 | |
1746 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1746 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1747 | 1747 | /** |
1748 | 1748 | * Clean sensible object datas |
1749 | 1749 | * |
@@ -1752,7 +1752,7 @@ discard block |
||
1752 | 1752 | */ |
1753 | 1753 | protected function _cleanObjectDatas($object) |
1754 | 1754 | { |
1755 | - // phpcs:enable |
|
1755 | + // phpcs:enable |
|
1756 | 1756 | $object = parent::_cleanObjectDatas($object); |
1757 | 1757 | |
1758 | 1758 | unset($object->nom); // ->name already defined and nom deprecated |