Passed
Push — dev ( 162356...096618 )
by Rafael
70:47 queued 05:12
created
Dolibarr/Code/CommPropale/Api/Proposals.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
     }
962 962
 
963 963
 
964
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
964
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
965 965
     /**
966 966
      * Clean sensible object datas
967 967
      *
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
      */
971 971
     protected function _cleanObjectDatas($object)
972 972
     {
973
-		// phpcs:enable
973
+        // phpcs:enable
974 974
         $object = parent::_cleanObjectDatas($object);
975 975
 
976 976
         unset($object->note);
Please login to merge, or discard this patch.
Dolibarr/Code/WebHook/Api/WebHook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,9 +134,9 @@
 block discarded – undo
134 134
 
135 135
             $obj_ret['data'] = $tmp;
136 136
             $obj_ret['pagination'] = [
137
-                'total' => (int)$total,
137
+                'total' => (int) $total,
138 138
                 'page' => $page, //count starts from 0
139
-                'page_count' => ceil((int)$total / $limit),
139
+                'page_count' => ceil((int) $total / $limit),
140 140
                 'limit' => $limit
141 141
             ];
142 142
         }
Please login to merge, or discard this patch.
public/htdocs/accountancy/bookkeeping/listbyaccount.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     if ($search_account_category != '-1' && !empty($search_account_category)) {
317 317
         $accountingcategory = new AccountancyCategory($db);
318 318
 
319
-        $listofaccountsforgroup = $accountingcategory->getCptsCat(0, 'fk_accounting_category = ' . ((int)$search_account_category));
319
+        $listofaccountsforgroup = $accountingcategory->getCptsCat(0, 'fk_accounting_category = ' . ((int) $search_account_category));
320 320
         $listofaccountsforgroup2 = array();
321 321
         if (is_array($listofaccountsforgroup)) {
322 322
             foreach ($listofaccountsforgroup as $tmpval) {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             }
325 325
         }
326 326
         $filter['t.search_accounting_code_in'] = implode(',', $listofaccountsforgroup2);
327
-        $param .= '&search_account_category=' . urlencode((string)($search_account_category));
327
+        $param .= '&search_account_category=' . urlencode((string) ($search_account_category));
328 328
     }
329 329
     if (!empty($search_accountancy_code_start)) {
330 330
         if ($type == 'sub') {
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
     }
349 349
     if (!empty($search_mvt_num)) {
350 350
         $filter['t.piece_num'] = $search_mvt_num;
351
-        $param .= '&search_mvt_num=' . urlencode((string)($search_mvt_num));
351
+        $param .= '&search_mvt_num=' . urlencode((string) ($search_mvt_num));
352 352
     }
353 353
     if (!empty($search_doc_ref)) {
354 354
         $filter['t.doc_ref'] = $search_doc_ref;
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
         $result = $object->fetchAllByAccount($sortorder, $sortfield, $limit, $offset, $filter, 'AND', 0);
635 635
     }
636 636
     //$num = count($object->lines);
637
-    $num = $result;                     // $result is total nb of lines, or limit + 1, but $object->lines is always limited to $limit
637
+    $num = $result; // $result is total nb of lines, or limit + 1, but $object->lines is always limited to $limit
638 638
 
639 639
     if ($result < 0) {
640 640
         setEventMessages($object->error, $object->errors, 'errors');
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
     $param .= '&contextpage=' . urlencode($contextpage);
745 745
 }
746 746
 if ($limit > 0 && $limit != $conf->liste_limit) {
747
-    $param .= '&limit=' . ((int)$limit);
747
+    $param .= '&limit=' . ((int) $limit);
748 748
 }
749 749
 
750 750
 print_barre_liste($title_page, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_accountancy', 0, $newcardbutton, '', $limit, 0, 0, 1);
@@ -1051,8 +1051,8 @@  discard block
 block discarded – undo
1051 1051
     }
1052 1052
     //if (empty($accountg)) $accountg = '-';
1053 1053
 
1054
-    $colspan = 0;           // colspan before field 'label of operation'
1055
-    $colspanend = 0;        // colspan after debit/credit
1054
+    $colspan = 0; // colspan before field 'label of operation'
1055
+    $colspanend = 0; // colspan after debit/credit
1056 1056
     if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
1057 1057
         $colspan++;
1058 1058
     }
@@ -1315,7 +1315,7 @@  discard block
 block discarded – undo
1315 1315
         if (!$i) {
1316 1316
             $totalarray['pos'][$totalarray['nbfield']] = 'totaldebit';
1317 1317
         }
1318
-        $totalarray['val']['totaldebit'] += (float)$line->debit;
1318
+        $totalarray['val']['totaldebit'] += (float) $line->debit;
1319 1319
     }
1320 1320
 
1321 1321
     // Amount credit
@@ -1327,7 +1327,7 @@  discard block
 block discarded – undo
1327 1327
         if (!$i) {
1328 1328
             $totalarray['pos'][$totalarray['nbfield']] = 'totalcredit';
1329 1329
         }
1330
-        $totalarray['val']['totalcredit'] += (float)$line->credit;
1330
+        $totalarray['val']['totalcredit'] += (float) $line->credit;
1331 1331
     }
1332 1332
 
1333 1333
     // Amount balance
@@ -1436,13 +1436,13 @@  discard block
 block discarded – undo
1436 1436
 
1437 1437
 // Clean total values to round them
1438 1438
 if (!empty($totalarray['val']['totaldebit'])) {
1439
-    $totalarray['val']['totaldebit'] = (float)price2num($totalarray['val']['totaldebit'], 'MT');
1439
+    $totalarray['val']['totaldebit'] = (float) price2num($totalarray['val']['totaldebit'], 'MT');
1440 1440
 }
1441 1441
 if (!empty($totalarray['val']['totalcredit'])) {
1442
-    $totalarray['val']['totalcredit'] = (float)price2num($totalarray['val']['totalcredit'], 'MT');
1442
+    $totalarray['val']['totalcredit'] = (float) price2num($totalarray['val']['totalcredit'], 'MT');
1443 1443
 }
1444 1444
 if (!empty($totalarray['val']['totalbalance'])) {
1445
-    $totalarray['val']['totalbalance'] = (float)price2num($totalarray['val']['totaldebit'] - $totalarray['val']['totalcredit'], 'MT');
1445
+    $totalarray['val']['totalbalance'] = (float) price2num($totalarray['val']['totaldebit'] - $totalarray['val']['totalcredit'], 'MT');
1446 1446
 }
1447 1447
 
1448 1448
 // Show total line
Please login to merge, or discard this patch.
public/htdocs/accountancy/bookkeeping/list.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -341,17 +341,17 @@  discard block
 block discarded – undo
341 341
     if (!empty($search_date_start)) {
342 342
         $filter['t.doc_date>='] = $search_date_start;
343 343
         $tmp = dol_getdate($search_date_start);
344
-        $param .= '&search_date_startmonth=' . ((int)$tmp['mon']) . '&search_date_startday=' . ((int)$tmp['mday']) . '&search_date_startyear=' . ((int)$tmp['year']);
344
+        $param .= '&search_date_startmonth=' . ((int) $tmp['mon']) . '&search_date_startday=' . ((int) $tmp['mday']) . '&search_date_startyear=' . ((int) $tmp['year']);
345 345
     }
346 346
     if (!empty($search_date_end)) {
347 347
         $filter['t.doc_date<='] = $search_date_end;
348 348
         $tmp = dol_getdate($search_date_end);
349
-        $param .= '&search_date_endmonth=' . ((int)$tmp['mon']) . '&search_date_endday=' . ((int)$tmp['mday']) . '&search_date_endyear=' . ((int)$tmp['year']);
349
+        $param .= '&search_date_endmonth=' . ((int) $tmp['mon']) . '&search_date_endday=' . ((int) $tmp['mday']) . '&search_date_endyear=' . ((int) $tmp['year']);
350 350
     }
351 351
     if (!empty($search_doc_date)) {
352 352
         $filter['t.doc_date'] = $search_doc_date;
353 353
         $tmp = dol_getdate($search_doc_date);
354
-        $param .= '&doc_datemonth=' . ((int)$tmp['mon']) . '&doc_dateday=' . ((int)$tmp['mday']) . '&doc_dateyear=' . ((int)$tmp['year']);
354
+        $param .= '&doc_datemonth=' . ((int) $tmp['mon']) . '&doc_dateday=' . ((int) $tmp['mday']) . '&doc_dateyear=' . ((int) $tmp['year']);
355 355
     }
356 356
     if (!empty($search_doc_type)) {
357 357
         $filter['t.doc_type'] = $search_doc_type;
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     if ($search_account_category != '-1' && !empty($search_account_category)) {
365 365
         $accountingcategory = new AccountancyCategory($db);
366 366
 
367
-        $listofaccountsforgroup = $accountingcategory->getCptsCat(0, 'fk_accounting_category = ' . ((int)$search_account_category));
367
+        $listofaccountsforgroup = $accountingcategory->getCptsCat(0, 'fk_accounting_category = ' . ((int) $search_account_category));
368 368
         $listofaccountsforgroup2 = array();
369 369
         if (is_array($listofaccountsforgroup)) {
370 370
             foreach ($listofaccountsforgroup as $tmpval) {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
             }
373 373
         }
374 374
         $filter['t.search_accounting_code_in'] = implode(',', $listofaccountsforgroup2);
375
-        $param .= '&search_account_category=' . urlencode((string)($search_account_category));
375
+        $param .= '&search_account_category=' . urlencode((string) ($search_account_category));
376 376
     }
377 377
     if (!empty($search_accountancy_code)) {
378 378
         $filter['t.numero_compte'] = $search_accountancy_code;
@@ -414,47 +414,47 @@  discard block
 block discarded – undo
414 414
     }
415 415
     if (!empty($search_mvt_num)) {
416 416
         $filter['t.piece_num'] = $search_mvt_num;
417
-        $param .= '&search_mvt_num=' . urlencode((string)($search_mvt_num));
417
+        $param .= '&search_mvt_num=' . urlencode((string) ($search_mvt_num));
418 418
     }
419 419
     if (!empty($search_date_creation_start)) {
420 420
         $filter['t.date_creation>='] = $search_date_creation_start;
421 421
         $tmp = dol_getdate($search_date_creation_start);
422
-        $param .= '&search_date_creation_startmonth=' . ((int)$tmp['mon']) . '&search_date_creation_startday=' . ((int)$tmp['mday']) . '&search_date_creation_startyear=' . ((int)$tmp['year']);
422
+        $param .= '&search_date_creation_startmonth=' . ((int) $tmp['mon']) . '&search_date_creation_startday=' . ((int) $tmp['mday']) . '&search_date_creation_startyear=' . ((int) $tmp['year']);
423 423
     }
424 424
     if (!empty($search_date_creation_end)) {
425 425
         $filter['t.date_creation<='] = $search_date_creation_end;
426 426
         $tmp = dol_getdate($search_date_creation_end);
427
-        $param .= '&search_date_creation_endmonth=' . ((int)$tmp['mon']) . '&search_date_creation_endday=' . ((int)$tmp['mday']) . '&search_date_creation_endyear=' . ((int)$tmp['year']);
427
+        $param .= '&search_date_creation_endmonth=' . ((int) $tmp['mon']) . '&search_date_creation_endday=' . ((int) $tmp['mday']) . '&search_date_creation_endyear=' . ((int) $tmp['year']);
428 428
     }
429 429
     if (!empty($search_date_modification_start)) {
430 430
         $filter['t.tms>='] = $search_date_modification_start;
431 431
         $tmp = dol_getdate($search_date_modification_start);
432
-        $param .= '&search_date_modification_startmonth=' . ((int)$tmp['mon']) . '&search_date_modification_startday=' . ((int)$tmp['mday']) . '&search_date_modification_startyear=' . ((int)$tmp['year']);
432
+        $param .= '&search_date_modification_startmonth=' . ((int) $tmp['mon']) . '&search_date_modification_startday=' . ((int) $tmp['mday']) . '&search_date_modification_startyear=' . ((int) $tmp['year']);
433 433
     }
434 434
     if (!empty($search_date_modification_end)) {
435 435
         $filter['t.tms<='] = $search_date_modification_end;
436 436
         $tmp = dol_getdate($search_date_modification_end);
437
-        $param .= '&search_date_modification_endmonth=' . ((int)$tmp['mon']) . '&search_date_modification_endday=' . ((int)$tmp['mday']) . '&search_date_modification_endyear=' . ((int)$tmp['year']);
437
+        $param .= '&search_date_modification_endmonth=' . ((int) $tmp['mon']) . '&search_date_modification_endday=' . ((int) $tmp['mday']) . '&search_date_modification_endyear=' . ((int) $tmp['year']);
438 438
     }
439 439
     if (!empty($search_date_export_start)) {
440 440
         $filter['t.date_export>='] = $search_date_export_start;
441 441
         $tmp = dol_getdate($search_date_export_start);
442
-        $param .= '&search_date_export_startmonth=' . ((int)$tmp['mon']) . '&search_date_export_startday=' . ((int)$tmp['mday']) . '&search_date_export_startyear=' . ((int)$tmp['year']);
442
+        $param .= '&search_date_export_startmonth=' . ((int) $tmp['mon']) . '&search_date_export_startday=' . ((int) $tmp['mday']) . '&search_date_export_startyear=' . ((int) $tmp['year']);
443 443
     }
444 444
     if (!empty($search_date_export_end)) {
445 445
         $filter['t.date_export<='] = $search_date_export_end;
446 446
         $tmp = dol_getdate($search_date_export_end);
447
-        $param .= '&search_date_export_endmonth=' . ((int)$tmp['mon']) . '&search_date_export_endday=' . ((int)$tmp['mday']) . '&search_date_export_endyear=' . ((int)$tmp['year']);
447
+        $param .= '&search_date_export_endmonth=' . ((int) $tmp['mon']) . '&search_date_export_endday=' . ((int) $tmp['mday']) . '&search_date_export_endyear=' . ((int) $tmp['year']);
448 448
     }
449 449
     if (!empty($search_date_validation_start)) {
450 450
         $filter['t.date_validated>='] = $search_date_validation_start;
451 451
         $tmp = dol_getdate($search_date_validation_start);
452
-        $param .= '&search_date_validation_startmonth=' . ((int)$tmp['mon']) . '&search_date_validation_startday=' . ((int)$tmp['mday']) . '&search_date_validation_startyear=' . ((int)$tmp['year']);
452
+        $param .= '&search_date_validation_startmonth=' . ((int) $tmp['mon']) . '&search_date_validation_startday=' . ((int) $tmp['mday']) . '&search_date_validation_startyear=' . ((int) $tmp['year']);
453 453
     }
454 454
     if (!empty($search_date_validation_end)) {
455 455
         $filter['t.date_validated<='] = $search_date_validation_end;
456 456
         $tmp = dol_getdate($search_date_validation_end);
457
-        $param .= '&search_date_validation_endmonth=' . ((int)$tmp['mon']) . '&search_date_validation_endday=' . ((int)$tmp['mday']) . '&search_date_validation_endyear=' . ((int)$tmp['year']);
457
+        $param .= '&search_date_validation_endmonth=' . ((int) $tmp['mon']) . '&search_date_validation_endday=' . ((int) $tmp['mday']) . '&search_date_validation_endyear=' . ((int) $tmp['year']);
458 458
     }
459 459
     // Due date start
460 460
     if (!empty($search_date_due_start)) {
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
         } elseif ($key == 't.subledger_account<=') {
682 682
             $sqlwhere[] = "t.subledger_account <= '" . $db->escape($value) . "'";
683 683
         } elseif ($key == 't.fk_doc' || $key == 't.fk_docdet' || $key == 't.piece_num') {
684
-            $sqlwhere[] = $db->sanitize($key) . ' = ' . ((int)$value);
684
+            $sqlwhere[] = $db->sanitize($key) . ' = ' . ((int) $value);
685 685
         } elseif ($key == 't.subledger_account' || $key == 't.numero_compte') {
686 686
             $sqlwhere[] = $db->sanitize($key) . " LIKE '" . $db->escape($db->escapeforlike($value)) . "%'";
687 687
         } elseif ($key == 't.subledger_account') {
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
     $param .= '&contextpage=' . urlencode($contextpage);
792 792
 }
793 793
 if ($limit > 0 && $limit != $conf->liste_limit) {
794
-    $param .= '&limit=' . ((int)$limit);
794
+    $param .= '&limit=' . ((int) $limit);
795 795
 }
796 796
 
797 797
 // List of mass actions available
Please login to merge, or discard this patch.
Dolibarr/Code/Bom/Classes/BOMLine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -466,7 +466,7 @@
 block discarded – undo
466 466
         $sql = 'SELECT rowid, date_creation as datec, tms as datem,';
467 467
         $sql .= ' fk_user_creat, fk_user_modif';
468 468
         $sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t';
469
-        $sql .= ' WHERE t.rowid = ' . ((int)$id);
469
+        $sql .= ' WHERE t.rowid = ' . ((int) $id);
470 470
         $result = $this->db->query($sql);
471 471
         if ($result) {
472 472
             if ($this->db->num_rows($result)) {
Please login to merge, or discard this patch.
Dolibarr/Code/BarCode/Classes/ModeleBarCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $nooutputiferror = 0)
65 65
     {
66
-        return -1;  // Error by default, this method must be implemented by the driver
66
+        return -1; // Error by default, this method must be implemented by the driver
67 67
     }
68 68
 }
69 69
 
Please login to merge, or discard this patch.
public/htdocs/admin/boxes.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                         $arrayofexistingboxid = array();
99 99
                         $nbboxonleft = $nbboxonright = 0;
100 100
                         $sql = "SELECT box_id, box_order FROM " . MAIN_DB_PREFIX . "boxes";
101
-                        $sql .= " WHERE position = " . ((int)$pos) . " AND fk_user = " . ((int)$fk_user) . " AND entity = " . ((int)$conf->entity);
101
+                        $sql .= " WHERE position = " . ((int) $pos) . " AND fk_user = " . ((int) $fk_user) . " AND entity = " . ((int) $conf->entity);
102 102
                         dol_syslog("boxes.php activate box", LOG_DEBUG);
103 103
                         $resql = $db->query($sql);
104 104
                         if ($resql) {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                             $sql = "INSERT INTO " . MAIN_DB_PREFIX . "boxes (";
121 121
                             $sql .= "box_id, position, box_order, fk_user, entity";
122 122
                             $sql .= ") VALUES (";
123
-                            $sql .= ((int)$boxid['value']) . ", " . ((int)$pos) . ", '" . (($nbboxonleft > $nbboxonright) ? 'B01' : 'A01') . "', " . ((int)$fk_user) . ", " . $conf->entity;
123
+                            $sql .= ((int) $boxid['value']) . ", " . ((int) $pos) . ", '" . (($nbboxonleft > $nbboxonright) ? 'B01' : 'A01') . "', " . ((int) $fk_user) . ", " . $conf->entity;
124 124
                             $sql .= ")";
125 125
 
126 126
                             dol_syslog("boxes.php activate box", LOG_DEBUG);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
 if ($action == 'delete') {
149 149
     $sql = "SELECT box_id FROM " . MAIN_DB_PREFIX . "boxes";
150
-    $sql .= " WHERE rowid=" . ((int)$rowid);
150
+    $sql .= " WHERE rowid=" . ((int) $rowid);
151 151
 
152 152
     $resql = $db->query($sql);
153 153
     $obj = $db->fetch_object($resql);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
         $sql = "DELETE FROM " . MAIN_DB_PREFIX . "boxes";
158 158
         $sql .= " WHERE entity = " . $conf->entity;
159
-        $sql .= " AND box_id=" . ((int)$obj->box_id);
159
+        $sql .= " AND box_id=" . ((int) $obj->box_id);
160 160
 
161 161
         $resql = $db->query($sql);
162 162
 
@@ -181,18 +181,18 @@  discard block
 block discarded – undo
181 181
         $newsecond = $objfrom->box_order;
182 182
         if ($newfirst == $newsecond) {
183 183
             $newsecondchar = preg_replace('/[0-9]+/', '', $newsecond);
184
-            $newsecondnum = (int)preg_replace('/[a-zA-Z]+/', '', $newsecond);
184
+            $newsecondnum = (int) preg_replace('/[a-zA-Z]+/', '', $newsecond);
185 185
             $newsecond = sprintf("%s%02d", $newsecondchar ? $newsecondchar : 'A', $newsecondnum + 1);
186 186
         }
187 187
 
188
-        $sql = "UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($newfirst) . "' WHERE rowid=" . ((int)$objfrom->rowid);
188
+        $sql = "UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($newfirst) . "' WHERE rowid=" . ((int) $objfrom->rowid);
189 189
         dol_syslog($sql);
190 190
         $resultupdatefrom = $db->query($sql);
191 191
         if (!$resultupdatefrom) {
192 192
             dol_print_error($db);
193 193
         }
194 194
 
195
-        $sql = "UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($newsecond) . "' WHERE rowid=" . ((int)$objto->rowid);
195
+        $sql = "UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($newsecond) . "' WHERE rowid=" . ((int) $objto->rowid);
196 196
         dol_syslog($sql);
197 197
         $resultupdateto = $db->query($sql);
198 198
         if (!$resultupdateto) {
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         // We renumber the order of the boxes if one of them is in ''
259 259
         // This occurs just after an insert.
260 260
         if ($decalage) {
261
-            $sql = "UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($decalage) . "' WHERE rowid=" . ((int)$obj->rowid);
261
+            $sql = "UPDATE " . MAIN_DB_PREFIX . "boxes SET box_order='" . $db->escape($decalage) . "' WHERE rowid=" . ((int) $obj->rowid);
262 262
             $db->query($sql);
263 263
         }
264 264
     }
Please login to merge, or discard this patch.
public/htdocs/admin/eventorganization.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 $value = GETPOST('value', 'alpha');
53 53
 $label = GETPOST('label', 'alpha');
54
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
54
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
55 55
 
56 56
 $scandir = GETPOST('scan_dir', 'alpha');
57 57
 $type = 'myobject';
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 $error = 0;
77 77
 $setupnotempty = 0;
78 78
 
79
-$dirmodels = array_merge(array('/'), (array)$conf->modules_parts['models']);
79
+$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
80 80
 
81 81
 // Access control
82 82
 if (empty($user->admin)) {
Please login to merge, or discard this patch.
Dolibarr/Code/Facture/Classes/ModelePDFFactures.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             $this->emetteur->country_code
187 187
         );
188 188
         if (!$address->isValid()) {
189
-            $this->error = $langs->transnoentities("SwissQrCreditorAddressInvalid", (string)$address->getViolations());
189
+            $this->error = $langs->transnoentities("SwissQrCreditorAddressInvalid", (string) $address->getViolations());
190 190
             return false;
191 191
         }
192 192
         $qrBill->setCreditor($address);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         $creditorInformation = SwissQrBill\DataGroup\Element\CreditorInformation::create($account->iban);
198 198
         if (!$creditorInformation->isValid()) {
199 199
             $langs->load("errors");
200
-            $this->error = $langs->transnoentities("SwissQrCreditorInformationInvalid", $account->iban, (string)$creditorInformation->getViolations());
200
+            $this->error = $langs->transnoentities("SwissQrCreditorInformationInvalid", $account->iban, (string) $creditorInformation->getViolations());
201 201
             return false;
202 202
         }
203 203
         $qrBill->setCreditorInformation($creditorInformation);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         // Add payment amount, with currency
221 221
         $pai = SwissQrBill\DataGroup\Element\PaymentAmountInformation::create($currencyinvoicecode, $object->total_ttc);
222 222
         if (!$pai->isValid()) {
223
-            $this->error = $langs->transnoentities("SwissQrPaymentInformationInvalid", $object->total_ttc, (string)$pai->getViolations());
223
+            $this->error = $langs->transnoentities("SwissQrPaymentInformationInvalid", $object->total_ttc, (string) $pai->getViolations());
224 224
             return false;
225 225
         }
226 226
         $qrBill->setPaymentAmountInformation($pai);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                 $object->thirdparty->country_code
242 242
             );
243 243
             if (!$address->isValid()) {
244
-                $this->error = $langs->transnoentities("SwissQrDebitorAddressInvalid", (string)$address->getViolations());
244
+                $this->error = $langs->transnoentities("SwissQrDebitorAddressInvalid", (string) $address->getViolations());
245 245
                 return false;
246 246
             }
247 247
             $qrBill->setUltimateDebtor($address);
Please login to merge, or discard this patch.