Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/bookcal/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/bookcal/availabilities_list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 // Default sort order (if not yet defined by previous GETPOST)
82 82
 if (!$sortfield) {
83
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
83
+    reset($object->fields); // Reset is required to avoid key() to return null.
84 84
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
85 85
 }
86 86
 if (!$sortorder) {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 // Output page
391 391
 // --------------------------------------------------------------------
392 392
 
393
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
393
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
394 394
 
395 395
 // Example : Adding jquery code
396 396
 // print '<script type="text/javascript">
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 }
522 522
 
523 523
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
524
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
524
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
525 525
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
526 526
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
527 527
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && $key != 'rowid' && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
616 616
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
617 617
     }
618
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
618
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
619 619
     if (!empty($arrayfields['t.' . $key]['checked'])) {
620 620
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
621 621
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/bookcal/calendar_list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 $object = new Calendar($db);
69 69
 $extrafields = new ExtraFields($db);
70 70
 $diroutputmassaction = $conf->bookcal->dir_output . '/temp/massgeneration/' . $user->id;
71
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
71
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
72 72
 
73 73
 // Fetch optionals attributes and labels
74 74
 $extrafields->fetch_name_optionals_label($object->table_element);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 // Default sort order (if not yet defined by previous GETPOST)
80 80
 if (!$sortfield) {
81
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
81
+    reset($object->fields); // Reset is required to avoid key() to return null.
82 82
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
83 83
 }
84 84
 if (!$sortorder) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 // Output page
387 387
 // --------------------------------------------------------------------
388 388
 
389
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
389
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
390 390
 
391 391
 $arrayofselected = is_array($toselect) ? $toselect : array();
392 392
 
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 }
504 504
 
505 505
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
506
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
506
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
507 507
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
508 508
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
509 509
 
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && $key != 'rowid' && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
597 597
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
598 598
     }
599
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
599
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
600 600
     if (!empty($arrayfields['t.' . $key]['checked'])) {
601 601
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
602 602
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/bookcal/availabilities_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
77 77
 
78 78
 //avoid warning on missing/undef entity
79
-$object->entity                 = (GETPOSTISSET('entity') ? GETPOSTINT('entity') : $conf->entity);
79
+$object->entity = (GETPOSTISSET('entity') ? GETPOSTINT('entity') : $conf->entity);
80 80
 
81 81
 // There is several ways to check permission.
82 82
 // Set $enablepermissioncheck to 1 to enable a minimum low level of checks
Please login to merge, or discard this patch.
public/htdocs/bookcal/class/availabilities.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
         return $this->LibStatut($this->status, $mode);
848 848
     }
849 849
 
850
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
850
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
851 851
     /**
852 852
      *  Return the status
853 853
      *
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
      */
858 858
     public function LibStatut($status, $mode = 0)
859 859
     {
860
-		// phpcs:enable
860
+        // phpcs:enable
861 861
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
862 862
             global $langs;
863 863
             //$langs->load("agenda");
Please login to merge, or discard this patch.
public/htdocs/bookcal/class/calendar.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
         return $this->LibStatut($this->status, $mode);
838 838
     }
839 839
 
840
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
840
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
841 841
     /**
842 842
      *  Return the label of a given status
843 843
      *
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
      */
848 848
     public function LibStatut($status, $mode = 0)
849 849
     {
850
-		// phpcs:enable
850
+        // phpcs:enable
851 851
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
852 852
             global $langs;
853 853
 
Please login to merge, or discard this patch.
public/htdocs/bookcal/calendar_card.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
 // Get parameters
41 41
 $id = GETPOSTINT('id');
42 42
 $ref = GETPOST('ref', 'alpha');
43
-$lineid   = GETPOSTINT('lineid');
43
+$lineid = GETPOSTINT('lineid');
44 44
 
45 45
 $action = GETPOST('action', 'aZ09');
46 46
 $confirm = GETPOST('confirm', 'alpha');
47 47
 $cancel = GETPOST('cancel', 'aZ09');
48 48
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search
49
-$backtopage = GETPOST('backtopage', 'alpha');                   // if not set, a default page will be used
49
+$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used
50 50
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used
51 51
 $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha');
52 52
 $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09');
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 // Load object
84 84
 include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
85 85
 
86
-$object->entity                 = (GETPOSTISSET('entity') ? GETPOSTINT('entity') : $conf->entity);
86
+$object->entity = (GETPOSTISSET('entity') ? GETPOSTINT('entity') : $conf->entity);
87 87
 
88 88
 // There is several ways to check permission.
89 89
 // Set $enablepermissioncheck to 1 to enable a minimum low level of checks
Please login to merge, or discard this patch.
public/htdocs/mailmanspip/class/mailmanspip.class.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         return $result['content'];
168 168
     }
169 169
 
170
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
170
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
171 171
     /**
172 172
      *  Fonction qui donne les droits redacteurs dans spip
173 173
      *
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function add_to_spip($object)
178 178
     {
179
-		// phpcs:enable
179
+        // phpcs:enable
180 180
         dol_syslog(get_class($this) . "::add_to_spip");
181 181
 
182 182
         if ($this->isSpipEnabled()) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         return 0;
215 215
     }
216 216
 
217
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
217
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
218 218
     /**
219 219
      *  Fonction qui enleve les droits redacteurs dans spip
220 220
      *
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      */
224 224
     public function del_to_spip($object)
225 225
     {
226
-		// phpcs:enable
226
+        // phpcs:enable
227 227
         dol_syslog(get_class($this) . "::del_to_spip");
228 228
 
229 229
         if ($this->isSpipEnabled()) {
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         return 0;
256 256
     }
257 257
 
258
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
258
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
259 259
     /**
260 260
      *  Indicate if the user is an existing editor in spip
261 261
      *
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function is_in_spip($object)
266 266
     {
267
-		// phpcs:enable
267
+        // phpcs:enable
268 268
         if ($this->isSpipEnabled()) {
269 269
             if ($this->checkSpipConfig()) {
270 270
                 $mydb = $this->connectSpip();
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
         return -1;
302 302
     }
303 303
 
304
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
304
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
305 305
     /**
306 306
      *  Subscribe an email to all mailing-lists
307 307
      *
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     public function add_to_mailman($object, $listes = '')
313 313
     {
314
-		// phpcs:enable
314
+        // phpcs:enable
315 315
         global $conf, $langs, $user;
316 316
 
317 317
         dol_syslog(get_class($this) . "::add_to_mailman");
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         return 0;
371 371
     }
372 372
 
373
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
373
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
374 374
     /**
375 375
      *  Unsubscribe an email from all mailing-lists
376 376
      *  Used when a user is resiliated
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      */
382 382
     public function del_to_mailman($object, $listes = '')
383 383
     {
384
-		// phpcs:enable
384
+        // phpcs:enable
385 385
         global $conf, $langs, $user;
386 386
 
387 387
         dol_syslog(get_class($this) . "::del_to_mailman");
Please login to merge, or discard this patch.
public/htdocs/eventorganization/conferenceorboothattendee_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'conferenceorboothattendeecard'; // To manage different context of search
48 48
 $backtopage = GETPOST('backtopage', 'alpha');
49 49
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
50
-$lineid   = GETPOSTINT('lineid');
50
+$lineid = GETPOSTINT('lineid');
51 51
 $mode = GETPOST('mode', 'alpha');
52 52
 
53 53
 $conf_or_booth_id = GETPOSTINT('conforboothid');
Please login to merge, or discard this patch.