Passed
Push — FUNCTIONS_LIB_REVIEW_240920 ( 00d68f )
by Rafael
49:46
created
Dolibarr/Code/SupplierProposal/Classes/SupplierProposalLine.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
         }
666 666
     }
667 667
 
668
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
668
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
669 669
     /**
670 670
      *  Update DB line fields total_xxx
671 671
      *  Used by migration
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
      */
675 675
     public function update_total()
676 676
     {
677
-		// phpcs:enable
677
+        // phpcs:enable
678 678
         $this->db->begin();
679 679
 
680 680
         // Mise a jour ligne en base
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/WebPortalOrder.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         return $this->LibStatut($this->fk_statut, $this->billed, $mode);
321 321
     }
322 322
 
323
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
323
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
324 324
     /**
325 325
      *  Return label of status
326 326
      *
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     public function LibStatut($status, $billed, $mode, $donotshowbilled = 0)
334 334
     {
335
-		// phpcs:enable
335
+        // phpcs:enable
336 336
         return $this->getOrderStatic()->LibStatut($status, $billed, $mode, $donotshowbilled);
337 337
     }
338 338
 }
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/FormWebPortal.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -376,9 +376,9 @@  discard block
 block discarded – undo
376 376
         $vartmp = (empty($InfoFieldList[3]) ? '' : $InfoFieldList[3]);
377 377
         $reg = array();
378 378
         if (preg_match('/^.*:(\w*)$/', $vartmp, $reg)) {
379
-            $InfoFieldList[4] = $reg[1];    // take the sort field
379
+            $InfoFieldList[4] = $reg[1]; // take the sort field
380 380
         }
381
-        $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp);    // take the filter field
381
+        $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field
382 382
 
383 383
         $classname = $InfoFieldList[0];
384 384
         $classpath = $InfoFieldList[1];
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
         if (!empty($objecttmp->fields)) {    // For object that declare it, it is better to use declared fields (like societe, contact, ...)
450 450
             $tmpfieldstoshow = '';
451 451
             foreach ($objecttmp->fields as $key => $val) {
452
-                if (! (int) dol_eval($val['enabled'], 1, 1, '1')) {
452
+                if (!(int) dol_eval($val['enabled'], 1, 1, '1')) {
453 453
                     continue;
454 454
                 }
455 455
                 if (!empty($val['showoncombobox'])) {
@@ -1056,7 +1056,7 @@  discard block
 block discarded – undo
1056 1056
             //
1057 1057
         } elseif ($type == 'date') {
1058 1058
             if (!empty($value)) {
1059
-                $value = dol_print_date($value, 'day');    // We suppose dates without time are always gmt (storage of course + output)
1059
+                $value = dol_print_date($value, 'day'); // We suppose dates without time are always gmt (storage of course + output)
1060 1060
             } else {
1061 1061
                 $value = '';
1062 1062
             }
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/FormCardWebPortal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,8 +171,8 @@
 block discarded – undo
171 171
         $confirm = GETPOST('confirm', 'alpha');
172 172
         $cancel = GETPOST('cancel', 'aZ09');
173 173
         $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'webportal' . $elementEn . 'card'; // To manage different context of search
174
-        $backtopage = GETPOST('backtopage', 'alpha');                    // if not set, a default page will be used
175
-        $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');    // if not set, $backtopage will be used
174
+        $backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used
175
+        $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used
176 176
         $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha');
177 177
 
178 178
         // Initialize technical objects
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/WebPortalInvoice.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
         return $this->LibStatut($this->paye, $this->fk_statut, $mode, $alreadypaid, $this->type);
324 324
     }
325 325
 
326
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
326
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
327 327
 
328 328
     /**
329 329
      *  Return label of a status
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function LibStatut($paye, $status, $mode = 0, $alreadypaid = -1, $type = -1)
339 339
     {
340
-		// phpcs:enable
340
+        // phpcs:enable
341 341
         return $this->getInvoiceStatic()->LibStatut($paye, $status, $mode, $alreadypaid, $type);
342 342
     }
343 343
 }
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
         $this->tplPath = realpath(__DIR__ . '/../../public/webportal/tpl');
171 171
 
172 172
         $this->controller = GETPOST('controller', 'aZ09'); // for security, limited to 'aZ09'
173
-        $this->action = GETPOST('action', 'aZ09');// for security, limited to 'aZ09'
173
+        $this->action = GETPOST('action', 'aZ09'); // for security, limited to 'aZ09'
174 174
 
175 175
         if (empty($this->controller)) {
176 176
             $this->controller = 'default';
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/Controller.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
 
23 23
 use DoliDB;
24 24
 
25
- /**
26
- * \file       htdocs/webportal/class/controller.class.php
27
- * \ingroup    webportal
28
- * \brief      File of controller class for WebPortal
29
- */
25
+    /**
26
+     * \file       htdocs/webportal/class/controller.class.php
27
+     * \ingroup    webportal
28
+     * \brief      File of controller class for WebPortal
29
+     */
30 30
 
31 31
 /**
32 32
  *  Class to manage pages
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         /* Use $context singleton to modify menu, */
155 155
         $parameters['controller'] = $context->controller;
156 156
 
157
-        $reshook = $hookmanager->executeHooks('doActions', $parameters, $context, $context->action);    // Note that $action and $object may have been modified by hook
157
+        $reshook = $hookmanager->executeHooks('doActions', $parameters, $context, $context->action); // Note that $action and $object may have been modified by hook
158 158
         if ($reshook < 0) {
159 159
             $context->setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
160 160
         }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         /* Use $context singleton to modify menu, */
178 178
         $parameters['controller'] = $context->controller;
179 179
 
180
-        $reshook = $hookmanager->executeHooks('PrintPageView', $parameters, $context, $context->action);    // Note that $action and $object may have been modified by hook
180
+        $reshook = $hookmanager->executeHooks('PrintPageView', $parameters, $context, $context->action); // Note that $action and $object may have been modified by hook
181 181
         if ($reshook < 0) {
182 182
             $context->setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
183 183
         }
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/WebPortalMember.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         return $this->LibStatut($this->status, $this->need_subscription, $this->datefin, $mode);
391 391
     }
392 392
 
393
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
393
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
394 394
 
395 395
     /**
396 396
      * Renvoi le libelle d'un statut donne
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
      */
404 404
     public function LibStatut($status, $need_subscription, $date_end_subscription, $mode = 0)
405 405
     {
406
-		// phpcs:enable
406
+        // phpcs:enable
407 407
         return $this->getMemberStatic()->LibStatut($status, $need_subscription, $date_end_subscription, $mode);
408 408
     }
409 409
 
Please login to merge, or discard this patch.
Dolibarr/Code/WebPortal/Classes/WebPortalPropal.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         return $this->LibStatut($this->fk_statut, $mode);
316 316
     }
317 317
 
318
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
318
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
319 319
     /**
320 320
      * Return the label of a given status
321 321
      *
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      */
326 326
     public function LibStatut($status, $mode = 0)
327 327
     {
328
-		// phpcs:enable
328
+        // phpcs:enable
329 329
         return $this->getPropalStatic()->LibStatut($status, $mode);
330 330
     }
331 331
 }
Please login to merge, or discard this patch.