Passed
Push — GENERAL_BUG_REVIEW_240911 ( 6dbc7d...fb375d )
by Rafael
53:50
created
public/htdocs/fichinter/list.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 $search_date_endday = GETPOSTINT('search_date_endday');
79 79
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
80 80
 $search_date_endyear = GETPOSTINT('search_date_endyear');
81
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);   // Use tzserver
81
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
82 82
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
83 83
 $optioncss = GETPOST('optioncss', 'alpha');
84 84
 $socid = GETPOSTINT('socid');
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
108 108
 $object = new Fichinter($db);
109
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
109
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
110 110
 
111 111
 $extrafields = new ExtraFields($db);
112 112
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
 $object->fields = dol_sort_array($object->fields, 'position');
155 155
 $arrayfields = dol_sort_array($arrayfields, 'position');
156
-'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';  // dol_sort_array looses type for Phan
156
+'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan
157 157
 
158 158
 // Security check
159 159
 $id = GETPOSTINT('id');
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 // Output page
415 415
 // --------------------------------------------------------------------
416 416
 
417
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
417
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
418 418
 
419 419
 
420 420
 $arrayofselected = is_array($toselect) ? $toselect : array();
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 }
568 568
 
569 569
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
570
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
570
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
571 571
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
572 572
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
573 573
 
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
     $objectstatic->id = $obj->rowid;
788 788
     $objectstatic->ref = $obj->ref;
789 789
     $objectstatic->ref_client = $obj->ref_client;
790
-    $objectstatic->statut = $obj->status;   // deprecated
790
+    $objectstatic->statut = $obj->status; // deprecated
791 791
     $objectstatic->status = $obj->status;
792 792
 
793 793
     $companystatic->name = $obj->name;
@@ -959,7 +959,7 @@  discard block
 block discarded – undo
959 959
         if (!empty($arrayfields['f.note_public']['checked'])) {
960 960
             print '<td class="sensiblehtmlcontent center">';
961 961
             print dolPrintHTML($obj->note_public);
962
-            print '</td>';if (!$i) {
962
+            print '</td>'; if (!$i) {
963 963
                 $totalarray['nbfield']++;
964 964
             }
965 965
         }
Please login to merge, or discard this patch.
public/htdocs/fichinter/card-rec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
360 360
         if (isModEnabled('contract')) {
361 361
             $formcontract = new FormContract($db);
362 362
             print "<tr><td>" . $langs->trans("Contract") . "</td><td>";
363
-            $contractid = GETPOST('contractid') ? GETPOST('contractid') : (!empty($object->fk_contrat) ? $object->fk_contrat : 0) ;
363
+            $contractid = GETPOST('contractid') ? GETPOST('contractid') : (!empty($object->fk_contrat) ? $object->fk_contrat : 0);
364 364
             $numcontract = $formcontract->select_contract($object->thirdparty->id, $contractid, 'contracttid');
365 365
             print "</td></tr>";
366 366
         }
Please login to merge, or discard this patch.
public/htdocs/debugbar/class/DataCollector/DolPhpCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
              * @param array{time:int} $itemB Message B information
91 91
              * @return int<-1,1> -1 if Item A before Item B, 0 if same, 1 if later.
92 92
              */
93
-            static function ($itemA, $itemB) {
93
+            static function($itemA, $itemB) {
94 94
                 if ($itemA['time'] === $itemB['time']) {
95 95
                     return 0;
96 96
                 }
Please login to merge, or discard this patch.
public/htdocs/debugbar/class/DebugBar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@
 block discarded – undo
82 82
             $baseUrl = constant('DOL_URL_ROOT') . '/includes/maximebf/debugbar/src/DebugBar/Resources';
83 83
         }
84 84
         $renderer = parent::getJavascriptRenderer($baseUrl, $basePath);
85
-        $renderer->disableVendor('jquery');         // We already have jquery loaded globally by the main.inc.php
86
-        $renderer->disableVendor('fontawesome');    // We already have fontawesome loaded globally by the main.inc.php
87
-        $renderer->disableVendor('highlightjs');    // We don't need this
88
-        $renderer->setEnableJqueryNoConflict(false);    // We don't need no conflict
85
+        $renderer->disableVendor('jquery'); // We already have jquery loaded globally by the main.inc.php
86
+        $renderer->disableVendor('fontawesome'); // We already have fontawesome loaded globally by the main.inc.php
87
+        $renderer->disableVendor('highlightjs'); // We don't need this
88
+        $renderer->setEnableJqueryNoConflict(false); // We don't need no conflict
89 89
 
90 90
         return $renderer;
91 91
     }
Please login to merge, or discard this patch.
public/htdocs/adherents/admin/member_emails.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -57,16 +57,16 @@
 block discarded – undo
57 57
 // Editing global variables not related to a specific theme
58 58
 $constantes = array(
59 59
     'MEMBER_REMINDER_EMAIL' => array('type' => 'yesno', 'label' => $langs->trans('MEMBER_REMINDER_EMAIL', $langs->transnoentities("Module2300Name"))),
60
-    'ADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION'     => array('type' => 'emailtemplate:member','label' => ''),
61
-    'ADHERENT_EMAIL_TEMPLATE_AUTOREGISTER'          => array('type' => 'emailtemplate:member','label' => ''),
62
-    'ADHERENT_EMAIL_TEMPLATE_MEMBER_VALIDATION'     => array('type' => 'emailtemplate:member','label' => ''),
63
-    'ADHERENT_EMAIL_TEMPLATE_SUBSCRIPTION'          => array('type' => 'emailtemplate:member','label' => ''),
64
-    'ADHERENT_EMAIL_TEMPLATE_CANCELATION'           => array('type' => 'emailtemplate:member','label' => ''),
65
-    'ADHERENT_EMAIL_TEMPLATE_EXCLUSION'             => array('type' => 'emailtemplate:member','label' => ''),
66
-    'ADHERENT_MAIL_FROM'                            => array('type' => 'string','label' => ''),
67
-    'ADHERENT_CC_MAIL_FROM'                         => array('type' => 'string','label' => ''),
68
-    'ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT'      => array('type' => 'string','label' => ''),
69
-    'ADHERENT_AUTOREGISTER_NOTIF_MAIL'              => array('type' => 'html', 'tooltip' => $helptext,'label' => '')
60
+    'ADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION'     => array('type' => 'emailtemplate:member', 'label' => ''),
61
+    'ADHERENT_EMAIL_TEMPLATE_AUTOREGISTER'          => array('type' => 'emailtemplate:member', 'label' => ''),
62
+    'ADHERENT_EMAIL_TEMPLATE_MEMBER_VALIDATION'     => array('type' => 'emailtemplate:member', 'label' => ''),
63
+    'ADHERENT_EMAIL_TEMPLATE_SUBSCRIPTION'          => array('type' => 'emailtemplate:member', 'label' => ''),
64
+    'ADHERENT_EMAIL_TEMPLATE_CANCELATION'           => array('type' => 'emailtemplate:member', 'label' => ''),
65
+    'ADHERENT_EMAIL_TEMPLATE_EXCLUSION'             => array('type' => 'emailtemplate:member', 'label' => ''),
66
+    'ADHERENT_MAIL_FROM'                            => array('type' => 'string', 'label' => ''),
67
+    'ADHERENT_CC_MAIL_FROM'                         => array('type' => 'string', 'label' => ''),
68
+    'ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT'      => array('type' => 'string', 'label' => ''),
69
+    'ADHERENT_AUTOREGISTER_NOTIF_MAIL'              => array('type' => 'html', 'tooltip' => $helptext, 'label' => '')
70 70
 );
71 71
 
72 72
 
Please login to merge, or discard this patch.
public/htdocs/adherents/card.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         if (!$error) {
188 188
             if ($socid != $object->socid) { // If link differs from currently in database
189 189
                 $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "adherent";
190
-                $sql .= " WHERE socid = " . ((int)$socid);
190
+                $sql .= " WHERE socid = " . ((int) $socid);
191 191
                 $sql .= " AND entity = " . $conf->entity;
192 192
                 $resql = $db->query($sql);
193 193
                 if ($resql) {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             $object->gender = trim(GETPOST("gender", 'alphanohtml'));
301 301
             $object->login = trim(GETPOST("login", 'alphanohtml'));
302 302
             if (GETPOSTISSET('pass')) {
303
-                $object->pass = trim(GETPOST("pass", 'none'));   // For password, we must use 'none'
303
+                $object->pass = trim(GETPOST("pass", 'none')); // For password, we must use 'none'
304 304
             }
305 305
 
306 306
             $object->societe = trim(GETPOST("societe", 'alphanohtml')); // deprecated
@@ -355,10 +355,10 @@  discard block
 block discarded – undo
355 355
             }
356 356
 
357 357
             // Check if we need to also synchronize password information
358
-            $nosyncuserpass = 1;    // no by default
358
+            $nosyncuserpass = 1; // no by default
359 359
             if (GETPOSTISSET('pass')) {
360 360
                 if ($object->user_id) { // If member is linked to a user
361
-                    $nosyncuserpass = 0;    // We may try to sync password
361
+                    $nosyncuserpass = 0; // We may try to sync password
362 362
                     if ($user->id == $object->user_id) {
363 363
                         if (!$user->hasRight('user', 'self', 'password')) {
364 364
                             $nosyncuserpass = 1; // Disable synchronizing
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         $email = preg_replace('/\s+/', '', GETPOST("member_email", 'alpha'));
469 469
         $url = trim(GETPOST('url', 'custom', 0, FILTER_SANITIZE_URL));
470 470
         $login = GETPOST("member_login", 'alphanohtml');
471
-        $pass = GETPOST("password", 'none');    // For password, we use 'none'
471
+        $pass = GETPOST("password", 'none'); // For password, we use 'none'
472 472
         $photo = GETPOST("photo", 'alphanohtml');
473 473
         $morphy = GETPOST("morphy", 'alphanohtml');
474 474
         $public = GETPOST("public", 'alphanohtml');
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
                 $rowid = $object->id;
595 595
                 $id = $object->id;
596 596
 
597
-                $backtopage = preg_replace('/__ID__/', (string)$id, $backtopage);
597
+                $backtopage = preg_replace('/__ID__/', (string) $id, $backtopage);
598 598
             } else {
599 599
                 $db->rollback();
600 600
 
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
                     $msg = $arraydefaultmessage->content;
680 680
                 }
681 681
 
682
-                if (empty($labeltouse) || (int)$labeltouse === -1) {
682
+                if (empty($labeltouse) || (int) $labeltouse === -1) {
683 683
                     //fallback on the old configuration.
684 684
                     $langs->load("errors");
685 685
                     setEventMessages('<a href="' . constant('BASE_URL') . '/adherents/admin/member_emails.php">' . $langs->trans('WarningMandatorySetupNotComplete') . '</a>', null, 'errors');
@@ -747,7 +747,7 @@  discard block
 block discarded – undo
747 747
                         $msg = $arraydefaultmessage->content;
748 748
                     }
749 749
 
750
-                    if (empty($labeltouse) || (int)$labeltouse === -1) {
750
+                    if (empty($labeltouse) || (int) $labeltouse === -1) {
751 751
                         //fallback on the old configuration.
752 752
                         setEventMessages('WarningMandatorySetupNotComplete', null, 'errors');
753 753
                         $error++;
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
                         $msg = $arraydefaultmessage->content;
815 815
                     }
816 816
 
817
-                    if (empty($labeltouse) || (int)$labeltouse === -1) {
817
+                    if (empty($labeltouse) || (int) $labeltouse === -1) {
818 818
                         //fallback on the old configuration.
819 819
                         setEventMessages('WarningMandatorySetupNotComplete', null, 'errors');
820 820
                         $error++;
@@ -1164,7 +1164,7 @@  discard block
 block discarded – undo
1164 1164
         $country = GETPOSTINT('country');
1165 1165
         if (!empty($country) || $object->country_id) {
1166 1166
             $sql = "SELECT rowid, code, label from " . MAIN_DB_PREFIX . "c_country";
1167
-            $sql .= " WHERE rowid = " . (int)(!empty($country) ? $country : $object->country_id);
1167
+            $sql .= " WHERE rowid = " . (int) (!empty($country) ? $country : $object->country_id);
1168 1168
             $resql = $db->query($sql);
1169 1169
             if ($resql) {
1170 1170
                 $obj = $db->fetch_object($resql);
@@ -1289,7 +1289,7 @@  discard block
 block discarded – undo
1289 1289
             $maxfilesizearray = getMaxFileSizeArray();
1290 1290
             $maxmin = $maxfilesizearray['maxmin'];
1291 1291
             if ($maxmin > 0) {
1292
-                print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
1292
+                print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
1293 1293
             }
1294 1294
             print '<input type="file" class="flat" name="photo" id="photoinput">';
1295 1295
             print '</td></tr>';
@@ -1920,7 +1920,7 @@  discard block
 block discarded – undo
1920 1920
                 // Send
1921 1921
                 if (empty($user->socid)) {
1922 1922
                     if (Adherent::STATUS_VALIDATED == $object->status) {
1923
-                        print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . ((int)$object->id) . '&action=presend&mode=init#formmailbeforetitle">' . $langs->trans('SendMail') . '</a>' . "\n";
1923
+                        print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=presend&mode=init#formmailbeforetitle">' . $langs->trans('SendMail') . '</a>' . "\n";
1924 1924
                     }
1925 1925
                 }
1926 1926
 
@@ -1940,7 +1940,7 @@  discard block
 block discarded – undo
1940 1940
 
1941 1941
                 // Modify
1942 1942
                 if ($user->hasRight('adherent', 'creer')) {
1943
-                    print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=edit&token=' . newToken() . '">' . $langs->trans("Modify") . '</a>' . "\n";
1943
+                    print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=edit&token=' . newToken() . '">' . $langs->trans("Modify") . '</a>' . "\n";
1944 1944
                 } else {
1945 1945
                     print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans("NotEnoughPermissions")) . '">' . $langs->trans("Modify") . '</span>' . "\n";
1946 1946
                 }
@@ -1948,7 +1948,7 @@  discard block
 block discarded – undo
1948 1948
                 // Validate
1949 1949
                 if (Adherent::STATUS_DRAFT == $object->status) {
1950 1950
                     if ($user->hasRight('adherent', 'creer')) {
1951
-                        print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=valid&token=' . newToken() . '">' . $langs->trans("Validate") . '</a>' . "\n";
1951
+                        print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=valid&token=' . newToken() . '">' . $langs->trans("Validate") . '</a>' . "\n";
1952 1952
                     } else {
1953 1953
                         print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans("NotEnoughPermissions")) . '">' . $langs->trans("Validate") . '</span>' . "\n";
1954 1954
                     }
@@ -1957,7 +1957,7 @@  discard block
 block discarded – undo
1957 1957
                 // Reactivate
1958 1958
                 if (Adherent::STATUS_RESILIATED == $object->status || Adherent::STATUS_EXCLUDED == $object->status) {
1959 1959
                     if ($user->hasRight('adherent', 'creer')) {
1960
-                        print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=valid&token=' . newToken() . '">' . $langs->trans("Reenable") . "</a>\n";
1960
+                        print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=valid&token=' . newToken() . '">' . $langs->trans("Reenable") . "</a>\n";
1961 1961
                     } else {
1962 1962
                         print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans("NotEnoughPermissions")) . '">' . $langs->trans("Reenable") . '</span>' . "\n";
1963 1963
                     }
@@ -1966,7 +1966,7 @@  discard block
 block discarded – undo
1966 1966
                 // Resiliate
1967 1967
                 if (Adherent::STATUS_VALIDATED == $object->status) {
1968 1968
                     if ($user->hasRight('adherent', 'supprimer')) {
1969
-                        print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=resiliate&token=' . newToken() . '">' . $langs->trans("Resiliate") . "</a></span>\n";
1969
+                        print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=resiliate&token=' . newToken() . '">' . $langs->trans("Resiliate") . "</a></span>\n";
1970 1970
                     } else {
1971 1971
                         print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans("NotEnoughPermissions")) . '">' . $langs->trans("Resiliate") . '</span>' . "\n";
1972 1972
                     }
@@ -1975,7 +1975,7 @@  discard block
 block discarded – undo
1975 1975
                 // Exclude
1976 1976
                 if (Adherent::STATUS_VALIDATED == $object->status) {
1977 1977
                     if ($user->hasRight('adherent', 'supprimer')) {
1978
-                        print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=exclude&token=' . newToken() . '">' . $langs->trans("Exclude") . "</a></span>\n";
1978
+                        print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=exclude&token=' . newToken() . '">' . $langs->trans("Exclude") . "</a></span>\n";
1979 1979
                     } else {
1980 1980
                         print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans("NotEnoughPermissions")) . '">' . $langs->trans("Exclude") . '</span>' . "\n";
1981 1981
                     }
@@ -1985,7 +1985,7 @@  discard block
 block discarded – undo
1985 1985
                 if (isModEnabled('societe') && !$object->socid) {
1986 1986
                     if ($user->hasRight('societe', 'creer')) {
1987 1987
                         if (Adherent::STATUS_DRAFT != $object->status) {
1988
-                            print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?rowid=' . ((int)$object->id) . '&action=create_thirdparty&token=' . newToken() . '" title="' . dol_escape_htmltag($langs->trans("CreateDolibarrThirdPartyDesc")) . '">' . $langs->trans("CreateDolibarrThirdParty") . '</a>' . "\n";
1988
+                            print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?rowid=' . ((int) $object->id) . '&action=create_thirdparty&token=' . newToken() . '" title="' . dol_escape_htmltag($langs->trans("CreateDolibarrThirdPartyDesc")) . '">' . $langs->trans("CreateDolibarrThirdParty") . '</a>' . "\n";
1989 1989
                         } else {
1990 1990
                             print '<a class="butActionRefused classfortooltip" href="#" title="' . dol_escape_htmltag($langs->trans("ValidateBefore")) . '">' . $langs->trans("CreateDolibarrThirdParty") . '</a>' . "\n";
1991 1991
                         }
@@ -1998,7 +1998,7 @@  discard block
 block discarded – undo
1998 1998
                 if (!$user->socid && !$object->user_id) {
1999 1999
                     if ($user->hasRight('user', 'user', 'creer')) {
2000 2000
                         if (Adherent::STATUS_DRAFT != $object->status) {
2001
-                            print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?rowid=' . ((int)$object->id) . '&action=create_user&token=' . newToken() . '" title="' . dol_escape_htmltag($langs->trans("CreateDolibarrLoginDesc")) . '">' . $langs->trans("CreateDolibarrLogin") . '</a>' . "\n";
2001
+                            print '<a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?rowid=' . ((int) $object->id) . '&action=create_user&token=' . newToken() . '" title="' . dol_escape_htmltag($langs->trans("CreateDolibarrLoginDesc")) . '">' . $langs->trans("CreateDolibarrLogin") . '</a>' . "\n";
2002 2002
                         } else {
2003 2003
                             print '<a class="butActionRefused classfortooltip" href="#" title="' . dol_escape_htmltag($langs->trans("ValidateBefore")) . '">' . $langs->trans("CreateDolibarrLogin") . '</a>' . "\n";
2004 2004
                         }
@@ -2012,16 +2012,16 @@  discard block
 block discarded – undo
2012 2012
                     $isinspip = $mailmanspip->is_in_spip($object);
2013 2013
 
2014 2014
                     if ($isinspip == 1) {
2015
-                        print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=del_spip&token=' . newToken() . '">' . $langs->trans("DeleteIntoSpip") . '</a>' . "\n";
2015
+                        print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=del_spip&token=' . newToken() . '">' . $langs->trans("DeleteIntoSpip") . '</a>' . "\n";
2016 2016
                     }
2017 2017
                     if ($isinspip == 0) {
2018
-                        print '<a class="butAction" href="card.php?rowid=' . ((int)$object->id) . '&action=add_spip&token=' . newToken() . '">' . $langs->trans("AddIntoSpip") . '</a>' . "\n";
2018
+                        print '<a class="butAction" href="card.php?rowid=' . ((int) $object->id) . '&action=add_spip&token=' . newToken() . '">' . $langs->trans("AddIntoSpip") . '</a>' . "\n";
2019 2019
                     }
2020 2020
                 }
2021 2021
 
2022 2022
                 // Delete
2023 2023
                 if ($user->hasRight('adherent', 'supprimer')) {
2024
-                    print '<a class="butActionDelete" href="card.php?rowid=' . ((int)$object->id) . '&action=delete&token=' . newToken() . '">' . $langs->trans("Delete") . '</a>' . "\n";
2024
+                    print '<a class="butActionDelete" href="card.php?rowid=' . ((int) $object->id) . '&action=delete&token=' . newToken() . '">' . $langs->trans("Delete") . '</a>' . "\n";
2025 2025
                 } else {
2026 2026
                     print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans("NotEnoughPermissions")) . '">' . $langs->trans("Delete") . '</span>' . "\n";
2027 2027
                 }
Please login to merge, or discard this patch.
public/htdocs/adherents/canvas/actions_adherentcard_common.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         return $object;
74 74
     }
75 75
 
76
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
76
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
77 77
     /**
78 78
      *  Set content of ->tpl array, to use into template
79 79
      *
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function assign_values(&$action, $id)
85 85
     {
86
-		// phpcs:enable
86
+        // phpcs:enable
87 87
         global $conf, $langs, $user, $canvas;
88 88
         global $form, $formcompany, $objsoc;
89 89
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         }
239 239
     }
240 240
 
241
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
241
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
242 242
     /**
243 243
      *  Assign POST values into object
244 244
      *
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     private function assign_post()
248 248
     {
249
-		// phpcs:enable
249
+        // phpcs:enable
250 250
         global $langs, $mysoc;
251 251
 
252 252
         $this->object->old_name = GETPOST("old_name");
Please login to merge, or discard this patch.
htdocs/adherents/canvas/default/actions_adherentcard_default.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         return $out;
75 75
     }
76 76
 
77
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
77
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
78 78
     /**
79 79
      *  Assign custom values for canvas
80 80
      *
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function assign_values(&$action, $id)
86 86
     {
87
-		// phpcs:enable
87
+        // phpcs:enable
88 88
         global $conf, $db, $langs, $user;
89 89
         global $form;
90 90
 
Please login to merge, or discard this patch.
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.