@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | |
344 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
344 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
345 | 345 | /** |
346 | 346 | * Clean sensible object datas |
347 | 347 | * |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | */ |
351 | 351 | protected function _cleanObjectDatas($object) |
352 | 352 | { |
353 | - // phpcs:enable |
|
353 | + // phpcs:enable |
|
354 | 354 | $object = parent::_cleanObjectDatas($object); |
355 | 355 | |
356 | 356 | unset($object->rowid); |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | } |
158 | 158 | |
159 | 159 | |
160 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
160 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
161 | 161 | /** |
162 | 162 | * Load description int this->array_import_module, this->array_import_fields, ... of an importable dataset |
163 | 163 | * |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | public function load_arrays($user, $filter = '') |
169 | 169 | { |
170 | - // phpcs:enable |
|
170 | + // phpcs:enable |
|
171 | 171 | global $langs, $conf; |
172 | 172 | |
173 | 173 | dol_syslog(get_class($this) . "::load_arrays user=" . $user->id . " filter=" . $filter); |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | |
288 | 288 | |
289 | 289 | |
290 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
290 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
291 | 291 | /** |
292 | 292 | * Build an import example file. |
293 | 293 | * Arrays this->array_export_xxx are already loaded for required datatoexport |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | */ |
301 | 301 | public function build_example_file($model, $headerlinefields, $contentlinevalues, $datatoimport) |
302 | 302 | { |
303 | - // phpcs:enable |
|
303 | + // phpcs:enable |
|
304 | 304 | global $conf, $langs; |
305 | 305 | |
306 | 306 | $indice = 0; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | return $result['content']; |
168 | 168 | } |
169 | 169 | |
170 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
170 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
171 | 171 | /** |
172 | 172 | * Fonction qui donne les droits redacteurs dans spip |
173 | 173 | * |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | */ |
177 | 177 | public function add_to_spip($object) |
178 | 178 | { |
179 | - // phpcs:enable |
|
179 | + // phpcs:enable |
|
180 | 180 | dol_syslog(get_class($this) . "::add_to_spip"); |
181 | 181 | |
182 | 182 | if ($this->isSpipEnabled()) { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | return 0; |
215 | 215 | } |
216 | 216 | |
217 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
217 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
218 | 218 | /** |
219 | 219 | * Fonction qui enleve les droits redacteurs dans spip |
220 | 220 | * |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | */ |
224 | 224 | public function del_to_spip($object) |
225 | 225 | { |
226 | - // phpcs:enable |
|
226 | + // phpcs:enable |
|
227 | 227 | dol_syslog(get_class($this) . "::del_to_spip"); |
228 | 228 | |
229 | 229 | if ($this->isSpipEnabled()) { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | return 0; |
256 | 256 | } |
257 | 257 | |
258 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
258 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
259 | 259 | /** |
260 | 260 | * Indicate if the user is an existing editor in spip |
261 | 261 | * |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public function is_in_spip($object) |
266 | 266 | { |
267 | - // phpcs:enable |
|
267 | + // phpcs:enable |
|
268 | 268 | if ($this->isSpipEnabled()) { |
269 | 269 | if ($this->checkSpipConfig()) { |
270 | 270 | $mydb = $this->connectSpip(); |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | return -1; |
302 | 302 | } |
303 | 303 | |
304 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
304 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
305 | 305 | /** |
306 | 306 | * Subscribe an email to all mailing-lists |
307 | 307 | * |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | */ |
312 | 312 | public function add_to_mailman($object, $listes = '') |
313 | 313 | { |
314 | - // phpcs:enable |
|
314 | + // phpcs:enable |
|
315 | 315 | global $conf, $langs, $user; |
316 | 316 | |
317 | 317 | dol_syslog(get_class($this) . "::add_to_mailman"); |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | return 0; |
371 | 371 | } |
372 | 372 | |
373 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
373 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
374 | 374 | /** |
375 | 375 | * Unsubscribe an email from all mailing-lists |
376 | 376 | * Used when a user is resiliated |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | */ |
382 | 382 | public function del_to_mailman($object, $listes = '') |
383 | 383 | { |
384 | - // phpcs:enable |
|
384 | + // phpcs:enable |
|
385 | 385 | global $conf, $langs, $user; |
386 | 386 | |
387 | 387 | dol_syslog(get_class($this) . "::del_to_mailman"); |
@@ -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 |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | return $this->LibStatut($this->status, $mode); |
569 | 569 | } |
570 | 570 | |
571 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
571 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
572 | 572 | /** |
573 | 573 | * Return label of a status |
574 | 574 | * |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | */ |
579 | 579 | public function LibStatut($status, $mode = 0) |
580 | 580 | { |
581 | - // phpcs:enable |
|
581 | + // phpcs:enable |
|
582 | 582 | global $langs; |
583 | 583 | $langs->load('orders'); |
584 | 584 |
@@ -734,9 +734,9 @@ discard block |
||
734 | 734 | if ($this->origin_object instanceof CommonObject && empty($this->origin_object->lines)) { |
735 | 735 | $res = $this->origin_object->fetch_lines(); |
736 | 736 | if ($this->origin_object instanceof CommandeFournisseur) { |
737 | - $this->commandeFournisseur = $this->origin_object; // deprecated |
|
737 | + $this->commandeFournisseur = $this->origin_object; // deprecated |
|
738 | 738 | } else { |
739 | - $this->commandeFournisseur = null; // deprecated |
|
739 | + $this->commandeFournisseur = null; // deprecated |
|
740 | 740 | } |
741 | 741 | if ($res < 0) { |
742 | 742 | return $res; |
@@ -1358,7 +1358,7 @@ discard block |
||
1358 | 1358 | if (getDolGlobalInt("STOCK_CALCULATE_ON_RECEPTION_CLOSE")) { |
1359 | 1359 | $this->labelStatus[1] = 'StatusReceptionValidatedToReceive'; |
1360 | 1360 | } |
1361 | - $this->labelStatus[2] = 'StatusReceptionProcessed'; |
|
1361 | + $this->labelStatus[2] = 'StatusReceptionProcessed'; |
|
1362 | 1362 | |
1363 | 1363 | // List of short language codes for status |
1364 | 1364 | $this->labelStatusShort[-1] = 'StatusReceptionCanceledShort'; |
@@ -1468,7 +1468,7 @@ discard block |
||
1468 | 1468 | while ($xnbp < $nbp) { |
1469 | 1469 | $line = new CommandeFournisseurDispatch($this->db); |
1470 | 1470 | $line->desc = $langs->trans("Description") . " " . $xnbp; |
1471 | - $line->libelle = $langs->trans("Description") . " " . $xnbp; // deprecated |
|
1471 | + $line->libelle = $langs->trans("Description") . " " . $xnbp; // deprecated |
|
1472 | 1472 | $line->label = $langs->trans("Description") . " " . $xnbp; |
1473 | 1473 | $line->qty = 10; |
1474 | 1474 |
@@ -1178,7 +1178,7 @@ discard block |
||
1178 | 1178 | } |
1179 | 1179 | } |
1180 | 1180 | |
1181 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1181 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1182 | 1182 | /** |
1183 | 1183 | * Load lines |
1184 | 1184 | * |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | */ |
1187 | 1187 | public function fetch_lines() |
1188 | 1188 | { |
1189 | - // phpcs:enable |
|
1189 | + // phpcs:enable |
|
1190 | 1190 | $this->lines = array(); |
1191 | 1191 | |
1192 | 1192 | |
@@ -1327,7 +1327,7 @@ discard block |
||
1327 | 1327 | return $this->LibStatut($this->statut, $mode); |
1328 | 1328 | } |
1329 | 1329 | |
1330 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1330 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1331 | 1331 | /** |
1332 | 1332 | * Return label of a status |
1333 | 1333 | * |
@@ -1337,7 +1337,7 @@ discard block |
||
1337 | 1337 | */ |
1338 | 1338 | public function LibStatut($status, $mode) |
1339 | 1339 | { |
1340 | - // phpcs:enable |
|
1340 | + // phpcs:enable |
|
1341 | 1341 | global $langs; |
1342 | 1342 | |
1343 | 1343 | // List of long language codes for status |
@@ -1498,7 +1498,7 @@ discard block |
||
1498 | 1498 | } |
1499 | 1499 | } |
1500 | 1500 | |
1501 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1501 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1502 | 1502 | /** |
1503 | 1503 | * Fetch deliveries method and return an array. Load array this->meths(rowid=>label). |
1504 | 1504 | * |
@@ -1506,7 +1506,7 @@ discard block |
||
1506 | 1506 | */ |
1507 | 1507 | public function fetch_delivery_methods() |
1508 | 1508 | { |
1509 | - // phpcs:enable |
|
1509 | + // phpcs:enable |
|
1510 | 1510 | global $langs; |
1511 | 1511 | $this->meths = array(); |
1512 | 1512 | |
@@ -1524,7 +1524,7 @@ discard block |
||
1524 | 1524 | } |
1525 | 1525 | } |
1526 | 1526 | |
1527 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1527 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1528 | 1528 | /** |
1529 | 1529 | * Fetch all deliveries method and return an array. Load array this->listmeths. |
1530 | 1530 | * |
@@ -1533,7 +1533,7 @@ discard block |
||
1533 | 1533 | */ |
1534 | 1534 | public function list_delivery_methods($id = 0) |
1535 | 1535 | { |
1536 | - // phpcs:enable |
|
1536 | + // phpcs:enable |
|
1537 | 1537 | global $langs; |
1538 | 1538 | |
1539 | 1539 | $this->listmeths = array(); |
@@ -204,11 +204,11 @@ |
||
204 | 204 | |
205 | 205 | $receptionline->fk_product = $line['fk_product']; |
206 | 206 | $receptionline->fk_entrepot = $line['fk_entrepot']; |
207 | - $receptionline->fk_element = $line['fk_element'] ?? $line['origin_id']; // example: purchase order id. this->origin is 'supplier_order' |
|
207 | + $receptionline->fk_element = $line['fk_element'] ?? $line['origin_id']; // example: purchase order id. this->origin is 'supplier_order' |
|
208 | 208 | $receptionline->origin_line_id = $line['fk_elementdet'] ?? $line['origin_line_id']; // example: purchase order id |
209 | - $receptionline->fk_elementdet = $line['fk_elementdet'] ?? $line['origin_line_id']; // example: purchase order line id |
|
210 | - $receptionline->origin_type = $line['element_type'] ?? $line['origin_type']; // example 'supplier_order' |
|
211 | - $receptionline->element_type = $line['element_type'] ?? $line['origin_type']; // example 'supplier_order' |
|
209 | + $receptionline->fk_elementdet = $line['fk_elementdet'] ?? $line['origin_line_id']; // example: purchase order line id |
|
210 | + $receptionline->origin_type = $line['element_type'] ?? $line['origin_type']; // example 'supplier_order' |
|
211 | + $receptionline->element_type = $line['element_type'] ?? $line['origin_type']; // example 'supplier_order' |
|
212 | 212 | $receptionline->qty = $line['qty']; |
213 | 213 | //$receptionline->rang = $line['rang']; |
214 | 214 | $receptionline->array_options = $line['array_options']; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public $reception; |
50 | 50 | |
51 | 51 | /** |
52 | - * Constructor |
|
52 | + * Constructor |
|
53 | 53 | */ |
54 | 54 | public function __construct() |
55 | 55 | { |
@@ -643,15 +643,15 @@ discard block |
||
643 | 643 | */ |
644 | 644 | |
645 | 645 | /** |
646 | - * Close a reception (Classify it as "Delivered") |
|
647 | - * |
|
648 | - * @param int $id Reception ID |
|
649 | - * @param int $notrigger Disabled triggers |
|
650 | - * |
|
651 | - * @url POST {id}/close |
|
652 | - * |
|
646 | + * Close a reception (Classify it as "Delivered") |
|
647 | + * |
|
648 | + * @param int $id Reception ID |
|
649 | + * @param int $notrigger Disabled triggers |
|
650 | + * |
|
651 | + * @url POST {id}/close |
|
652 | + * |
|
653 | 653 | * @return array |
654 | - */ |
|
654 | + */ |
|
655 | 655 | public function close($id, $notrigger = 0) |
656 | 656 | { |
657 | 657 | if (!DolibarrApiAccess::$user->hasRight('reception', 'creer')) { |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | return $this->_cleanObjectDatas($this->reception); |
684 | 684 | } |
685 | 685 | |
686 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
686 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
687 | 687 | /** |
688 | 688 | * Clean sensible object datas |
689 | 689 | * |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | */ |
693 | 693 | protected function _cleanObjectDatas($object) |
694 | 694 | { |
695 | - // phpcs:enable |
|
695 | + // phpcs:enable |
|
696 | 696 | $object = parent::_cleanObjectDatas($object); |
697 | 697 | |
698 | 698 | unset($object->thirdparty); // id already returned |
@@ -177,8 +177,8 @@ discard block |
||
177 | 177 | public $usage_bill_time; // Is the time spent on project must be invoiced or not |
178 | 178 | |
179 | 179 | /** |
180 | - * @var integer Event organization: Use Event Organization |
|
181 | - */ |
|
180 | + * @var integer Event organization: Use Event Organization |
|
181 | + */ |
|
182 | 182 | public $usage_organize_event; |
183 | 183 | |
184 | 184 | /** |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | return $substitution; |
813 | 813 | } |
814 | 814 | |
815 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
815 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
816 | 816 | /** |
817 | 817 | * Return list of elements for type, linked to a project |
818 | 818 | * |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | */ |
827 | 827 | public function get_element_list($type, $tablename, $datefieldname = '', $date_start = null, $date_end = null, $projectkey = 'fk_projet') |
828 | 828 | { |
829 | - // phpcs:enable |
|
829 | + // phpcs:enable |
|
830 | 830 | |
831 | 831 | global $hookmanager; |
832 | 832 | |
@@ -1285,7 +1285,7 @@ discard block |
||
1285 | 1285 | return $this->LibStatut(isset($this->statut) ? $this->statut : $this->status, $mode); |
1286 | 1286 | } |
1287 | 1287 | |
1288 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1288 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1289 | 1289 | /** |
1290 | 1290 | * Renvoi status label for a status |
1291 | 1291 | * |
@@ -1295,7 +1295,7 @@ discard block |
||
1295 | 1295 | */ |
1296 | 1296 | public function LibStatut($status, $mode = 0) |
1297 | 1297 | { |
1298 | - // phpcs:enable |
|
1298 | + // phpcs:enable |
|
1299 | 1299 | global $langs; |
1300 | 1300 | |
1301 | 1301 | if (is_null($status)) { |
@@ -1976,7 +1976,7 @@ discard block |
||
1976 | 1976 | } |
1977 | 1977 | |
1978 | 1978 | |
1979 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1979 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1980 | 1980 | /** |
1981 | 1981 | * Associate element to a project |
1982 | 1982 | * |
@@ -1986,7 +1986,7 @@ discard block |
||
1986 | 1986 | */ |
1987 | 1987 | public function update_element($tableName, $elementSelectId) |
1988 | 1988 | { |
1989 | - // phpcs:enable |
|
1989 | + // phpcs:enable |
|
1990 | 1990 | $sql = "UPDATE " . MAIN_DB_PREFIX . $tableName; |
1991 | 1991 | |
1992 | 1992 | if ($tableName == "actioncomm") { |
@@ -2010,7 +2010,7 @@ discard block |
||
2010 | 2010 | } |
2011 | 2011 | } |
2012 | 2012 | |
2013 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2013 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2014 | 2014 | /** |
2015 | 2015 | * Associate element to a project |
2016 | 2016 | * |
@@ -2022,7 +2022,7 @@ discard block |
||
2022 | 2022 | */ |
2023 | 2023 | public function remove_element($tableName, $elementSelectId, $projectfield = 'fk_projet') |
2024 | 2024 | { |
2025 | - // phpcs:enable |
|
2025 | + // phpcs:enable |
|
2026 | 2026 | $sql = "UPDATE " . MAIN_DB_PREFIX . $tableName; |
2027 | 2027 | |
2028 | 2028 | if ($tableName == "actioncomm") { |
@@ -2207,7 +2207,7 @@ discard block |
||
2207 | 2207 | } |
2208 | 2208 | } |
2209 | 2209 | |
2210 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2210 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2211 | 2211 | /** |
2212 | 2212 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
2213 | 2213 | * |
@@ -2216,7 +2216,7 @@ discard block |
||
2216 | 2216 | */ |
2217 | 2217 | public function load_board($user) |
2218 | 2218 | { |
2219 | - // phpcs:enable |
|
2219 | + // phpcs:enable |
|
2220 | 2220 | global $conf, $langs; |
2221 | 2221 | |
2222 | 2222 | // For external user, no check is done on company because readability is managed by public status of project and assignment. |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | $this->statut = $obj->status; // deprecated |
747 | 747 | $this->status = $obj->status; |
748 | 748 | $this->opp_status = $obj->fk_opp_status; |
749 | - $this->opp_amount = $obj->opp_amount; |
|
749 | + $this->opp_amount = $obj->opp_amount; |
|
750 | 750 | $this->opp_percent = $obj->opp_percent; |
751 | 751 | $this->budget_amount = $obj->budget_amount; |
752 | 752 | $this->model_pdf = $obj->model_pdf; |
@@ -1703,7 +1703,7 @@ discard block |
||
1703 | 1703 | global $langs, $conf; |
1704 | 1704 | |
1705 | 1705 | $error = 0; |
1706 | - $clone_project_id = 0; // For static toolcheck |
|
1706 | + $clone_project_id = 0; // For static toolcheck |
|
1707 | 1707 | |
1708 | 1708 | dol_syslog("createFromClone clone_contact=" . json_encode($clone_contact) . " clone_task=" . json_encode($clone_task) . " clone_project_file=" . json_encode($clone_project_file) . " clone_note=" . json_encode($clone_note) . " move_date=" . json_encode($move_date), LOG_DEBUG); |
1709 | 1709 | |
@@ -1997,7 +1997,7 @@ discard block |
||
1997 | 1997 | if ($tableName == "actioncomm") { |
1998 | 1998 | $sql .= " SET fk_project=" . $this->id; |
1999 | 1999 | $sql .= " WHERE id=" . ((int) $elementSelectId); |
2000 | - } elseif (in_array($tableName, ["entrepot","mrp_mo","stocktransfer_stocktransfer"])) { |
|
2000 | + } elseif (in_array($tableName, ["entrepot", "mrp_mo", "stocktransfer_stocktransfer"])) { |
|
2001 | 2001 | $sql .= " SET fk_project=" . $this->id; |
2002 | 2002 | $sql .= " WHERE rowid=" . ((int) $elementSelectId); |
2003 | 2003 | } else { |
@@ -2188,7 +2188,7 @@ discard block |
||
2188 | 2188 | $date = explode('-', $obj->element_date); |
2189 | 2189 | $week_number = getWeekNumber($date[2], $date[1], $date[0]); |
2190 | 2190 | } |
2191 | - '@phan-var-force int $week_number'; // Needed because phan considers it might be null |
|
2191 | + '@phan-var-force int $week_number'; // Needed because phan considers it might be null |
|
2192 | 2192 | if (empty($weekalreadyfound[$week_number])) { |
2193 | 2193 | $this->monthWorkLoad[$week_number] = $obj->element_duration; |
2194 | 2194 | $this->monthWorkLoadPerTask[$week_number][$obj->fk_element] = $obj->element_duration; |
@@ -2535,7 +2535,7 @@ discard block |
||
2535 | 2535 | if (method_exists($this, 'getLibStatut')) { |
2536 | 2536 | $return .= '<div class="info-box-status small inline-block valignmiddle">' . $this->getLibStatut(3) . '</div>'; |
2537 | 2537 | } |
2538 | - $return .= '</div>'; // end div line status |
|
2538 | + $return .= '</div>'; // end div line status |
|
2539 | 2539 | |
2540 | 2540 | $return .= '</div>'; |
2541 | 2541 | $return .= '</div>'; |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | if ($foundintocache) { // Cache file found and is not too old |
332 | 332 | dol_syslog(get_class($this) . '::' . __FUNCTION__ . " read data from cache file " . $newpathofdestfile . " " . $filedate . "."); |
333 | 333 | $data = json_decode(file_get_contents($newpathofdestfile), true); |
334 | - '@phan-var-force array $data'; // Phan can not interpret json_decode |
|
334 | + '@phan-var-force array $data'; // Phan can not interpret json_decode |
|
335 | 335 | } else { |
336 | 336 | $year = $startyear; |
337 | 337 | while ($year <= $endyear) { |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | if ($foundintocache) { // Cache file found and is not too old |
443 | 443 | dol_syslog(get_class($this) . '::' . __FUNCTION__ . " read data from cache file " . $newpathofdestfile . " " . $filedate . "."); |
444 | 444 | $data = json_decode(file_get_contents($newpathofdestfile), true); |
445 | - '@phan-var-force array $data'; // Phan can not interpret json_decode |
|
445 | + '@phan-var-force array $data'; // Phan can not interpret json_decode |
|
446 | 446 | } else { |
447 | 447 | $year = $startyear; |
448 | 448 | while ($year <= $endyear) { |