@@ -1510,8 +1510,8 @@ |
||
1510 | 1510 | $actioncomm = new ActionComm($this->db); |
1511 | 1511 | $actioncomm->type_code = $object->actiontypecode; // Type of event ('AC_OTH', 'AC_OTH_AUTO', 'AC_XXX'...) |
1512 | 1512 | $actioncomm->code = 'AC_' . $action; |
1513 | - $actioncomm->label = $object->actionmsg2; // Label of event |
|
1514 | - $actioncomm->note_private = $object->actionmsg; // Description |
|
1513 | + $actioncomm->label = $object->actionmsg2; // Label of event |
|
1514 | + $actioncomm->note_private = $object->actionmsg; // Description |
|
1515 | 1515 | $actioncomm->fk_project = $projectid; |
1516 | 1516 | $actioncomm->datep = $now; |
1517 | 1517 | $actioncomm->datef = $now; |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | print '<center>'; |
439 | 439 | |
440 | 440 | print '<br>'; |
441 | - $disabled = 0; // This is used to disable or not the bulk selection of target warehouse. No reason to have it disabled so forced to 0. |
|
441 | + $disabled = 0; // This is used to disable or not the bulk selection of target warehouse. No reason to have it disabled so forced to 0. |
|
442 | 442 | |
443 | 443 | if ($object->statut == Reception::STATUS_DRAFT || ($object->statut == Reception::STATUS_VALIDATED && !getDolGlobalString('STOCK_CALCULATE_ON_RECEPTION'))) { |
444 | 444 | $formproduct = new FormProduct($db); |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | print '<td class="right">' . $langs->trans("SupplierRef") . '</td>'; |
542 | 542 | print '<td class="right">' . $langs->trans("QtyOrdered") . '</td>'; |
543 | 543 | if ($object->status == Reception::STATUS_DRAFT) { |
544 | - print '<td class="right">' . $langs->trans("QtyToReceive"); // Qty to dispatch (sum for all lines of batch detail if there is) |
|
544 | + print '<td class="right">' . $langs->trans("QtyToReceive"); // Qty to dispatch (sum for all lines of batch detail if there is) |
|
545 | 545 | } else { |
546 | 546 | print '<td class="right">' . $langs->trans("QtyDispatchedShort") . '</td>'; |
547 | 547 | } |
@@ -591,7 +591,7 @@ |
||
591 | 591 | for ($i = 0; $i < $count; $i++) { |
592 | 592 | foreach ($ecmfile->lines as $line) { |
593 | 593 | if ($filearray[$i]['name'] == $line->filename) { |
594 | - $filearray[$i] = array_merge($filearray[$i], (array)$line); |
|
594 | + $filearray[$i] = array_merge($filearray[$i], (array) $line); |
|
595 | 595 | } |
596 | 596 | } |
597 | 597 | } |
@@ -126,7 +126,7 @@ |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | include_once DOL_DOCUMENT_ROOT . '/core/lib/security2.lib.php'; |
129 | - $login = checkLoginPassEntity($login, $password, $entity, $authmode, 'api'); // Check credentials. |
|
129 | + $login = checkLoginPassEntity($login, $password, $entity, $authmode, 'api'); // Check credentials. |
|
130 | 130 | if ($login === '--bad-login-validity--') { |
131 | 131 | $login = ''; |
132 | 132 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | if ($search_sale == -2) { |
105 | 105 | $sql .= " AND NOT EXISTS (SELECT sc.fk_soc FROM " . MAIN_DB_PREFIX . "societe_commerciaux as sc WHERE sc.fk_soc = p.fk_soc)"; |
106 | 106 | } elseif ($search_sale > 0) { |
107 | - $sql .= " AND EXISTS (SELECT sc.fk_soc FROM " . MAIN_DB_PREFIX . "societe_commerciaux as sc WHERE sc.fk_soc = p.fk_soc AND sc.fk_user = " . ((int)$search_sale) . ")"; |
|
107 | + $sql .= " AND EXISTS (SELECT sc.fk_soc FROM " . MAIN_DB_PREFIX . "societe_commerciaux as sc WHERE sc.fk_soc = p.fk_soc AND sc.fk_user = " . ((int) $search_sale) . ")"; |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 | // Add sql filters |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | } |
499 | 499 | if ($field == 'array_options' && is_array($value)) { |
500 | 500 | foreach ($value as $index => $val) { |
501 | - $this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task);; |
|
501 | + $this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task); ; |
|
502 | 502 | } |
503 | 503 | continue; |
504 | 504 | } |
@@ -372,18 +372,18 @@ discard block |
||
372 | 372 | } |
373 | 373 | |
374 | 374 | /** |
375 | - * Create an invoice using a contract. |
|
376 | - * |
|
377 | - * @param int $contractid Id of the contract |
|
375 | + * Create an invoice using a contract. |
|
376 | + * |
|
377 | + * @param int $contractid Id of the contract |
|
378 | 378 | * @return array Object with cleaned properties |
379 | - * |
|
380 | - * @url POST /createfromcontract/{contractid} |
|
381 | - * |
|
382 | - * @throws RestException 400 |
|
383 | - * @throws RestException 401 |
|
384 | - * @throws RestException 404 |
|
385 | - * @throws RestException 405 |
|
386 | - */ |
|
379 | + * |
|
380 | + * @url POST /createfromcontract/{contractid} |
|
381 | + * |
|
382 | + * @throws RestException 400 |
|
383 | + * @throws RestException 401 |
|
384 | + * @throws RestException 404 |
|
385 | + * @throws RestException 405 |
|
386 | + */ |
|
387 | 387 | public function createInvoiceFromContract($contractid) |
388 | 388 | { |
389 | 389 | |
@@ -1732,7 +1732,7 @@ discard block |
||
1732 | 1732 | ]; |
1733 | 1733 | } |
1734 | 1734 | |
1735 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1735 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1736 | 1736 | /** |
1737 | 1737 | * Clean sensible object datas |
1738 | 1738 | * |
@@ -1741,7 +1741,7 @@ discard block |
||
1741 | 1741 | */ |
1742 | 1742 | protected function _cleanObjectDatas($object) |
1743 | 1743 | { |
1744 | - // phpcs:enable |
|
1744 | + // phpcs:enable |
|
1745 | 1745 | $object = parent::_cleanObjectDatas($object); |
1746 | 1746 | |
1747 | 1747 | unset($object->note); |
@@ -1835,7 +1835,7 @@ discard block |
||
1835 | 1835 | } |
1836 | 1836 | |
1837 | 1837 | |
1838 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1838 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1839 | 1839 | /** |
1840 | 1840 | * Clean sensible object datas |
1841 | 1841 | * |
@@ -1844,7 +1844,7 @@ discard block |
||
1844 | 1844 | */ |
1845 | 1845 | protected function _cleanTemplateObjectDatas($object) |
1846 | 1846 | { |
1847 | - // phpcs:enable |
|
1847 | + // phpcs:enable |
|
1848 | 1848 | $object = parent::_cleanObjectDatas($object); |
1849 | 1849 | |
1850 | 1850 | unset($object->note); |
@@ -275,11 +275,11 @@ |
||
275 | 275 | } |
276 | 276 | $sql .= ' WHERE t.entity IN (' . getEntity('adherent') . ')'; |
277 | 277 | if (!empty($typeid)) { |
278 | - $sql .= ' AND t.fk_adherent_type=' . ((int)$typeid); |
|
278 | + $sql .= ' AND t.fk_adherent_type=' . ((int) $typeid); |
|
279 | 279 | } |
280 | 280 | // Select members of given category |
281 | 281 | if ($category > 0) { |
282 | - $sql .= " AND c.fk_categorie = " . ((int)$category); |
|
282 | + $sql .= " AND c.fk_categorie = " . ((int) $category); |
|
283 | 283 | $sql .= " AND c.fk_member = t.rowid"; |
284 | 284 | } |
285 | 285 | // Add sql filters |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | return $account; |
407 | 407 | } |
408 | 408 | |
409 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
409 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
410 | 410 | /** |
411 | 411 | * Clean sensible object datas |
412 | 412 | * |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | */ |
416 | 416 | protected function _cleanObjectDatas($object) |
417 | 417 | { |
418 | - // phpcs:enable |
|
418 | + // phpcs:enable |
|
419 | 419 | $object = parent::_cleanObjectDatas($object); |
420 | 420 | |
421 | 421 | unset($object->rowid); |
@@ -89,7 +89,7 @@ |
||
89 | 89 | $sql .= ' WHERE t.entity IN (' . getEntity('stock') . ')'; |
90 | 90 | // Select warehouses of given category |
91 | 91 | if ($category > 0) { |
92 | - $sql .= " AND c.fk_categorie = " . ((int)$category); |
|
92 | + $sql .= " AND c.fk_categorie = " . ((int) $category); |
|
93 | 93 | $sql .= " AND c.fk_warehouse = t.rowid "; |
94 | 94 | } |
95 | 95 | // Add sql filters |