Passed
Push — dev ( 096618...2f56d7 )
by Rafael
75:21 queued 23:09
created
Dolibarr/Code/SupplierProposal/Api/SupplierProposals.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     }
189 189
 
190 190
 
191
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
191
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
192 192
     /**
193 193
      * Clean sensible object datas
194 194
      *
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     protected function _cleanObjectDatas($object)
199 199
     {
200
-		// phpcs:enable
200
+        // phpcs:enable
201 201
         $object = parent::_cleanObjectDatas($object);
202 202
 
203 203
         unset($object->name);
Please login to merge, or discard this patch.
public/htdocs/index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
 
230 230
     // Number of supplier proposals open (expired)
231
-    if (isModEnabled('supplier_proposal')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('supplier_proposal', 'lire')) {
231
+    if (isModEnabled('supplier_proposal') && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('supplier_proposal', 'lire')) {
232 232
         $langs->load("supplier_proposal");
233 233
         $board = new SupplierProposal($db);
234 234
         $dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     }
238 238
 
239 239
     // Number of sales orders
240
-    if (isModEnabled('order')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_CUSTOMER') && $user->hasRight('commande', 'lire')) {
240
+    if (isModEnabled('order') && !getDolGlobalString('MAIN_DISABLE_BLOCK_CUSTOMER') && $user->hasRight('commande', 'lire')) {
241 241
         $board = new Commande($db);
242 242
         // Number of customer orders to be shipped (validated and in progress)
243 243
         $dashboardlines[$board->element . '_toship'] = $board->load_board($user, 'toship');
@@ -250,14 +250,14 @@  discard block
 block discarded – undo
250 250
     }
251 251
 
252 252
     // Number of suppliers orders
253
-    if (isModEnabled('supplier_order')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('fournisseur', 'commande', 'lire')) {
253
+    if (isModEnabled('supplier_order') && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('fournisseur', 'commande', 'lire')) {
254 254
         $board = new CommandeFournisseur($db);
255 255
         $dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
256 256
         $dashboardlines[$board->element . '_awaiting'] = $board->load_board($user, 'awaiting');
257 257
     }
258 258
 
259 259
     // Number of contract / services enabled (delayed)
260
-    if (isModEnabled('contract')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_CONTRACT') && $user->hasRight('contrat', 'lire')) {
260
+    if (isModEnabled('contract') && !getDolGlobalString('MAIN_DISABLE_BLOCK_CONTRACT') && $user->hasRight('contrat', 'lire')) {
261 261
         $board = new Contrat($db);
262 262
         $dashboardlines[$board->element . '_inactive'] = $board->load_board($user, "inactive");
263 263
         // Number of active services (expired)
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     }
266 266
 
267 267
     // Number of tickets open
268
-    if (isModEnabled('ticket')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_TICKET') && $user->hasRight('ticket', 'read')) {
268
+    if (isModEnabled('ticket') && !getDolGlobalString('MAIN_DISABLE_BLOCK_TICKET') && $user->hasRight('ticket', 'read')) {
269 269
         $board = new Ticket($db);
270 270
         $dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
271 271
         // Number of active services (expired)
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     }
286 286
 
287 287
     // Number of transactions to conciliate
288
-    if (isModEnabled('bank')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
288
+    if (isModEnabled('bank') && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
289 289
         $board = new Account($db);
290 290
         $nb = $board->countAccountToReconcile(); // Get nb of account to reconciliate
291 291
         if ($nb > 0) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
 
297 297
     // Number of cheque to send
298
-    if (isModEnabled('bank')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
298
+    if (isModEnabled('bank') && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
299 299
         if (!getDolGlobalString('BANK_DISABLE_CHECK_DEPOSIT')) {
300 300
             $board = new RemiseCheque($db);
301 301
             $dashboardlines[$board->element] = $board->load_board($user);
@@ -311,26 +311,26 @@  discard block
 block discarded – undo
311 311
     }
312 312
 
313 313
     // Number of foundation members
314
-    if (isModEnabled('member')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_ADHERENT') && $user->hasRight('adherent', 'lire') && !$user->socid) {
314
+    if (isModEnabled('member') && !getDolGlobalString('MAIN_DISABLE_BLOCK_ADHERENT') && $user->hasRight('adherent', 'lire') && !$user->socid) {
315 315
         $board = new Adherent($db);
316 316
         $dashboardlines[$board->element . '_shift'] = $board->load_board($user, 'shift');
317 317
         $dashboardlines[$board->element . '_expired'] = $board->load_board($user, 'expired');
318 318
     }
319 319
 
320 320
     // Number of expense reports to approve
321
-    if (isModEnabled('expensereport')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'approve')) {
321
+    if (isModEnabled('expensereport') && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'approve')) {
322 322
         $board = new ExpenseReport($db);
323 323
         $dashboardlines[$board->element . '_toapprove'] = $board->load_board($user, 'toapprove');
324 324
     }
325 325
 
326 326
     // Number of expense reports to pay
327
-    if (isModEnabled('expensereport')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'to_paid')) {
327
+    if (isModEnabled('expensereport') && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'to_paid')) {
328 328
         $board = new ExpenseReport($db);
329 329
         $dashboardlines[$board->element . '_topay'] = $board->load_board($user, 'topay');
330 330
     }
331 331
 
332 332
     // Number of holidays to approve
333
-    if (isModEnabled('holiday')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_HOLIDAY') && $user->hasRight('holiday', 'approve')) {
333
+    if (isModEnabled('holiday') && !getDolGlobalString('MAIN_DISABLE_BLOCK_HOLIDAY') && $user->hasRight('holiday', 'approve')) {
334 334
         $board = new Holiday($db);
335 335
         $dashboardlines[$board->element] = $board->load_board($user);
336 336
     }
Please login to merge, or discard this patch.
Dolibarr/Code/Holiday/Classes/Holiday.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1488,7 +1488,7 @@  discard block
 block discarded – undo
1488 1488
         return $this->LibStatut($this->status, $mode, $this->date_debut);
1489 1489
     }
1490 1490
 
1491
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1491
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1492 1492
     /**
1493 1493
      *  Returns the label of a status
1494 1494
      *
@@ -1499,7 +1499,7 @@  discard block
 block discarded – undo
1499 1499
      */
1500 1500
     public function LibStatut($status, $mode = 0, $startdate = '')
1501 1501
     {
1502
-		// phpcs:enable
1502
+        // phpcs:enable
1503 1503
         global $langs;
1504 1504
 
1505 1505
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
@@ -2041,7 +2041,7 @@  discard block
 block discarded – undo
2041 2041
     }
2042 2042
 
2043 2043
 
2044
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2044
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2045 2045
     /**
2046 2046
      * Return list of people with permission to validate leave requests.
2047 2047
      * Search for permission "approve leave requests"
@@ -2050,7 +2050,7 @@  discard block
 block discarded – undo
2050 2050
      */
2051 2051
     public function fetch_users_approver_holiday()
2052 2052
     {
2053
-		// phpcs:enable
2053
+        // phpcs:enable
2054 2054
         $users_validator = array();
2055 2055
 
2056 2056
         $sql = "SELECT DISTINCT ur.fk_user";
@@ -2431,7 +2431,7 @@  discard block
 block discarded – undo
2431 2431
         }
2432 2432
     }
2433 2433
 
2434
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2434
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2435 2435
     /**
2436 2436
      *      Load indicators for dashboard (this->nbtodo and this->nbtodolate)
2437 2437
      *
@@ -2440,7 +2440,7 @@  discard block
 block discarded – undo
2440 2440
      */
2441 2441
     public function load_board($user)
2442 2442
     {
2443
-		// phpcs:enable
2443
+        // phpcs:enable
2444 2444
         global $conf, $langs;
2445 2445
 
2446 2446
         if ($user->socid) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -451,7 +451,7 @@
 block discarded – undo
451 451
                 $this->date_fin_gmt = $this->db->jdate($obj->date_fin, 1);
452 452
                 $this->halfday = $obj->halfday;
453 453
                 $this->status = $obj->status;
454
-                $this->statut = $obj->status;   // deprecated
454
+                $this->statut = $obj->status; // deprecated
455 455
                 $this->fk_validator = $obj->fk_validator;
456 456
                 $this->date_valid = $this->db->jdate($obj->date_valid);
457 457
                 $this->fk_user_valid = $obj->fk_user_valid;
Please login to merge, or discard this patch.
Dolibarr/Code/Compta/Classes/RemiseCheque.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     //! Numero d'erreur Plage 1024-1279
60 60
     public $errno;
61 61
 
62
-    public $type = 'CHQ';       // 'CHQ', 'TRA', ...
62
+    public $type = 'CHQ'; // 'CHQ', 'TRA', ...
63 63
 
64 64
     public $amount;
65 65
     public $date_bordereau;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "bank_account as ba ON bc.fk_bank_account = ba.rowid";
106 106
         $sql .= " WHERE bc.entity = " . $conf->entity;
107 107
         if ($id) {
108
-            $sql .= " AND bc.rowid = " . ((int)$id);
108
+            $sql .= " AND bc.rowid = " . ((int) $id);
109 109
         }
110 110
         if ($ref) {
111 111
             $sql .= " AND bc.ref = '" . $this->db->escape($ref) . "'";
@@ -183,12 +183,12 @@  discard block
 block discarded – undo
183 183
         $sql .= ") VALUES (";
184 184
         $sql .= "'" . $this->db->idate($now) . "'";
185 185
         $sql .= ", '" . $this->db->idate($now) . "'";
186
-        $sql .= ", " . ((int)$user->id);
187
-        $sql .= ", " . ((int)$account_id);
186
+        $sql .= ", " . ((int) $user->id);
187
+        $sql .= ", " . ((int) $account_id);
188 188
         $sql .= ", 0";
189 189
         $sql .= ", 0";
190 190
         $sql .= ", 0";
191
-        $sql .= ", " . ((int)$conf->entity);
191
+        $sql .= ", " . ((int) $conf->entity);
192 192
         $sql .= ", 0";
193 193
         $sql .= ", ''";
194 194
         $sql .= ", '" . $this->db->escape($this->type) . "'";
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             if ($this->id > 0 && $this->errno == 0) {
206 206
                 $sql = "UPDATE " . MAIN_DB_PREFIX . "bordereau_cheque";
207 207
                 $sql .= " SET ref = '(PROV" . $this->id . ")'";
208
-                $sql .= " WHERE rowid=" . ((int)$this->id);
208
+                $sql .= " WHERE rowid=" . ((int) $this->id);
209 209
 
210 210
                 $resql = $this->db->query($sql);
211 211
                 if (!$resql) {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
                 $sql .= " WHERE b.fk_type = '" . $this->db->escape($this->type) . "'";
223 223
                 $sql .= " AND b.amount > 0";
224 224
                 $sql .= " AND b.fk_bordereau = 0";
225
-                $sql .= " AND b.fk_account = " . ((int)$account_id);
225
+                $sql .= " AND b.fk_account = " . ((int) $account_id);
226 226
                 if ($limit) {
227 227
                     $sql .= $this->db->plimit($limit);
228 228
                 }
@@ -251,8 +251,8 @@  discard block
 block discarded – undo
251 251
 
252 252
                     if ($checkremise) {
253 253
                         $sql = "UPDATE " . MAIN_DB_PREFIX . "bank";
254
-                        $sql .= " SET fk_bordereau = " . ((int)$this->id);
255
-                        $sql .= " WHERE rowid = " . ((int)$lineid);
254
+                        $sql .= " SET fk_bordereau = " . ((int) $this->id);
255
+                        $sql .= " WHERE rowid = " . ((int) $lineid);
256 256
 
257 257
                         $resql = $this->db->query($sql);
258 258
                         if (!$resql) {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $this->db->begin();
307 307
 
308 308
         $sql = "DELETE FROM " . MAIN_DB_PREFIX . "bordereau_cheque";
309
-        $sql .= " WHERE rowid = " . ((int)$this->id);
309
+        $sql .= " WHERE rowid = " . ((int) $this->id);
310 310
         $sql .= " AND entity = " . $conf->entity;
311 311
 
312 312
         $resql = $this->db->query($sql);
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             if ($this->errno === 0) {
322 322
                 $sql = "UPDATE " . MAIN_DB_PREFIX . "bank";
323 323
                 $sql .= " SET fk_bordereau = 0";
324
-                $sql .= " WHERE fk_bordereau = " . ((int)$this->id);
324
+                $sql .= " WHERE fk_bordereau = " . ((int) $this->id);
325 325
 
326 326
                 $resql = $this->db->query($sql);
327 327
                 if (!$resql) {
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
         if ($this->errno == 0 && $numref) {
361 361
             $sql = "UPDATE " . MAIN_DB_PREFIX . "bordereau_cheque";
362 362
             $sql .= " SET statut = 1, ref = '" . $this->db->escape($numref) . "'";
363
-            $sql .= " WHERE rowid = " . ((int)$this->id);
363
+            $sql .= " WHERE rowid = " . ((int) $this->id);
364 364
             $sql .= " AND entity = " . $conf->entity;
365 365
             $sql .= " AND statut = 0";
366 366
 
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
             $classname = getDolGlobalString('CHEQUERECEIPTS_ADDON');
422 422
 
423 423
             // Include file with class
424
-            $dirmodels = array_merge(array('/'), (array)$conf->modules_parts['models']);
424
+            $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
425 425
 
426 426
             foreach ($dirmodels as $reldir) {
427 427
                 $dir = dol_buildpath($reldir . "core/modules/cheque/");
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
             $sql .= ", " . MAIN_DB_PREFIX . "bordereau_cheque as bc";
604 604
             $sql .= " WHERE b.fk_account = ba.rowid";
605 605
             $sql .= " AND b.fk_bordereau = bc.rowid";
606
-            $sql .= " AND bc.rowid = " . ((int)$this->id);
606
+            $sql .= " AND bc.rowid = " . ((int) $this->id);
607 607
             $sql .= " AND bc.entity = " . $conf->entity;
608 608
             $sql .= " ORDER BY b.dateo ASC, b.rowid ASC";
609 609
 
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
         $nb = 0;
667 667
         $sql = "SELECT amount ";
668 668
         $sql .= " FROM " . MAIN_DB_PREFIX . "bank";
669
-        $sql .= " WHERE fk_bordereau = " . ((int)$this->id);
669
+        $sql .= " WHERE fk_bordereau = " . ((int) $this->id);
670 670
 
671 671
         $resql = $this->db->query($sql);
672 672
         if ($resql) {
@@ -679,9 +679,9 @@  discard block
 block discarded – undo
679 679
 
680 680
             $sql = "UPDATE " . MAIN_DB_PREFIX . "bordereau_cheque";
681 681
             $sql .= " SET amount = " . price2num($total);
682
-            $sql .= ", nbcheque = " . ((int)$nb);
683
-            $sql .= " WHERE rowid = " . ((int)$this->id);
684
-            $sql .= " AND entity = " . ((int)$conf->entity);
682
+            $sql .= ", nbcheque = " . ((int) $nb);
683
+            $sql .= " WHERE rowid = " . ((int) $this->id);
684
+            $sql .= " AND entity = " . ((int) $conf->entity);
685 685
 
686 686
             $resql = $this->db->query($sql);
687 687
             if (!$resql) {
@@ -716,8 +716,8 @@  discard block
 block discarded – undo
716 716
         if ($this->id > 0) {
717 717
             $sql = "UPDATE " . MAIN_DB_PREFIX . "bank";
718 718
             $sql .= " SET fk_bordereau = 0";
719
-            $sql .= " WHERE rowid = " . ((int)$account_id);
720
-            $sql .= " AND fk_bordereau = " . ((int)$this->id);
719
+            $sql .= " WHERE rowid = " . ((int) $account_id);
720
+            $sql .= " AND fk_bordereau = " . ((int) $this->id);
721 721
 
722 722
             $resql = $this->db->query($sql);
723 723
             if ($resql) {
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
         // Get invoices list to reopen them
766 766
         $sql = 'SELECT pf.fk_facture, pf.amount';
767 767
         $sql .= ' FROM ' . MAIN_DB_PREFIX . 'paiement_facture as pf';
768
-        $sql .= ' WHERE pf.fk_paiement = ' . ((int)$payment->id);
768
+        $sql .= ' WHERE pf.fk_paiement = ' . ((int) $payment->id);
769 769
 
770 770
         $resql = $this->db->query($sql);
771 771
         if ($resql) {
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
         if ($user->hasRight('banque', 'cheque')) {
831 831
             $sql = "UPDATE " . MAIN_DB_PREFIX . "bordereau_cheque";
832 832
             $sql .= " SET date_bordereau = " . ($date ? "'" . $this->db->idate($date) . "'" : 'null');
833
-            $sql .= " WHERE rowid = " . ((int)$this->id);
833
+            $sql .= " WHERE rowid = " . ((int) $this->id);
834 834
 
835 835
             dol_syslog("RemiseCheque::set_date", LOG_DEBUG);
836 836
             $resql = $this->db->query($sql);
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
         if ($user->hasRight('banque', 'cheque')) {
862 862
             $sql = "UPDATE " . MAIN_DB_PREFIX . "bordereau_cheque";
863 863
             $sql .= " SET ref = '" . $this->db->escape($ref) . "'";
864
-            $sql .= " WHERE rowid = " . ((int)$this->id);
864
+            $sql .= " WHERE rowid = " . ((int) $this->id);
865 865
 
866 866
             dol_syslog("RemiseCheque::set_number", LOG_DEBUG);
867 867
             $resql = $this->db->query($sql);
Please login to merge, or discard this patch.
Dolibarr/Code/Compta/Classes/FactureLigneRec.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         }
118 118
 
119 119
         if (!$error) {
120
-            $sql = 'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . ' WHERE rowid=' . ((int)$this->id);
120
+            $sql = 'DELETE FROM ' . MAIN_DB_PREFIX . $this->table_element . ' WHERE rowid=' . ((int) $this->id);
121 121
 
122 122
             $res = $this->db->query($sql);
123 123
             if (!$res) {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $sql .= ' p.ref as product_ref, p.fk_product_type as fk_product_type, p.label as product_label, p.description as product_desc';
158 158
         $sql .= ' FROM ' . MAIN_DB_PREFIX . 'facturedet_rec as l';
159 159
         $sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'product as p ON l.fk_product = p.rowid';
160
-        $sql .= ' WHERE l.rowid = ' . ((int)$rowid);
160
+        $sql .= ' WHERE l.rowid = ' . ((int) $rowid);
161 161
         $sql .= ' ORDER BY l.rang';
162 162
 
163 163
         dol_syslog('FactureRec::fetch', LOG_DEBUG);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         include_once DOL_DOCUMENT_ROOT . '/core/lib/price.lib.php';
246 246
 
247 247
         $sql = "UPDATE " . MAIN_DB_PREFIX . "facturedet_rec SET";
248
-        $sql .= " fk_facture = " . ((int)$this->fk_facture);
248
+        $sql .= " fk_facture = " . ((int) $this->fk_facture);
249 249
         $sql .= ", fk_parent_line=" . ($this->fk_parent_line > 0 ? $this->fk_parent_line : "null");
250 250
         $sql .= ", label=" . (!empty($this->label) ? "'" . $this->db->escape($this->label) . "'" : "null");
251 251
         $sql .= ", description='" . $this->db->escape($this->desc) . "'";
@@ -258,12 +258,12 @@  discard block
 block discarded – undo
258 258
         $sql .= ", localtax2_tx=" . price2num($this->localtax2_tx);
259 259
         $sql .= ", localtax2_type='" . $this->db->escape($this->localtax2_type) . "'";
260 260
         $sql .= ", fk_product=" . ($this->fk_product > 0 ? $this->fk_product : "null");
261
-        $sql .= ", product_type=" . ((int)$this->product_type);
261
+        $sql .= ", product_type=" . ((int) $this->product_type);
262 262
         $sql .= ", remise_percent=" . price2num($this->remise_percent);
263 263
         $sql .= ", subprice=" . price2num($this->subprice);
264 264
         $sql .= ", info_bits=" . price2num($this->info_bits);
265
-        $sql .= ", date_start_fill=" . (int)$this->date_start_fill;
266
-        $sql .= ", date_end_fill=" . (int)$this->date_end_fill;
265
+        $sql .= ", date_start_fill=" . (int) $this->date_start_fill;
266
+        $sql .= ", date_end_fill=" . (int) $this->date_end_fill;
267 267
         if (empty($this->skip_update_total)) {
268 268
             $sql .= ", total_ht=" . price2num($this->total_ht);
269 269
             $sql .= ", total_tva=" . price2num($this->total_tva);
@@ -271,11 +271,11 @@  discard block
 block discarded – undo
271 271
             $sql .= ", total_localtax2=" . price2num($this->total_localtax2);
272 272
             $sql .= ", total_ttc=" . price2num($this->total_ttc);
273 273
         }
274
-        $sql .= ", rang=" . ((int)$this->rang);
275
-        $sql .= ", special_code=" . ((int)$this->special_code);
274
+        $sql .= ", rang=" . ((int) $this->rang);
275
+        $sql .= ", special_code=" . ((int) $this->special_code);
276 276
         $sql .= ", fk_unit=" . ($this->fk_unit ? "'" . $this->db->escape($this->fk_unit) . "'" : "null");
277 277
         $sql .= ", fk_contract_line=" . ($this->fk_contract_line ? $this->fk_contract_line : "null");
278
-        $sql .= " WHERE rowid = " . ((int)$this->id);
278
+        $sql .= " WHERE rowid = " . ((int) $this->id);
279 279
 
280 280
         $this->db->begin();
281 281
 
Please login to merge, or discard this patch.
Dolibarr/Code/EventOrganizaction/Classes/ConferenceOrBoothAttendee.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
         }
637 637
     }
638 638
 
639
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
639
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
640 640
     /**
641 641
      *      Load the project with id $this->fk_project into this->project
642 642
      *
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
      */
645 645
     public function fetch_projet()
646 646
     {
647
-		// phpcs:enable
647
+        // phpcs:enable
648 648
 
649 649
         if (empty($this->fk_project) && !empty($this->fk_projet)) {
650 650
             $this->fk_project = $this->fk_projet; // For backward compatibility
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
         return $this->LibStatut($this->status, $mode);
864 864
     }
865 865
 
866
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
866
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
867 867
     /**
868 868
      *  Return the status
869 869
      *
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
      */
874 874
     public function LibStatut($status, $mode = 0)
875 875
     {
876
-		// phpcs:enable
876
+        // phpcs:enable
877 877
         global $langs;
878 878
 
879 879
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
Please login to merge, or discard this patch.
Dolibarr/Code/EmailCollector/Classes/EmailCollector.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 
355 355
         $sql = 'SELECT rowid, type, rulevalue, status';
356 356
         $sql .= ' FROM ' . MAIN_DB_PREFIX . 'emailcollector_emailcollectorfilter';
357
-        $sql .= ' WHERE fk_emailcollector = ' . ((int)$this->id);
357
+        $sql .= ' WHERE fk_emailcollector = ' . ((int) $this->id);
358 358
         //$sql.= ' ORDER BY position';
359 359
 
360 360
         $resql = $this->db->query($sql);
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 
387 387
         $sql = 'SELECT rowid, type, actionparam, status';
388 388
         $sql .= ' FROM ' . MAIN_DB_PREFIX . 'emailcollector_emailcollectoraction';
389
-        $sql .= ' WHERE fk_emailcollector = ' . ((int)$this->id);
389
+        $sql .= ' WHERE fk_emailcollector = ' . ((int) $this->id);
390 390
         $sql .= ' ORDER BY position';
391 391
 
392 392
         $resql = $this->db->query($sql);
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
         $sql = 'SELECT rowid, date_creation as datec, tms as datem,';
618 618
         $sql .= ' fk_user_creat, fk_user_modif';
619 619
         $sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element . ' as t';
620
-        $sql .= ' WHERE t.rowid = ' . ((int)$id);
620
+        $sql .= ' WHERE t.rowid = ' . ((int) $id);
621 621
         $result = $this->db->query($sql);
622 622
         if ($result) {
623 623
             if ($this->db->num_rows($result)) {
@@ -1125,7 +1125,7 @@  discard block
 block discarded – undo
1125 1125
                 }
1126 1126
 
1127 1127
                 if ($rule['type'] == 'from') {
1128
-                    $tmprulevaluearray = explode('*', $rule['rulevalue']);  // Search on abc*def means searching on 'abc' and on 'def'
1128
+                    $tmprulevaluearray = explode('*', $rule['rulevalue']); // Search on abc*def means searching on 'abc' and on 'def'
1129 1129
                     if (count($tmprulevaluearray) >= 2) {
1130 1130
                         foreach ($tmprulevaluearray as $tmprulevalue) {
1131 1131
                             $search .= ($search ? ' ' : '') . $not . 'FROM "' . str_replace('"', '', $tmprulevalue) . '"';
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
                     }
1136 1136
                 }
1137 1137
                 if ($rule['type'] == 'to') {
1138
-                    $tmprulevaluearray = explode('*', $rule['rulevalue']);  // Search on abc*def means searching on 'abc' and on 'def'
1138
+                    $tmprulevaluearray = explode('*', $rule['rulevalue']); // Search on abc*def means searching on 'abc' and on 'def'
1139 1139
                     if (count($tmprulevaluearray) >= 2) {
1140 1140
                         foreach ($tmprulevaluearray as $tmprulevalue) {
1141 1141
                             $search .= ($search ? ' ' : '') . $not . 'TO "' . str_replace('"', '', $tmprulevalue) . '"';
@@ -1322,7 +1322,7 @@  discard block
 block discarded – undo
1322 1322
             }
1323 1323
         }
1324 1324
 
1325
-        $arrayofemailtodelete = array();    // Track email to delete to make the deletion at end.
1325
+        $arrayofemailtodelete = array(); // Track email to delete to make the deletion at end.
1326 1326
 
1327 1327
         // Loop on each email found
1328 1328
         if (!$error && !empty($arrayofemail) && count($arrayofemail) > 0) {
@@ -1392,7 +1392,7 @@  discard block
 block discarded – undo
1392 1392
                     // $operationslog .= " - ".dol_escape_htmltag((string) $imapemail);
1393 1393
                     $msgid = str_replace(array('<', '>'), '', $overview['message_id']);
1394 1394
                 } else {
1395
-                    $operationslog .= " - " . dol_escape_htmltag((string)$imapemail);
1395
+                    $operationslog .= " - " . dol_escape_htmltag((string) $imapemail);
1396 1396
                     $msgid = str_replace(array('<', '>'), '', $overview[0]->message_id);
1397 1397
                 }
1398 1398
                 $operationslog .= " - MsgId: " . $msgid . " - References: " . dol_escape_htmltag($headers['References'] ?? '') . " - Subject: " . dol_escape_htmltag($headers['Subject']);
@@ -1654,15 +1654,15 @@  discard block
 block discarded – undo
1654 1654
                     $tmpdate = $overview['date']->toDate();
1655 1655
                     $tmptimezone = $tmpdate->getTimezone()->getName();
1656 1656
 
1657
-                    $dateemail = dol_stringtotime((string)$overview['date'], 'gmt');    // if $overview['timezone'] is "+00:00"
1657
+                    $dateemail = dol_stringtotime((string) $overview['date'], 'gmt'); // if $overview['timezone'] is "+00:00"
1658 1658
                     if (preg_match('/^([+\-])(\d\d):(\d\d)/', $tmptimezone, $reg)) {
1659 1659
                         if ($reg[1] == '+' && ($reg[2] != '00' || $reg[3] != '00')) {
1660
-                            $dateemail -= (3600 * (int)$reg[2]);
1661
-                            $dateemail -= (60 * (int)$reg[3]);
1660
+                            $dateemail -= (3600 * (int) $reg[2]);
1661
+                            $dateemail -= (60 * (int) $reg[3]);
1662 1662
                         }
1663 1663
                         if ($reg[1] == '-' && ($reg[2] != '00' || $reg[3] != '00')) {
1664
-                            $dateemail += (3600 * (int)$reg[2]);
1665
-                            $dateemail += (60 * (int)$reg[3]);
1664
+                            $dateemail += (3600 * (int) $reg[2]);
1665
+                            $dateemail += (60 * (int) $reg[3]);
1666 1666
                         }
1667 1667
                     }
1668 1668
                     $subject = $overview['subject'];
@@ -1674,7 +1674,7 @@  discard block
 block discarded – undo
1674 1674
                     $to = $overview[0]->to;
1675 1675
                     $sendtocc = !empty($overview[0]->cc) ? $overview[0]->cc : '';
1676 1676
                     $sendtobcc = !empty($overview[0]->bcc) ? $overview[0]->bcc : '';
1677
-                    $dateemail = dol_stringtotime((string)$overview[0]->udate, 'gmt');
1677
+                    $dateemail = dol_stringtotime((string) $overview[0]->udate, 'gmt');
1678 1678
                     $subject = $overview[0]->subject;
1679 1679
                     //var_dump($msgid);exit;
1680 1680
                 }
@@ -1739,15 +1739,15 @@  discard block
 block discarded – undo
1739 1739
                 foreach ($arrayofreferences as $reference) {
1740 1740
                     //print "Process mail ".$iforemailloop." email_msgid ".$msgid.", date ".dol_print_date($dateemail, 'dayhour', 'gmt').", subject ".$subject.", reference ".dol_escape_htmltag($reference)."<br>\n";
1741 1741
                     if (!empty($trackidfoundintorecipienttype)) {
1742
-                        $resultsearchtrackid = -1;      // trackid found
1742
+                        $resultsearchtrackid = -1; // trackid found
1743 1743
                         $reg[1] = $trackidfoundintorecipienttype;
1744 1744
                         $reg[2] = $trackidfoundintorecipientid;
1745 1745
                     } elseif (!empty($trackidfoundintomsgidtype)) {
1746
-                        $resultsearchtrackid = -1;      // trackid found
1746
+                        $resultsearchtrackid = -1; // trackid found
1747 1747
                         $reg[1] = $trackidfoundintomsgidtype;
1748 1748
                         $reg[2] = $trackidfoundintomsgidid;
1749 1749
                     } else {
1750
-                        $resultsearchtrackid = preg_match('/dolibarr-([a-z]+)([0-9]+)@' . preg_quote($host, '/') . '/', $reference, $reg);  // trackid found or not
1750
+                        $resultsearchtrackid = preg_match('/dolibarr-([a-z]+)([0-9]+)@' . preg_quote($host, '/') . '/', $reference, $reg); // trackid found or not
1751 1751
                         if (empty($resultsearchtrackid) && getDolGlobalString('EMAIL_ALTERNATIVE_HOST_SIGNATURE')) {
1752 1752
                             $resultsearchtrackid = preg_match('/dolibarr-([a-z]+)([0-9]+)@' . preg_quote(getDolGlobalString('EMAIL_ALTERNATIVE_HOST_SIGNATURE'), '/') . '/', $reference, $reg); // trackid found
1753 1753
                         }
@@ -2045,7 +2045,7 @@  discard block
 block discarded – undo
2045 2045
 
2046 2046
                         // Make Operation
2047 2047
                         dol_syslog("Execute action " . $operation['type'] . " actionparam=" . $operation['actionparam'] . ' thirdpartystatic->id=' . $thirdpartystatic->id . ' contactstatic->id=' . $contactstatic->id . ' projectstatic->id=' . $projectstatic->id);
2048
-                        dol_syslog("Execute action fk_element_id=" . $fk_element_id . " fk_element_type=" . $fk_element_type);    // If a Dolibarr tracker id is found, we should now the id of object
2048
+                        dol_syslog("Execute action fk_element_id=" . $fk_element_id . " fk_element_type=" . $fk_element_type); // If a Dolibarr tracker id is found, we should now the id of object
2049 2049
 
2050 2050
                         // Try to guess if this is an email in or out.
2051 2051
                         $actioncode = 'EMAIL_IN';
@@ -2098,7 +2098,7 @@  discard block
 block discarded – undo
2098 2098
                                     $operationslog .= '<br>Ticket not found using trackid=' . $trackid . ' or msgid=' . $msgid;
2099 2099
                                     $ticketalreadyexists = 0;
2100 2100
                                 } else {
2101
-                                    $operationslog .= '<br>Ticket already found using trackid=' . $trackid . ' or msgid=' . $msgid;   // We change the operation type to do
2101
+                                    $operationslog .= '<br>Ticket already found using trackid=' . $trackid . ' or msgid=' . $msgid; // We change the operation type to do
2102 2102
                                     $ticketalreadyexists = 1;
2103 2103
                                     $operation['type'] = 'recordevent';
2104 2104
                                 }
@@ -2472,8 +2472,8 @@  discard block
 block discarded – undo
2472 2472
                                 $actioncomm->label = $langs->trans("ActionAC_" . $actioncode) . ' - ' . $langs->trans("MailFrom") . ' ' . $from;
2473 2473
                                 $actioncomm->note_private = $descriptionfull;
2474 2474
                                 $actioncomm->fk_project = $projectstatic->id;
2475
-                                $actioncomm->datep = $dateemail;  // date of email
2476
-                                $actioncomm->datef = $dateemail;  // date of email
2475
+                                $actioncomm->datep = $dateemail; // date of email
2476
+                                $actioncomm->datef = $dateemail; // date of email
2477 2477
                                 $actioncomm->percentage = -1; // Not applicable
2478 2478
                                 $actioncomm->socid = $thirdpartystatic->id;
2479 2479
                                 $actioncomm->contact_id = $contactstatic->id;
@@ -2671,7 +2671,7 @@  discard block
 block discarded – undo
2671 2671
                                 }
2672 2672
                                 $hookmanager->initHooks(array('emailcolector'));
2673 2673
                                 $parameters = array('arrayobject' => $arrayobject);
2674
-                                $reshook = $hookmanager->executeHooks('addmoduletoeamailcollectorjoinpiece', $parameters);    // Note that $action and $object may have been modified by some hooks
2674
+                                $reshook = $hookmanager->executeHooks('addmoduletoeamailcollectorjoinpiece', $parameters); // Note that $action and $object may have been modified by some hooks
2675 2675
                                 if ($reshook > 0) {
2676 2676
                                     $arrayobject = $hookmanager->resArray;
2677 2677
                                 }
@@ -2760,7 +2760,7 @@  discard block
 block discarded – undo
2760 2760
                                 $percent_opp_status = dol_getIdFromCode($this->db, 'PROSP', 'c_lead_status', 'code', 'percent');
2761 2761
 
2762 2762
                                 $projecttocreate->title = $subject;
2763
-                                $projecttocreate->date_start = $date;   // date of email
2763
+                                $projecttocreate->date_start = $date; // date of email
2764 2764
                                 $projecttocreate->date_end = 0;
2765 2765
                                 $projecttocreate->opp_status = $id_opp_status;
2766 2766
                                 $projecttocreate->opp_percent = $percent_opp_status;
@@ -2785,7 +2785,7 @@  discard block
 block discarded – undo
2785 2785
                                     $file = '';
2786 2786
                                     $classname = '';
2787 2787
                                     $reldir = '';
2788
-                                    $dirmodels = array_merge(array('/'), (array)$conf->modules_parts['models']);
2788
+                                    $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
2789 2789
                                     foreach ($dirmodels as $reldir) {
2790 2790
                                         $file = dol_buildpath($reldir . "core/modules/project/" . $modele . '.php', 0);
2791 2791
                                         if (file_exists($file)) {
@@ -2840,7 +2840,7 @@  discard block
 block discarded – undo
2840 2840
                                                 if (getDolGlobalString('MAIN_IMAP_USE_PHPIMAP')) {
2841 2841
                                                     foreach ($attachments as $attachment) {
2842 2842
                                                         // $attachment->save($destdir.'/');
2843
-                                                        $typeattachment = (string)$attachment->getDisposition();
2843
+                                                        $typeattachment = (string) $attachment->getDisposition();
2844 2844
                                                         $filename = $attachment->getFilename();
2845 2845
                                                         $content = $attachment->getContent();
2846 2846
                                                         $this->saveAttachment($destdir, $filename, $content);
@@ -2925,7 +2925,7 @@  discard block
 block discarded – undo
2925 2925
                                     $file = '';
2926 2926
                                     $classname = '';
2927 2927
                                     $reldir = '';
2928
-                                    $dirmodels = array_merge(array('/'), (array)$conf->modules_parts['models']);
2928
+                                    $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
2929 2929
                                     foreach ($dirmodels as $reldir) {
2930 2930
                                         $file = dol_buildpath($reldir . "core/modules/ticket/" . $modele . '.php', 0);
2931 2931
                                         if (file_exists($file)) {
@@ -2975,7 +2975,7 @@  discard block
 block discarded – undo
2975 2975
                                                 if (getDolGlobalString('MAIN_IMAP_USE_PHPIMAP')) {
2976 2976
                                                     foreach ($attachments as $attachment) {
2977 2977
                                                         // $attachment->save($destdir.'/');
2978
-                                                        $typeattachment = (string)$attachment->getDisposition();
2978
+                                                        $typeattachment = (string) $attachment->getDisposition();
2979 2979
                                                         $filename = $attachment->getFilename();
2980 2980
                                                         $content = $attachment->getContent();
2981 2981
                                                         $this->saveAttachment($destdir, $filename, $content);
@@ -3022,7 +3022,7 @@  discard block
 block discarded – undo
3022 3022
                                 $candidaturetocreate->note_private = $descriptionfull;
3023 3023
                                 $candidaturetocreate->entity = $conf->entity;
3024 3024
                                 $candidaturetocreate->email_msgid = $msgid;
3025
-                                $candidaturetocreate->email_date = $date;       // date of email
3025
+                                $candidaturetocreate->email_date = $date; // date of email
3026 3026
                                 $candidaturetocreate->status = $candidaturetocreate::STATUS_DRAFT;
3027 3027
                                 //$candidaturetocreate->fk_contact = $contactstatic->id;
3028 3028
 
@@ -3324,8 +3324,8 @@  discard block
 block discarded – undo
3324 3324
     {
3325 3325
         if (function_exists('mb_convert_encoding')) {
3326 3326
             // change spaces by entropy because mb_convert fail with spaces
3327
-            $str = preg_replace("/ /", "xxxSPACExxx", $str);        // the replacement string must be valid in utf7 so _ can't be used
3328
-            $str = preg_replace("/\[Gmail\]/", "xxxGMAILxxx", $str);    // the replacement string must be valid in utf7 so _ can't be used
3327
+            $str = preg_replace("/ /", "xxxSPACExxx", $str); // the replacement string must be valid in utf7 so _ can't be used
3328
+            $str = preg_replace("/\[Gmail\]/", "xxxGMAILxxx", $str); // the replacement string must be valid in utf7 so _ can't be used
3329 3329
             // if mb_convert work
3330 3330
             if ($str = mb_convert_encoding($str, "UTF-7")) {
3331 3331
                 // change characters
@@ -3851,7 +3851,7 @@  discard block
 block discarded – undo
3851 3851
         if (is_object($imapemail)) {
3852 3852
             return $imapemail->getAttributes()["uid"];
3853 3853
         } else {
3854
-            return (string)$imapemail;
3854
+            return (string) $imapemail;
3855 3855
         }
3856 3856
     }
3857 3857
 }
Please login to merge, or discard this patch.
htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
                 $object->clearObjectLinkedCache();
105 105
 
106
-                return (int)$ret;
106
+                return (int) $ret;
107 107
             }
108 108
         }
109 109
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                         foreach ($object->linkedObjects['shipping'] as $element) {
216 216
                             $ret = $element->setClosed();
217 217
                             if ($ret < 0) {
218
-                                return (int)$ret;
218
+                                return (int) $ret;
219 219
                             }
220 220
                         }
221 221
                     }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                         foreach ($object->linkedObjects['shipping'] as $element) {
237 237
                             $ret = $element->setBilled();
238 238
                             if ($ret < 0) {
239
-                                return (int)$ret;
239
+                                return (int) $ret;
240 240
                             }
241 241
                         }
242 242
                     }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                         $areAllInvoicesValidated = true;
255 255
                         foreach ($orderLinked->linkedObjects['facture'] as $key => $invoice) {
256 256
                             if ($invoice->statut == Facture::STATUS_VALIDATED || $object->id == $invoice->id) {
257
-                                $totalHTInvoices += (float)$invoice->total_ht;
257
+                                $totalHTInvoices += (float) $invoice->total_ht;
258 258
                             } else {
259 259
                                 $areAllInvoicesValidated = false;
260 260
                                 break;
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                         }
263 263
                         if ($areAllInvoicesValidated) {
264 264
                             $isSameTotal = (price2num($totalHTInvoices, 'MT') == price2num($orderLinked->total_ht, 'MT'));
265
-                            dol_syslog("Amount of linked invoices = " . $totalHTInvoices . ", of order = " . $orderLinked->total_ht . ", isSameTotal = " . (string)$isSameTotal, LOG_DEBUG);
265
+                            dol_syslog("Amount of linked invoices = " . $totalHTInvoices . ", of order = " . $orderLinked->total_ht . ", isSameTotal = " . (string) $isSameTotal, LOG_DEBUG);
266 266
                             if ($isSameTotal) {
267 267
                                 $ret = $orderLinked->classifyBilled($user);
268 268
                                 if ($ret < 0) {
@@ -592,9 +592,9 @@  discard block
 block discarded – undo
592 592
             // Automatically create intervention
593 593
             if (isModEnabled('intervention') && isModEnabled('ticket') && !empty($conf->workflow->enabled) && getDolGlobalString('WORKFLOW_TICKET_CREATE_INTERVENTION')) {
594 594
                 $fichinter = new Fichinter($this->db);
595
-                $fichinter->socid = (int)$object->fk_soc;
596
-                $fichinter->fk_project = (int)$object->fk_project;
597
-                $fichinter->fk_contrat = (int)$object->fk_contract;
595
+                $fichinter->socid = (int) $object->fk_soc;
596
+                $fichinter->fk_project = (int) $object->fk_project;
597
+                $fichinter->fk_contrat = (int) $object->fk_contract;
598 598
                 $fichinter->author = $user->id;
599 599
                 $fichinter->model_pdf = (getDolGlobalString('FICHEINTER_ADDON_PDF')) ? $conf->global->FICHEINTER_ADDON_PDF : 'soleil';
600 600
                 $fichinter->origin = $object->element;
Please login to merge, or discard this patch.
public/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1510,8 +1510,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.