Passed
Push — EXTRACT_CLASSES ( a2ff75...ae6b5c )
by Rafael
34:15
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/document.controller.class.php 1 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/admin/security.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
 
146 146
 if ($action == 'updatepattern') {
147 147
     $pattern = GETPOST("pattern", "alpha");
148
-    $explodePattern = explode(';', $pattern);  // List of ints separated with ';' containing counts
148
+    $explodePattern = explode(';', $pattern); // List of ints separated with ';' containing counts
149 149
 
150 150
     $patternInError = false;
151 151
     if ((int) $explodePattern[0] < 1 || (int) $explodePattern[4] < 0) {
Please login to merge, or discard this patch.
public/htdocs/admin/oauth.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
     $globalkey = empty($provider) ? $label : $label . '-' . $provider;
196 196
 
197
-    if (!dolibarr_del_const($db, $globalkey . '_NAME', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_ID', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SECRET', $conf->entity) ||  !dolibarr_del_const($db, $globalkey . '_URLAUTHORIZE', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SCOPE', $conf->entity)) {
197
+    if (!dolibarr_del_const($db, $globalkey . '_NAME', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_ID', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SECRET', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_URLAUTHORIZE', $conf->entity) || !dolibarr_del_const($db, $globalkey . '_SCOPE', $conf->entity)) {
198 198
         setEventMessages($langs->trans("ErrorInEntryDeletion"), null, 'errors');
199 199
         $error++;
200 200
     } else {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
             $provider . '_NAME',
271 271
             $provider . '_ID',
272 272
             $provider . '_SECRET',
273
-            $provider . '_URLAUTHORIZE',  // For custom oauth links
273
+            $provider . '_URLAUTHORIZE', // For custom oauth links
274 274
             $provider . '_SCOPE'          // For custom oauth links
275 275
         );
276 276
     }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     // $list is defined into oauth.lib.php to the list of supporter OAuth providers.
290 290
     foreach ($listinsetup as $key) {
291 291
         $supported = 0;
292
-        $keyforsupportedoauth2array = $key[0];                      // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
292
+        $keyforsupportedoauth2array = $key[0]; // May be OAUTH_GOOGLE_NAME or OAUTH_GOOGLE_xxx_NAME
293 293
         $keyforsupportedoauth2array = preg_replace('/^OAUTH_/', '', $keyforsupportedoauth2array);
294 294
         $keyforsupportedoauth2array = preg_replace('/_NAME$/', '', $keyforsupportedoauth2array);
295 295
         if (preg_match('/^.*-/', $keyforsupportedoauth2array)) {
Please login to merge, or discard this patch.
public/htdocs/admin/eventorganization.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
 $value = GETPOST('value', 'alpha');
45 45
 $label = GETPOST('label', 'alpha');
46
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
46
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
47 47
 
48 48
 $scandir = GETPOST('scan_dir', 'alpha');
49 49
 $type = 'myobject';
50 50
 
51 51
 $arrayofparameters = array(
52
-    'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea','enabled' => 1, 'css' => ''),
52
+    'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea', 'enabled' => 1, 'css' => ''),
53 53
     'EVENTORGANIZATION_CATEG_THIRDPARTY_CONF' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1, 'css' => ''),
54 54
     'EVENTORGANIZATION_CATEG_THIRDPARTY_BOOTH' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1, 'css' => ''),
55 55
     'EVENTORGANIZATION_FILTERATTENDEES_CAT' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1, 'css' => ''),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
  */
83 83
 
84 84
 if ($cancel) {
85
-    $action  = '';
85
+    $action = '';
86 86
 }
87 87
 
88 88
 include DOL_DOCUMENT_ROOT . '/core/actions_setmoduleoptions.inc.php';
Please login to merge, or discard this patch.
public/htdocs/admin/supplier_payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
 $action = GETPOST('action', 'aZ09');
42 42
 $value = GETPOST('value', 'alpha');
43
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
43
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
44 44
 
45 45
 $label = GETPOST('label', 'alpha');
46 46
 $scandir = GETPOST('scandir', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/workstation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 // Parameters
39 39
 $action = GETPOST('action', 'aZ09');
40 40
 $backtopage = GETPOST('backtopage', 'alpha');
41
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
41
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
42 42
 
43 43
 $value = GETPOST('value', 'alpha');
44 44
 
Please login to merge, or discard this patch.
public/htdocs/admin/ihm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -693,7 +693,7 @@
 block discarded – undo
693 693
     $maxfilesizearray = getMaxFileSizeArray();
694 694
     $maxmin = $maxfilesizearray['maxmin'];
695 695
     if ($maxmin > 0) {
696
-        print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
696
+        print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
697 697
     }
698 698
     print '<input type="file" class="flat maxwidthinputfileonsmartphone" name="imagebackground" id="imagebackground"' . $disabled . '>';
699 699
     if ($disabled) {
Please login to merge, or discard this patch.