Passed
Push — GENERAL_BUG_REVIEW_240911 ( 6dbc7d...fb375d )
by Rafael
53:50
created
public/htdocs/adherents/cartes/carte.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
                 $textright = make_substitutions(getDolGlobalString('ADHERENT_CARD_TEXT_RIGHT'), $substitutionarray);
159 159
 
160 160
                 if (is_numeric($foruserid) || $foruserlogin) {
161
-                    $nb = $_Avery_Labels[$model]['NX'] * $_Avery_Labels[$model]['NY'];  // $_Avery_Labels is defined into an include
161
+                    $nb = $_Avery_Labels[$model]['NX'] * $_Avery_Labels[$model]['NY']; // $_Avery_Labels is defined into an include
162 162
                     if ($nb <= 0) {
163 163
                         $nb = 1; // Protection to avoid empty page
164 164
                     }
Please login to merge, or discard this patch.
public/htdocs/adherents/subscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -463,7 +463,7 @@
 block discarded – undo
463 463
 //include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
464 464
 
465 465
 
466
-if (! ($object->id > 0)) {
466
+if (!($object->id > 0)) {
467 467
     $langs->load("errors");
468 468
     print $langs->trans("ErrorRecordNotFound");
469 469
 }
Please login to merge, or discard this patch.
public/htdocs/adherents/type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     $object->note_public = trim($comment);
149 149
     $object->note_private = '';
150 150
     $object->mail_valid = trim($mail_valid);
151
-    $object->vote = $vote;  // $vote is already int
151
+    $object->vote = $vote; // $vote is already int
152 152
 
153 153
     // Fill array 'array_options' with data from add form
154 154
     $ret = $extrafields->setOptionalsFromPost(null, $object);
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     $object->note_public = trim($comment);
210 210
     $object->note_private = '';
211 211
     $object->mail_valid = trim($mail_valid);
212
-    $object->vote = $vote;  // $vote is already int.
212
+    $object->vote = $vote; // $vote is already int.
213 213
 
214 214
     // Fill array 'array_options' with data from add form
215 215
     $ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');
Please login to merge, or discard this patch.
public/htdocs/adherents/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     }
117 117
 
118 118
     $dataseries = array();
119
-    $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusToValid"), $sumMembers['total']['members_draft']);            // Draft, not yet validated
119
+    $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusToValid"), $sumMembers['total']['members_draft']); // Draft, not yet validated
120 120
     $dataseries[] = array($langs->transnoentitiesnoconv("WaitingSubscription"), $sumMembers['total']['members_pending']);
121 121
     $dataseries[] = array($langs->transnoentitiesnoconv("UpToDate"), $sumMembers['total']['members_uptodate']);
122 122
     $dataseries[] = array($langs->transnoentitiesnoconv("OutOfDate"), $sumMembers['total']['members_expired']);
Please login to merge, or discard this patch.
public/htdocs/adherents/partnership.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 require_once constant('DOL_DOCUMENT_ROOT') . '/partnership/lib/partnership.lib.php';
36 36
 
37 37
 // Load translation files required by the page
38
-$langs->loadLangs(array("companies","members","partnership", "other"));
38
+$langs->loadLangs(array("companies", "members", "partnership", "other"));
39 39
 
40 40
 // Get parameters
41 41
 $id = GETPOSTINT('rowid') ? GETPOSTINT('rowid') : GETPOSTINT('id');
Please login to merge, or discard this patch.
doctemplates/websites/website_template-restaurant/containers/styles.css.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php // BEGIN PHP
2 2
 $websitekey = basename(__DIR__);
3
-if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
3
+if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
4 4
 } // Load env if not already loaded
5 5
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php';
6 6
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php';
7 7
 ob_start();
8
-if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */
8
+if (!headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */
9 9
 header('Cache-Control: max-age=3600, public, must-revalidate');
10 10
 header('Content-type: text/css');
11 11
 }
Please login to merge, or discard this patch.
doctemplates/websites/website_template-noimg/containers/styles.css.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php // BEGIN PHP
2 2
 $websitekey = basename(__DIR__);
3
-if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
3
+if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
4 4
 } // Load env if not already loaded
5 5
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php';
6 6
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php';
7 7
 ob_start();
8
-if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */
8
+if (!headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */
9 9
 header('Cache-Control: max-age=3600, public, must-revalidate');
10 10
 header('Content-type: text/css');
11 11
 }
Please login to merge, or discard this patch.
doctemplates/websites/website_template-stellar/containers/styles.css.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php // BEGIN PHP
2 2
 $websitekey = basename(__DIR__);
3
-if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
3
+if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; 
4 4
 } // Load env if not already loaded
5 5
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php';
6 6
 require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php';
7 7
 ob_start();
8
-if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */
8
+if (!headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */
9 9
 header('Cache-Control: max-age=3600, public, must-revalidate');
10 10
 header('Content-type: text/css');
11 11
 }
Please login to merge, or discard this patch.
public/htdocs/eventorganization/conferenceorbooth_list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
 // Default sort order (if not yet defined by previous GETPOST)
77 77
 if (!$sortfield) {
78
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
78
+    reset($object->fields); // Reset is required to avoid key() to return null.
79 79
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
80 80
 }
81 81
 if (!$sortorder) {
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 }
541 541
 
542 542
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
543
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
543
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
544 544
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
545 545
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
546 546
 
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
631 631
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
632 632
     }
633
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
633
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
634 634
     if (!empty($arrayfields['t.' . $key]['checked'])) {
635 635
         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";
636 636
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.