Passed
Push — EXTRACT_CLASSES ( ff35ec...a2ff75 )
by Rafael
48:13
created
public/htdocs/webportal/admin/setup_theme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 // Parameters
69 69
 $action = GETPOST('action', 'aZ09');
70 70
 $backtopage = GETPOST('backtopage', 'alpha');
71
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
71
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
72 72
 
73 73
 $value = GETPOST('value', 'alpha');
74 74
 $label = GETPOST('label', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/webportal/admin/setup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 // Parameters
69 69
 $action = GETPOST('action', 'aZ09');
70 70
 $backtopage = GETPOST('backtopage', 'alpha');
71
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
71
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
72 72
 
73 73
 $value = GETPOST('value', 'alpha');
74 74
 $label = GETPOST('label', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/webportal/controllers/default.controller.class.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 19
  */
20 20
 
21
- /**
22
- * \file        htdocs/webportal/controllers/default.controller.class.php
23
- * \ingroup     webportal
24
- * \brief       This file is a controller for default
25
- */
21
+    /**
22
+     * \file        htdocs/webportal/controllers/default.controller.class.php
23
+     * \ingroup     webportal
24
+     * \brief       This file is a controller for default
25
+     */
26 26
 
27 27
 /**
28 28
  * Class for DefaultController
Please login to merge, or discard this patch.
public/htdocs/webportal/controllers/login.controller.class.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 19
  */
20 20
 
21
- /**
22
- * \file        htdocs/webportal/controllers/login.controller.class.php
23
- * \ingroup     webportal
24
- * \brief       This file is a controller for login
25
- */
21
+    /**
22
+     * \file        htdocs/webportal/controllers/login.controller.class.php
23
+     * \ingroup     webportal
24
+     * \brief       This file is a controller for login
25
+     */
26 26
 /**
27
- * Class for LoginController
28
- */
27
+     * Class for LoginController
28
+     */
29 29
 class LoginController extends Controller
30 30
 {
31 31
     /**
Please login to merge, or discard this patch.
public/htdocs/webportal/controllers/document.controller.class.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 19
  */
20 20
 
21
- /**
22
- * \file        htdocs/webportal/controllers/document.controller.class.php
23
- * \ingroup     webportal
24
- * \brief       This file is a controller for documents
25
- */
21
+    /**
22
+     * \file        htdocs/webportal/controllers/document.controller.class.php
23
+     * \ingroup     webportal
24
+     * \brief       This file is a controller for documents
25
+     */
26 26
 
27 27
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/files.lib.php';
28 28
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
         }
132 132
 
133 133
         // Security: Delete string ../ or ..\ into $original_file
134
-        $original_file = preg_replace('/\.\.+/', '..', $original_file);    // Replace '... or more' with '..'
134
+        $original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..'
135 135
         $original_file = str_replace('../', '/', $original_file);
136 136
         $original_file = str_replace('..\\', '/', $original_file);
137 137
 
Please login to merge, or discard this patch.
public/htdocs/webportal/class/webportalpartnership.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         return $this->LibStatut($this->status, $mode);
351 351
     }
352 352
 
353
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
353
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
354 354
 
355 355
     /**
356 356
      *  Return the status
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      */
362 362
     public function LibStatut($status, $mode = 0)
363 363
     {
364
-		// phpcs:enable
364
+        // phpcs:enable
365 365
         return $this->getPartnershipStatic()->LibStatut($status, $mode);
366 366
     }
367 367
 }
Please login to merge, or discard this patch.
public/htdocs/webportal/class/html.formwebportal.class.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.
public/htdocs/webportal/class/controller.class.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 18
  */
19 19
 
20
- /**
21
- * \file       htdocs/webportal/class/controller.class.php
22
- * \ingroup    webportal
23
- * \brief      File of controller class for WebPortal
24
- */
20
+    /**
21
+     * \file       htdocs/webportal/class/controller.class.php
22
+     * \ingroup    webportal
23
+     * \brief      File of controller class for WebPortal
24
+     */
25 25
 
26 26
 /**
27 27
  *  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.
public/htdocs/webportal/class/context.class.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.