@@ -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 | } |
@@ -1097,7 +1097,7 @@ discard block |
||
| 1097 | 1097 | } |
| 1098 | 1098 | |
| 1099 | 1099 | |
| 1100 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1100 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1101 | 1101 | /** |
| 1102 | 1102 | * Create a contact/address from thirdparty |
| 1103 | 1103 | * |
@@ -1115,7 +1115,7 @@ discard block |
||
| 1115 | 1115 | |
| 1116 | 1116 | $this->db->begin(); |
| 1117 | 1117 | |
| 1118 | - // phpcs:enable |
|
| 1118 | + // phpcs:enable |
|
| 1119 | 1119 | require_once constant('DOL_DOCUMENT_ROOT') . '/contact/class/contact.class.php'; |
| 1120 | 1120 | $contact = new Contact($this->db); |
| 1121 | 1121 | |
@@ -2252,7 +2252,7 @@ discard block |
||
| 2252 | 2252 | return 0; |
| 2253 | 2253 | } |
| 2254 | 2254 | |
| 2255 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2255 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2256 | 2256 | /** |
| 2257 | 2257 | * Define third party as a customer |
| 2258 | 2258 | * |
@@ -2263,7 +2263,7 @@ discard block |
||
| 2263 | 2263 | public function set_as_client() |
| 2264 | 2264 | { |
| 2265 | 2265 | global $conf; |
| 2266 | - // phpcs:enable |
|
| 2266 | + // phpcs:enable |
|
| 2267 | 2267 | dol_syslog(get_class($this) . "::set_as_client is deprecated use setAsCustomer instead", LOG_NOTICE); |
| 2268 | 2268 | return $this->setAsCustomer(); |
| 2269 | 2269 | } |
@@ -2296,7 +2296,7 @@ discard block |
||
| 2296 | 2296 | return 0; |
| 2297 | 2297 | } |
| 2298 | 2298 | |
| 2299 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2299 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2300 | 2300 | /** |
| 2301 | 2301 | * Defines the company as a customer |
| 2302 | 2302 | * |
@@ -2307,7 +2307,7 @@ discard block |
||
| 2307 | 2307 | */ |
| 2308 | 2308 | public function set_remise_client($remise, $note, User $user) |
| 2309 | 2309 | { |
| 2310 | - // phpcs:enable |
|
| 2310 | + // phpcs:enable |
|
| 2311 | 2311 | global $conf, $langs; |
| 2312 | 2312 | |
| 2313 | 2313 | // Parameter cleaning |
@@ -2357,7 +2357,7 @@ discard block |
||
| 2357 | 2357 | return -1; |
| 2358 | 2358 | } |
| 2359 | 2359 | |
| 2360 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2360 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2361 | 2361 | /** |
| 2362 | 2362 | * Defines the company as a customer |
| 2363 | 2363 | * |
@@ -2368,7 +2368,7 @@ discard block |
||
| 2368 | 2368 | */ |
| 2369 | 2369 | public function set_remise_supplier($remise, $note, User $user) |
| 2370 | 2370 | { |
| 2371 | - // phpcs:enable |
|
| 2371 | + // phpcs:enable |
|
| 2372 | 2372 | global $conf, $langs; |
| 2373 | 2373 | |
| 2374 | 2374 | // Parameter cleaning |
@@ -2418,7 +2418,7 @@ discard block |
||
| 2418 | 2418 | return -1; |
| 2419 | 2419 | } |
| 2420 | 2420 | |
| 2421 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2421 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2422 | 2422 | /** |
| 2423 | 2423 | * Add a discount for third party |
| 2424 | 2424 | * |
@@ -2432,7 +2432,7 @@ discard block |
||
| 2432 | 2432 | */ |
| 2433 | 2433 | public function set_remise_except($remise, User $user, $desc, $vatrate = '', $discount_type = 0, $price_base_type = 'HT') |
| 2434 | 2434 | { |
| 2435 | - // phpcs:enable |
|
| 2435 | + // phpcs:enable |
|
| 2436 | 2436 | global $langs; |
| 2437 | 2437 | |
| 2438 | 2438 | // Clean parameters |
@@ -2618,7 +2618,7 @@ discard block |
||
| 2618 | 2618 | return -1; |
| 2619 | 2619 | } |
| 2620 | 2620 | |
| 2621 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2621 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2622 | 2622 | /** |
| 2623 | 2623 | * Add link to sales representative |
| 2624 | 2624 | * |
@@ -2628,7 +2628,7 @@ discard block |
||
| 2628 | 2628 | */ |
| 2629 | 2629 | public function add_commercial(User $user, $commid) |
| 2630 | 2630 | { |
| 2631 | - // phpcs:enable |
|
| 2631 | + // phpcs:enable |
|
| 2632 | 2632 | $error = 0; |
| 2633 | 2633 | |
| 2634 | 2634 | if ($this->id > 0 && $commid > 0) { |
@@ -2678,7 +2678,7 @@ discard block |
||
| 2678 | 2678 | return 0; |
| 2679 | 2679 | } |
| 2680 | 2680 | |
| 2681 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2681 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2682 | 2682 | /** |
| 2683 | 2683 | * Add link to sales representative |
| 2684 | 2684 | * |
@@ -2688,7 +2688,7 @@ discard block |
||
| 2688 | 2688 | */ |
| 2689 | 2689 | public function del_commercial(User $user, $commid) |
| 2690 | 2690 | { |
| 2691 | - // phpcs:enable |
|
| 2691 | + // phpcs:enable |
|
| 2692 | 2692 | $error = 0; |
| 2693 | 2693 | $this->context = array('commercial_modified' => $commid); |
| 2694 | 2694 | |
@@ -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 | * |
@@ -3259,7 +3259,7 @@ discard block |
||
| 3259 | 3259 | */ |
| 3260 | 3260 | public function contact_array_objects() |
| 3261 | 3261 | { |
| 3262 | - // phpcs:enable |
|
| 3262 | + // phpcs:enable |
|
| 3263 | 3263 | require_once constant('DOL_DOCUMENT_ROOT') . '/contact/class/contact.class.php'; |
| 3264 | 3264 | $contacts = array(); |
| 3265 | 3265 | |
@@ -3283,7 +3283,7 @@ discard block |
||
| 3283 | 3283 | return $contacts; |
| 3284 | 3284 | } |
| 3285 | 3285 | |
| 3286 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3286 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3287 | 3287 | /** |
| 3288 | 3288 | * Return property of contact from its id |
| 3289 | 3289 | * |
@@ -3293,7 +3293,7 @@ discard block |
||
| 3293 | 3293 | */ |
| 3294 | 3294 | public function contact_get_property($rowid, $mode) |
| 3295 | 3295 | { |
| 3296 | - // phpcs:enable |
|
| 3296 | + // phpcs:enable |
|
| 3297 | 3297 | $contact_property = ''; |
| 3298 | 3298 | |
| 3299 | 3299 | if (empty($rowid)) { |
@@ -3326,7 +3326,7 @@ discard block |
||
| 3326 | 3326 | } |
| 3327 | 3327 | |
| 3328 | 3328 | |
| 3329 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3329 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3330 | 3330 | /** |
| 3331 | 3331 | * Return bank number property of thirdparty (label or rum) |
| 3332 | 3332 | * |
@@ -3335,7 +3335,7 @@ discard block |
||
| 3335 | 3335 | */ |
| 3336 | 3336 | public function display_rib($mode = 'label') |
| 3337 | 3337 | { |
| 3338 | - // phpcs:enable |
|
| 3338 | + // phpcs:enable |
|
| 3339 | 3339 | require_once constant('DOL_DOCUMENT_ROOT') . '/societe/class/companybankaccount.class.php'; |
| 3340 | 3340 | |
| 3341 | 3341 | $bac = new CompanyBankAccount($this->db); |
@@ -3363,7 +3363,7 @@ discard block |
||
| 3363 | 3363 | } |
| 3364 | 3364 | } |
| 3365 | 3365 | |
| 3366 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3366 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3367 | 3367 | /** |
| 3368 | 3368 | * Return Array of RIB |
| 3369 | 3369 | * |
@@ -3371,7 +3371,7 @@ discard block |
||
| 3371 | 3371 | */ |
| 3372 | 3372 | public function get_all_rib() |
| 3373 | 3373 | { |
| 3374 | - // phpcs:enable |
|
| 3374 | + // phpcs:enable |
|
| 3375 | 3375 | require_once constant('DOL_DOCUMENT_ROOT') . '/societe/class/companybankaccount.class.php'; |
| 3376 | 3376 | $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe_rib WHERE type='ban' AND fk_soc = " . ((int) $this->id); |
| 3377 | 3377 | $result = $this->db->query($sql); |
@@ -3393,7 +3393,7 @@ discard block |
||
| 3393 | 3393 | } |
| 3394 | 3394 | } |
| 3395 | 3395 | |
| 3396 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3396 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3397 | 3397 | /** |
| 3398 | 3398 | * Assigns a customer code from the code control module. |
| 3399 | 3399 | * Return value is stored into this->code_client |
@@ -3404,7 +3404,7 @@ discard block |
||
| 3404 | 3404 | */ |
| 3405 | 3405 | public function get_codeclient($objsoc = null, $type = 0) |
| 3406 | 3406 | { |
| 3407 | - // phpcs:enable |
|
| 3407 | + // phpcs:enable |
|
| 3408 | 3408 | global $conf; |
| 3409 | 3409 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
| 3410 | 3410 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3426,7 +3426,7 @@ discard block |
||
| 3426 | 3426 | } |
| 3427 | 3427 | } |
| 3428 | 3428 | |
| 3429 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3429 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3430 | 3430 | /** |
| 3431 | 3431 | * Assigns a vendor code from the code control module. |
| 3432 | 3432 | * Return value is stored into this->code_fournisseur |
@@ -3437,7 +3437,7 @@ discard block |
||
| 3437 | 3437 | */ |
| 3438 | 3438 | public function get_codefournisseur($objsoc = null, $type = 1) |
| 3439 | 3439 | { |
| 3440 | - // phpcs:enable |
|
| 3440 | + // phpcs:enable |
|
| 3441 | 3441 | global $conf; |
| 3442 | 3442 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
| 3443 | 3443 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3458,7 +3458,7 @@ discard block |
||
| 3458 | 3458 | } |
| 3459 | 3459 | } |
| 3460 | 3460 | |
| 3461 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3461 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3462 | 3462 | /** |
| 3463 | 3463 | * Check if a client code is editable based on the parameters of the |
| 3464 | 3464 | * code control module. |
@@ -3467,7 +3467,7 @@ discard block |
||
| 3467 | 3467 | */ |
| 3468 | 3468 | public function codeclient_modifiable() |
| 3469 | 3469 | { |
| 3470 | - // phpcs:enable |
|
| 3470 | + // phpcs:enable |
|
| 3471 | 3471 | global $conf; |
| 3472 | 3472 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
| 3473 | 3473 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3499,7 +3499,7 @@ discard block |
||
| 3499 | 3499 | } |
| 3500 | 3500 | |
| 3501 | 3501 | |
| 3502 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3502 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3503 | 3503 | /** |
| 3504 | 3504 | * Check if a vendor code is editable in the code control module configuration |
| 3505 | 3505 | * |
@@ -3507,7 +3507,7 @@ discard block |
||
| 3507 | 3507 | */ |
| 3508 | 3508 | public function codefournisseur_modifiable() |
| 3509 | 3509 | { |
| 3510 | - // phpcs:enable |
|
| 3510 | + // phpcs:enable |
|
| 3511 | 3511 | global $conf; |
| 3512 | 3512 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
| 3513 | 3513 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3539,7 +3539,7 @@ discard block |
||
| 3539 | 3539 | } |
| 3540 | 3540 | |
| 3541 | 3541 | |
| 3542 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3542 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3543 | 3543 | /** |
| 3544 | 3544 | * Check customer code |
| 3545 | 3545 | * |
@@ -3553,7 +3553,7 @@ discard block |
||
| 3553 | 3553 | */ |
| 3554 | 3554 | public function check_codeclient() |
| 3555 | 3555 | { |
| 3556 | - // phpcs:enable |
|
| 3556 | + // phpcs:enable |
|
| 3557 | 3557 | global $conf; |
| 3558 | 3558 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
| 3559 | 3559 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3580,7 +3580,7 @@ discard block |
||
| 3580 | 3580 | } |
| 3581 | 3581 | } |
| 3582 | 3582 | |
| 3583 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3583 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3584 | 3584 | /** |
| 3585 | 3585 | * Check supplier code |
| 3586 | 3586 | * |
@@ -3594,7 +3594,7 @@ discard block |
||
| 3594 | 3594 | */ |
| 3595 | 3595 | public function check_codefournisseur() |
| 3596 | 3596 | { |
| 3597 | - // phpcs:enable |
|
| 3597 | + // phpcs:enable |
|
| 3598 | 3598 | global $conf; |
| 3599 | 3599 | if (getDolGlobalString('SOCIETE_CODECLIENT_ADDON')) { |
| 3600 | 3600 | $module = getDolGlobalString('SOCIETE_CODECLIENT_ADDON'); |
@@ -3621,7 +3621,7 @@ discard block |
||
| 3621 | 3621 | } |
| 3622 | 3622 | } |
| 3623 | 3623 | |
| 3624 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3624 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3625 | 3625 | /** |
| 3626 | 3626 | * Assigns a accounting code from the accounting code module. |
| 3627 | 3627 | * Computed value is stored into this->code_compta or this->code_compta_fournisseur according to $type. |
@@ -3632,7 +3632,7 @@ discard block |
||
| 3632 | 3632 | */ |
| 3633 | 3633 | public function get_codecompta($type) |
| 3634 | 3634 | { |
| 3635 | - // phpcs:enable |
|
| 3635 | + // phpcs:enable |
|
| 3636 | 3636 | global $conf; |
| 3637 | 3637 | |
| 3638 | 3638 | if (getDolGlobalString('SOCIETE_CODECOMPTA_ADDON')) { |
@@ -3780,7 +3780,7 @@ discard block |
||
| 3780 | 3780 | return array(); |
| 3781 | 3781 | } |
| 3782 | 3782 | |
| 3783 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3783 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3784 | 3784 | /** |
| 3785 | 3785 | * Returns if a profid should be verified to be unique |
| 3786 | 3786 | * |
@@ -3789,7 +3789,7 @@ discard block |
||
| 3789 | 3789 | */ |
| 3790 | 3790 | public function id_prof_verifiable($idprof) |
| 3791 | 3791 | { |
| 3792 | - // phpcs:enable |
|
| 3792 | + // phpcs:enable |
|
| 3793 | 3793 | global $conf; |
| 3794 | 3794 | |
| 3795 | 3795 | switch ($idprof) { |
@@ -3818,7 +3818,7 @@ discard block |
||
| 3818 | 3818 | return $ret; |
| 3819 | 3819 | } |
| 3820 | 3820 | |
| 3821 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3821 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3822 | 3822 | /** |
| 3823 | 3823 | * Verify if a profid exists into database for others thirds |
| 3824 | 3824 | * |
@@ -3829,7 +3829,7 @@ discard block |
||
| 3829 | 3829 | */ |
| 3830 | 3830 | public function id_prof_exists($idprof, $value, $socid = 0) |
| 3831 | 3831 | { |
| 3832 | - // phpcs:enable |
|
| 3832 | + // phpcs:enable |
|
| 3833 | 3833 | $field = $idprof; |
| 3834 | 3834 | |
| 3835 | 3835 | switch ($idprof) { // For backward compatibility |
@@ -3879,7 +3879,7 @@ discard block |
||
| 3879 | 3879 | } |
| 3880 | 3880 | } |
| 3881 | 3881 | |
| 3882 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3882 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3883 | 3883 | /** |
| 3884 | 3884 | * Check the validity of a professional identifier according to the country of the company (siren, siret, ...) |
| 3885 | 3885 | * |
@@ -3890,7 +3890,7 @@ discard block |
||
| 3890 | 3890 | */ |
| 3891 | 3891 | public function id_prof_check($idprof, $soc) |
| 3892 | 3892 | { |
| 3893 | - // phpcs:enable |
|
| 3893 | + // phpcs:enable |
|
| 3894 | 3894 | global $conf; |
| 3895 | 3895 | |
| 3896 | 3896 | // load the library necessary to check the professional identifiers |
@@ -3935,7 +3935,7 @@ discard block |
||
| 3935 | 3935 | return $ok; |
| 3936 | 3936 | } |
| 3937 | 3937 | |
| 3938 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3938 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3939 | 3939 | /** |
| 3940 | 3940 | * Return an url to check online a professional id or empty string |
| 3941 | 3941 | * |
@@ -3946,7 +3946,7 @@ discard block |
||
| 3946 | 3946 | */ |
| 3947 | 3947 | public function id_prof_url($idprof, $thirdparty) |
| 3948 | 3948 | { |
| 3949 | - // phpcs:enable |
|
| 3949 | + // phpcs:enable |
|
| 3950 | 3950 | global $conf, $langs, $hookmanager; |
| 3951 | 3951 | |
| 3952 | 3952 | $url = ''; |
@@ -3991,7 +3991,7 @@ discard block |
||
| 3991 | 3991 | return ''; |
| 3992 | 3992 | } |
| 3993 | 3993 | |
| 3994 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3994 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3995 | 3995 | /** |
| 3996 | 3996 | * Indicates if the company has projects |
| 3997 | 3997 | * |
@@ -3999,7 +3999,7 @@ discard block |
||
| 3999 | 3999 | */ |
| 4000 | 4000 | public function has_projects() |
| 4001 | 4001 | { |
| 4002 | - // phpcs:enable |
|
| 4002 | + // phpcs:enable |
|
| 4003 | 4003 | $sql = "SELECT COUNT(*) as numproj FROM " . MAIN_DB_PREFIX . "projet WHERE fk_soc = " . ((int) $this->id); |
| 4004 | 4004 | $resql = $this->db->query($sql); |
| 4005 | 4005 | if ($resql) { |
@@ -4090,7 +4090,7 @@ discard block |
||
| 4090 | 4090 | return isInEEC($this); |
| 4091 | 4091 | } |
| 4092 | 4092 | |
| 4093 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4093 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4094 | 4094 | /** |
| 4095 | 4095 | * Load the list of provider categories |
| 4096 | 4096 | * |
@@ -4098,7 +4098,7 @@ discard block |
||
| 4098 | 4098 | */ |
| 4099 | 4099 | public function LoadSupplierCateg() |
| 4100 | 4100 | { |
| 4101 | - // phpcs:enable |
|
| 4101 | + // phpcs:enable |
|
| 4102 | 4102 | $this->SupplierCategories = array(); |
| 4103 | 4103 | $sql = "SELECT rowid, label"; |
| 4104 | 4104 | $sql .= " FROM " . MAIN_DB_PREFIX . "categorie"; |
@@ -4115,7 +4115,7 @@ discard block |
||
| 4115 | 4115 | } |
| 4116 | 4116 | } |
| 4117 | 4117 | |
| 4118 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4118 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4119 | 4119 | /** |
| 4120 | 4120 | * Insert link supplier - category |
| 4121 | 4121 | * |
@@ -4124,7 +4124,7 @@ discard block |
||
| 4124 | 4124 | */ |
| 4125 | 4125 | public function AddFournisseurInCategory($categorie_id) |
| 4126 | 4126 | { |
| 4127 | - // phpcs:enable |
|
| 4127 | + // phpcs:enable |
|
| 4128 | 4128 | if ($categorie_id > 0 && $this->id > 0) { |
| 4129 | 4129 | $sql = "INSERT INTO " . MAIN_DB_PREFIX . "categorie_fournisseur (fk_categorie, fk_soc) "; |
| 4130 | 4130 | $sql .= " VALUES (" . ((int) $categorie_id) . ", " . ((int) $this->id) . ")"; |
@@ -4244,7 +4244,7 @@ discard block |
||
| 4244 | 4244 | return 0; |
| 4245 | 4245 | } |
| 4246 | 4246 | |
| 4247 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4247 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4248 | 4248 | /** |
| 4249 | 4249 | * Create a third party into database from a member object |
| 4250 | 4250 | * |
@@ -4256,7 +4256,7 @@ discard block |
||
| 4256 | 4256 | */ |
| 4257 | 4257 | public function create_from_member(Adherent $member, $socname = '', $socalias = '', $customercode = '') |
| 4258 | 4258 | { |
| 4259 | - // phpcs:enable |
|
| 4259 | + // phpcs:enable |
|
| 4260 | 4260 | global $conf, $user, $langs; |
| 4261 | 4261 | |
| 4262 | 4262 | dol_syslog(get_class($this) . "::create_from_member", LOG_DEBUG); |
@@ -4623,7 +4623,7 @@ discard block |
||
| 4623 | 4623 | return $this->LibProspLevel($this->fk_prospectlevel); |
| 4624 | 4624 | } |
| 4625 | 4625 | |
| 4626 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4626 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4627 | 4627 | /** |
| 4628 | 4628 | * Return label of prospect level |
| 4629 | 4629 | * |
@@ -4632,7 +4632,7 @@ discard block |
||
| 4632 | 4632 | */ |
| 4633 | 4633 | public function LibProspLevel($fk_prospectlevel) |
| 4634 | 4634 | { |
| 4635 | - // phpcs:enable |
|
| 4635 | + // phpcs:enable |
|
| 4636 | 4636 | global $langs; |
| 4637 | 4637 | |
| 4638 | 4638 | $label = ''; |
@@ -4659,7 +4659,7 @@ discard block |
||
| 4659 | 4659 | return $this->LibProspCommStatut($this->stcomm_id, $mode, $label, $this->stcomm_picto); |
| 4660 | 4660 | } |
| 4661 | 4661 | |
| 4662 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4662 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4663 | 4663 | /** |
| 4664 | 4664 | * Return label of a given status |
| 4665 | 4665 | * |
@@ -4675,7 +4675,7 @@ discard block |
||
| 4675 | 4675 | */ |
| 4676 | 4676 | public function LibProspCommStatut($status, $mode = 0, $label = '', $picto = '') |
| 4677 | 4677 | { |
| 4678 | - // phpcs:enable |
|
| 4678 | + // phpcs:enable |
|
| 4679 | 4679 | global $langs; |
| 4680 | 4680 | |
| 4681 | 4681 | $langs->load('customers'); |
@@ -4920,7 +4920,7 @@ discard block |
||
| 4920 | 4920 | return $this->LibCustProspStatut($this->client); |
| 4921 | 4921 | } |
| 4922 | 4922 | |
| 4923 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4923 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 4924 | 4924 | /** |
| 4925 | 4925 | * Return the label of the customer/prospect status |
| 4926 | 4926 | * |
@@ -4929,7 +4929,7 @@ discard block |
||
| 4929 | 4929 | */ |
| 4930 | 4930 | public function LibCustProspStatut($status) |
| 4931 | 4931 | { |
| 4932 | - // phpcs:enable |
|
| 4932 | + // phpcs:enable |
|
| 4933 | 4933 | global $langs; |
| 4934 | 4934 | $langs->load('companies'); |
| 4935 | 4935 | |
@@ -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 | |
@@ -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 |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | return $this->_cleanObjectDatas($this->contact); |
| 551 | 551 | } |
| 552 | 552 | |
| 553 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 553 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 554 | 554 | /** |
| 555 | 555 | * Clean sensible object datas |
| 556 | 556 | * |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | */ |
| 560 | 560 | protected function _cleanObjectDatas($object) |
| 561 | 561 | { |
| 562 | - // phpcs:enable |
|
| 562 | + // phpcs:enable |
|
| 563 | 563 | $object = parent::_cleanObjectDatas($object); |
| 564 | 564 | |
| 565 | 565 | unset($object->total_ht); |