Test Failed
Push — main ( ac1cad...7178bf )
by Rafael
50:59
created
htdocs/install/upgrade2.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4207,7 +4207,7 @@  discard block
 block discarded – undo
4207 4207
     }
4208 4208
 
4209 4209
     if (!is_object($user)) {
4210
-        $user = new User($db);  // To avoid error during migration
4210
+        $user = new User($db); // To avoid error during migration
4211 4211
     }
4212 4212
 
4213 4213
     dolibarr_install_syslog("upgrade2::migrate_reload_modules force=" . $force . ", listofmodule=" . implode(',', array_keys($listofmodule)));
@@ -5038,7 +5038,7 @@  discard block
 block discarded – undo
5038 5038
                 $error++;
5039 5039
             }
5040 5040
 
5041
-            $current_contract =  $obj->cid;
5041
+            $current_contract = $obj->cid;
5042 5042
         }
5043 5043
     } else {
5044 5044
         $error++;
Please login to merge, or discard this patch.
htdocs/index_dol.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     // Number of supplier proposals open (expired)
209
-    if (isModEnabled('supplier_proposal')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('supplier_proposal', 'lire')) {
209
+    if (isModEnabled('supplier_proposal') && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('supplier_proposal', 'lire')) {
210 210
         $langs->load("supplier_proposal");
211 211
         $board = new SupplierProposal($db);
212 212
         $dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     }
216 216
 
217 217
     // Number of sales orders
218
-    if (isModEnabled('order')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_CUSTOMER') && $user->hasRight('commande', 'lire')) {
218
+    if (isModEnabled('order') && !getDolGlobalString('MAIN_DISABLE_BLOCK_CUSTOMER') && $user->hasRight('commande', 'lire')) {
219 219
         $board = new Commande($db);
220 220
         // Number of customer orders to be shipped (validated and in progress)
221 221
         $dashboardlines[$board->element . '_toship'] = $board->load_board($user, 'toship');
@@ -228,14 +228,14 @@  discard block
 block discarded – undo
228 228
     }
229 229
 
230 230
     // Number of suppliers orders
231
-    if (isModEnabled('supplier_order')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('fournisseur', 'commande', 'lire')) {
231
+    if (isModEnabled('supplier_order') && !getDolGlobalString('MAIN_DISABLE_BLOCK_SUPPLIER') && $user->hasRight('fournisseur', 'commande', 'lire')) {
232 232
         $board = new CommandeFournisseur($db);
233 233
         $dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
234 234
         $dashboardlines[$board->element . '_awaiting'] = $board->load_board($user, 'awaiting');
235 235
     }
236 236
 
237 237
     // Number of contract / services enabled (delayed)
238
-    if (isModEnabled('contract')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_CONTRACT') && $user->hasRight('contrat', 'lire')) {
238
+    if (isModEnabled('contract') && !getDolGlobalString('MAIN_DISABLE_BLOCK_CONTRACT') && $user->hasRight('contrat', 'lire')) {
239 239
         $board = new Contrat($db);
240 240
         $dashboardlines[$board->element . '_inactive'] = $board->load_board($user, "inactive");
241 241
         // Number of active services (expired)
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     }
244 244
 
245 245
     // Number of tickets open
246
-    if (isModEnabled('ticket')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_TICKET') && $user->hasRight('ticket', 'read')) {
246
+    if (isModEnabled('ticket') && !getDolGlobalString('MAIN_DISABLE_BLOCK_TICKET') && $user->hasRight('ticket', 'read')) {
247 247
         $board = new Ticket($db);
248 248
         $dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
249 249
         // Number of active services (expired)
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     }
264 264
 
265 265
     // Number of transactions to conciliate
266
-    if (isModEnabled('bank')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
266
+    if (isModEnabled('bank') && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
267 267
         $board = new Account($db);
268 268
         $nb = $board->countAccountToReconcile(); // Get nb of account to reconciliate
269 269
         if ($nb > 0) {
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
 
275 275
     // Number of cheque to send
276
-    if (isModEnabled('bank')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
276
+    if (isModEnabled('bank') && !getDolGlobalString('MAIN_DISABLE_BLOCK_BANK') && $user->hasRight('banque', 'lire') && !$user->socid) {
277 277
         if (!getDolGlobalString('BANK_DISABLE_CHECK_DEPOSIT')) {
278 278
             include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
279 279
             $board = new RemiseCheque($db);
@@ -292,26 +292,26 @@  discard block
 block discarded – undo
292 292
     }
293 293
 
294 294
     // Number of foundation members
295
-    if (isModEnabled('member')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_ADHERENT') && $user->hasRight('adherent', 'lire') && !$user->socid) {
295
+    if (isModEnabled('member') && !getDolGlobalString('MAIN_DISABLE_BLOCK_ADHERENT') && $user->hasRight('adherent', 'lire') && !$user->socid) {
296 296
         $board = new Adherent($db);
297 297
         $dashboardlines[$board->element . '_shift'] = $board->load_board($user, 'shift');
298 298
         $dashboardlines[$board->element . '_expired'] = $board->load_board($user, 'expired');
299 299
     }
300 300
 
301 301
     // Number of expense reports to approve
302
-    if (isModEnabled('expensereport')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'approve')) {
302
+    if (isModEnabled('expensereport') && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'approve')) {
303 303
         $board = new ExpenseReport($db);
304 304
         $dashboardlines[$board->element . '_toapprove'] = $board->load_board($user, 'toapprove');
305 305
     }
306 306
 
307 307
     // Number of expense reports to pay
308
-    if (isModEnabled('expensereport')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'to_paid')) {
308
+    if (isModEnabled('expensereport') && !getDolGlobalString('MAIN_DISABLE_BLOCK_EXPENSEREPORT') && $user->hasRight('expensereport', 'to_paid')) {
309 309
         $board = new ExpenseReport($db);
310 310
         $dashboardlines[$board->element . '_topay'] = $board->load_board($user, 'topay');
311 311
     }
312 312
 
313 313
     // Number of holidays to approve
314
-    if (isModEnabled('holiday')  && !getDolGlobalString('MAIN_DISABLE_BLOCK_HOLIDAY') && $user->hasRight('holiday', 'approve')) {
314
+    if (isModEnabled('holiday') && !getDolGlobalString('MAIN_DISABLE_BLOCK_HOLIDAY') && $user->hasRight('holiday', 'approve')) {
315 315
         $board = new Holiday($db);
316 316
         $dashboardlines[$board->element] = $board->load_board($user);
317 317
     }
Please login to merge, or discard this patch.
htdocs/core/modules/DolibarrModules.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1477,7 +1477,7 @@  discard block
 block discarded – undo
1477 1477
 
1478 1478
                 $sql = "DELETE FROM " . MAIN_DB_PREFIX . "boxes_def";
1479 1479
                 $sql .= " WHERE file = '" . $this->db->escape($file) . "'";
1480
-                $sql .= " AND entity = " . $conf->entity;     // Do not use getEntity here, we want to delete only in current company
1480
+                $sql .= " AND entity = " . $conf->entity; // Do not use getEntity here, we want to delete only in current company
1481 1481
 
1482 1482
                 dol_syslog(get_class($this) . "::delete_boxes", LOG_DEBUG);
1483 1483
                 $resql = $this->db->query($sql);
@@ -1895,7 +1895,7 @@  discard block
 block discarded – undo
1895 1895
             if ($obj !== null && !empty($obj->value) && !empty($this->rights)) {
1896 1896
                 // If the module is active
1897 1897
                 foreach ($this->rights as $key => $value) {
1898
-                    $r_id = $this->rights[$key][0];   // permission id in llx_rights_def (not unique because primary key is couple id-entity)
1898
+                    $r_id = $this->rights[$key][0]; // permission id in llx_rights_def (not unique because primary key is couple id-entity)
1899 1899
                     $r_desc = $this->rights[$key][1];
1900 1900
                     $r_type = isset($this->rights[$key][2]) ? $this->rights[$key][2] : '';
1901 1901
                     $r_def = empty($this->rights[$key][3]) ? 0 : $this->rights[$key][3];
@@ -2585,7 +2585,7 @@  discard block
 block discarded – undo
2585 2585
     {
2586 2586
         require_once DOL_DOCUMENT_ROOT . '/core/lib/geturl.lib.php';
2587 2587
         if (!empty($this->url_last_version)) {
2588
-            $lastVersion = getURLContent($this->url_last_version, 'GET', '', 1, [], ['http', 'https'], 0);    // Accept http or https links on external remote server only
2588
+            $lastVersion = getURLContent($this->url_last_version, 'GET', '', 1, [], ['http', 'https'], 0); // Accept http or https links on external remote server only
2589 2589
             if (isset($lastVersion['content']) && strlen($lastVersion['content']) < 30) {
2590 2590
                 // Security warning :  be careful with remote data content, the module editor could be hacked (or evil) so limit to a-z A-Z 0-9 _ . -
2591 2591
                 $this->lastVersion = preg_replace("/[^a-zA-Z0-9_\.\-]+/", "", $lastVersion['content']);
Please login to merge, or discard this patch.
Core/Tools/Dispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
         if ($controller === null) {
54 54
             return false;
55 55
         }
56
-        return $controller->index();;
56
+        return $controller->index(); ;
57 57
     }
58 58
 }
Please login to merge, or discard this patch.