Passed
Pull Request — dev (#14)
by Rafael
51:23
created
public/htdocs/partnership/partnership_list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
 print '<tr class="liste_titre">';
812 812
 if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
813 813
     print getTitleFieldOfList(($mode != 'kanban' ? $selectedfields : ''), 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ') . "\n";
814
-    $totalarray['nbfield']++;   // For the column action
814
+    $totalarray['nbfield']++; // For the column action
815 815
 }
816 816
 foreach ($object->fields as $key => $val) {
817 817
     $cssforfield = (empty($val['csslist']) ? (empty($val['css']) ? '' : $val['css']) : $val['csslist']);
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
     } 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'])) {
825 825
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
826 826
     }
827
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
827
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
828 828
     if (!empty($arrayfields['t.' . $key]['checked'])) {
829 829
         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";
830 830
         $totalarray['nbfield']++;
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
 // Action column
846 846
 if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
847 847
     print getTitleFieldOfList(($mode != 'kanban' ? $selectedfields : ''), 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ') . "\n";
848
-    $totalarray['nbfield']++;   // For the column action
848
+    $totalarray['nbfield']++; // For the column action
849 849
 }
850 850
 print '</tr>' . "\n";
851 851
 
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/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.
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.