@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | return $object; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 84 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 85 | 85 | /** |
| 86 | 86 | * Set content of ->tpl array, to use into template |
| 87 | 87 | * |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function assign_values(&$action, $id) |
| 93 | 93 | { |
| 94 | - // phpcs:enable |
|
| 94 | + // phpcs:enable |
|
| 95 | 95 | global $conf, $langs, $user, $canvas; |
| 96 | 96 | global $form, $formcompany, $objsoc; |
| 97 | 97 | |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 278 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 279 | 279 | /** |
| 280 | 280 | * Assign POST values into object |
| 281 | 281 | * |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | */ |
| 284 | 284 | private function assign_post() |
| 285 | 285 | { |
| 286 | - // phpcs:enable |
|
| 286 | + // phpcs:enable |
|
| 287 | 287 | global $langs, $mysoc; |
| 288 | 288 | |
| 289 | 289 | $this->object->socid = GETPOSTINT("socid"); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | return $out; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 77 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 78 | 78 | /** |
| 79 | 79 | * Assign custom values for canvas |
| 80 | 80 | * |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function assign_values(&$action, $id) |
| 86 | 86 | { |
| 87 | - // phpcs:enable |
|
| 87 | + // phpcs:enable |
|
| 88 | 88 | global $conf, $db, $langs, $user; |
| 89 | 89 | global $form; |
| 90 | 90 | |
@@ -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)) { |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | return $this->_cleanObjectDatas($multicurrency); |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 342 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 343 | 343 | /** |
| 344 | 344 | * Clean sensible object datas |
| 345 | 345 | * |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | */ |
| 349 | 349 | protected function _cleanObjectDatas($object) |
| 350 | 350 | { |
| 351 | - // phpcs:enable |
|
| 351 | + // phpcs:enable |
|
| 352 | 352 | $object = parent::_cleanObjectDatas($object); |
| 353 | 353 | |
| 354 | 354 | // Clear all fields out of interest |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | return $object; |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 368 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 369 | 369 | /** |
| 370 | 370 | * Clean sensible MultiCurrencyRate object datas |
| 371 | 371 | * |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | */ |
| 375 | 375 | protected function _cleanObjectDatasRate($object) |
| 376 | 376 | { |
| 377 | - // phpcs:enable |
|
| 377 | + // phpcs:enable |
|
| 378 | 378 | $object = parent::_cleanObjectDatas($object); |
| 379 | 379 | |
| 380 | 380 | // Clear all fields out of interest |
@@ -235,10 +235,10 @@ |
||
| 235 | 235 | $id = $ecmdirtmp->create($user); |
| 236 | 236 | if ($id > 0) { |
| 237 | 237 | $newdirsql = array('id' => $id, |
| 238 | - 'id_mere' => $ecmdirtmp->fk_parent, |
|
| 239 | - 'label' => $ecmdirtmp->label, |
|
| 240 | - 'description' => $ecmdirtmp->description, |
|
| 241 | - 'fullrelativename' => $relativepathmissing); |
|
| 238 | + 'id_mere' => $ecmdirtmp->fk_parent, |
|
| 239 | + 'label' => $ecmdirtmp->label, |
|
| 240 | + 'description' => $ecmdirtmp->description, |
|
| 241 | + 'fullrelativename' => $relativepathmissing); |
|
| 242 | 242 | $sqltree[] = $newdirsql; // We complete fulltree for following loops |
| 243 | 243 | //var_dump($sqltree); |
| 244 | 244 | $adirwascreated = 1; |
@@ -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 | } |
@@ -558,7 +558,7 @@ discard block |
||
| 558 | 558 | return $ret; |
| 559 | 559 | } |
| 560 | 560 | |
| 561 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 561 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 562 | 562 | /** |
| 563 | 563 | * Load this->motherof that is array(id_son=>id_parent, ...) |
| 564 | 564 | * |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | */ |
| 567 | 567 | public function load_motherof() |
| 568 | 568 | { |
| 569 | - // phpcs:enable |
|
| 569 | + // phpcs:enable |
|
| 570 | 570 | global $conf; |
| 571 | 571 | |
| 572 | 572 | $this->motherof = array(); |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | return $this->LibStatut($this->status, $mode); |
| 604 | 604 | } |
| 605 | 605 | |
| 606 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 606 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 607 | 607 | /** |
| 608 | 608 | * Return the status |
| 609 | 609 | * |
@@ -613,13 +613,13 @@ discard block |
||
| 613 | 613 | */ |
| 614 | 614 | public static function LibStatut($status, $mode = 0) |
| 615 | 615 | { |
| 616 | - // phpcs:enable |
|
| 616 | + // phpcs:enable |
|
| 617 | 617 | global $langs; |
| 618 | 618 | return ''; |
| 619 | 619 | } |
| 620 | 620 | |
| 621 | 621 | |
| 622 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 622 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 623 | 623 | /** |
| 624 | 624 | * Reconstruit l'arborescence des categories sous la forme d'un tableau à partir de la base de donnée |
| 625 | 625 | * Renvoi un tableau de tableau('id','id_mere',...) trie selon arbre et avec: |
@@ -641,7 +641,7 @@ discard block |
||
| 641 | 641 | */ |
| 642 | 642 | public function get_full_arbo($force = 0) |
| 643 | 643 | { |
| 644 | - // phpcs:enable |
|
| 644 | + // phpcs:enable |
|
| 645 | 645 | global $conf; |
| 646 | 646 | |
| 647 | 647 | if (empty($force) && !empty($this->full_arbo_loaded)) { |
@@ -789,7 +789,7 @@ discard block |
||
| 789 | 789 | } |
| 790 | 790 | } |
| 791 | 791 | |
| 792 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 792 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 793 | 793 | /** |
| 794 | 794 | * Call trigger based on this instance. |
| 795 | 795 | * We implement it here because this class doe not extend CommonObject. |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | */ |
| 805 | 805 | public function call_trigger($triggerName, $user) |
| 806 | 806 | { |
| 807 | - // phpcs:enable |
|
| 807 | + // phpcs:enable |
|
| 808 | 808 | global $langs, $conf; |
| 809 | 809 | |
| 810 | 810 | include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php'; |
@@ -966,7 +966,7 @@ |
||
| 966 | 966 | /** |
| 967 | 967 | * @var array $suffix2numAsked map HTTP query parameter suffixes (like '1_0') to line indices so that |
| 968 | 968 | * extrafields from HTTP query can be assigned to the correct dispatch line |
| 969 | - */ |
|
| 969 | + */ |
|
| 970 | 970 | $suffix2numAsked = array(); |
| 971 | 971 | $dispatchLines = array(); |
| 972 | 972 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | } |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 201 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 202 | 202 | /** |
| 203 | 203 | * Return tree of Dolistore categories. $this->categories must have been loaded before. |
| 204 | 204 | * |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function get_categories($parent = 0) |
| 209 | 209 | { |
| 210 | - // phpcs:enable |
|
| 210 | + // phpcs:enable |
|
| 211 | 211 | if (!isset($this->categories)) { |
| 212 | 212 | die('not possible'); |
| 213 | 213 | } |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | } |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 248 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 249 | 249 | /** |
| 250 | 250 | * Return list of product formatted for output |
| 251 | 251 | * |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | public function get_products() |
| 255 | 255 | { |
| 256 | - // phpcs:enable |
|
| 256 | + // phpcs:enable |
|
| 257 | 257 | global $langs, $conf; |
| 258 | 258 | $html = ""; |
| 259 | 259 | $last_month = time() - (30 * 24 * 60 * 60); |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | return $html; |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 345 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 346 | 346 | /** |
| 347 | 347 | * get previous link |
| 348 | 348 | * |
@@ -351,11 +351,11 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | public function get_previous_link($text = '<<') |
| 353 | 353 | { |
| 354 | - // phpcs:enable |
|
| 354 | + // phpcs:enable |
|
| 355 | 355 | return '<a href="' . $this->get_previous_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>'; |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 358 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 359 | 359 | /** |
| 360 | 360 | * get next link |
| 361 | 361 | * |
@@ -364,11 +364,11 @@ discard block |
||
| 364 | 364 | */ |
| 365 | 365 | public function get_next_link($text = '>>') |
| 366 | 366 | { |
| 367 | - // phpcs:enable |
|
| 367 | + // phpcs:enable |
|
| 368 | 368 | return '<a href="' . $this->get_next_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>'; |
| 369 | 369 | } |
| 370 | 370 | |
| 371 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 371 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 372 | 372 | /** |
| 373 | 373 | * get previous url |
| 374 | 374 | * |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | public function get_previous_url() |
| 378 | 378 | { |
| 379 | - // phpcs:enable |
|
| 379 | + // phpcs:enable |
|
| 380 | 380 | $param_array = array(); |
| 381 | 381 | if ($this->start < $this->per_page) { |
| 382 | 382 | $sub = 0; |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | return $this->url . "&" . $param; |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 395 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 396 | 396 | /** |
| 397 | 397 | * get next url |
| 398 | 398 | * |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | */ |
| 401 | 401 | public function get_next_url() |
| 402 | 402 | { |
| 403 | - // phpcs:enable |
|
| 403 | + // phpcs:enable |
|
| 404 | 404 | $param_array = array(); |
| 405 | 405 | if (count($this->products) < $this->per_page) { |
| 406 | 406 | $add = 0; |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | return $this->url . "&" . $param; |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 419 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 420 | 420 | /** |
| 421 | 421 | * version compare |
| 422 | 422 | * |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | */ |
| 427 | 427 | public function version_compare($v1, $v2) |
| 428 | 428 | { |
| 429 | - // phpcs:enable |
|
| 429 | + // phpcs:enable |
|
| 430 | 430 | $v1 = explode('.', $v1); |
| 431 | 431 | $v2 = explode('.', $v2); |
| 432 | 432 | $ret = 0; |