Passed
Push — EXTRACT_CLASSES ( a2ff75...ae6b5c )
by Rafael
34:15
created
public/htdocs/admin/supplier_proposal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 $action = GETPOST('action', 'aZ09');
51 51
 $value = GETPOST('value', 'alpha');
52
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
52
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
53 53
 
54 54
 $label = GETPOST('label', 'alpha');
55 55
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/emailcollector_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -569,7 +569,7 @@
 block discarded – undo
569 569
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
570 570
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
571 571
     }
572
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
572
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
573 573
     if (!empty($arrayfields['t.' . $key]['checked'])) {
574 574
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : '')) . "\n";
575 575
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/admin/supplier_order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 $type = GETPOST('type', 'alpha');
47 47
 $value = GETPOST('value', 'alpha');
48
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
48
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
49 49
 
50 50
 $label = GETPOST('label', 'alpha');
51 51
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 
551 551
 
552 552
 // Disallow to classify billed a supplier order without invoice
553
-print '<tr class="oddeven"><td>' . $langs->trans("SupplierOrderClassifyBilledWithoutInvoice") . '&nbsp;' ;
553
+print '<tr class="oddeven"><td>' . $langs->trans("SupplierOrderClassifyBilledWithoutInvoice") . '&nbsp;';
554 554
 print $form->textwithpicto('', $langs->trans("SupplierOrderClassifyBilledWithoutInvoiceHelp"), 1, 'help') . '</td>';
555 555
 print '<td class="left" colspan="2">';
556 556
 print ajax_constantonoff('SUPPLIER_ORDER_DISABLE_CLASSIFY_BILLED_FROM_SUPPLIER_ORDER');
Please login to merge, or discard this patch.
public/htdocs/admin/mails.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     print '<tr class="oddeven"><td>' . $langs->trans("MAIN_MAIL_SENDMODE") . '</td><td>';
371 371
 
372 372
     // SuperAdministrator access only
373
-    if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
373
+    if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
374 374
         print $form->selectarray('MAIN_MAIL_SENDMODE', $listofmethods, getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'));
375 375
     } else {
376 376
         $text = $listofmethods[getDolGlobalString('MAIN_MAIL_SENDMODE')];
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
         print '<tr class="oddeven smtp_oauth_service"><td>' . $langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE") . '</td><td>';
513 513
 
514 514
         // SuperAdministrator access only
515
-        if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
515
+        if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
516 516
             print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE', $oauthservices, $conf->global->MAIN_MAIL_SMTPS_OAUTH_SERVICE);
517 517
         } else {
518 518
             $text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE')];
Please login to merge, or discard this patch.
public/htdocs/admin/delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 $action  = GETPOST('action', 'alpha');
48 48
 $value   = GETPOST('value', 'alpha');
49
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
49
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
50 50
 
51 51
 $label   = GETPOST('label', 'alpha');
52 52
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/mails_templates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1110,7 +1110,7 @@  discard block
 block discarded – undo
1110 1110
                 print '<tr class="oddeven nohover" id="tr-aaa-' . $rowid . '">';
1111 1111
                 print '<td colspan="10">';
1112 1112
 
1113
-                $fieldsforcontent = array('topic', 'email_from','joinfiles', 'content');
1113
+                $fieldsforcontent = array('topic', 'email_from', 'joinfiles', 'content');
1114 1114
                 if (getDolGlobalString('MAIN_EMAIL_TEMPLATES_FOR_OBJECT_LINES')) {
1115 1115
                     $fieldsforcontent[] = 'content_lines';
1116 1116
                 }
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
                     continue; // It means this is a type of template not into elementList (may be because enabled condition of this type is false because module is not enabled)
1184 1184
                 }
1185 1185
                 // Test on 'enabled'
1186
-                if (! (int) dol_eval($obj->enabled, 1, 1, '1')) {
1186
+                if (!(int) dol_eval($obj->enabled, 1, 1, '1')) {
1187 1187
                     $i++;
1188 1188
                     continue; // Email template not qualified
1189 1189
                 }
Please login to merge, or discard this patch.
public/htdocs/projet/card.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1657,7 +1657,7 @@
 block discarded – undo
1657 1657
                     70 => array('lang' => 'interventions', 'enabled' => isModEnabled("intervention"), 'perm' => $user->hasRight('fichinter', 'creer'), 'label' => 'AddIntervention', 'url' => '/fichinter/card.php?action=create&amp;projectid=' . $object->id . '&amp;socid=' . $object->socid),
1658 1658
                     80 => array('lang' => 'contracts', 'enabled' => isModEnabled("contract"), 'perm' => $user->hasRight('contrat', 'creer'), 'label' => 'AddContract', 'url' => '/contrat/card.php?action=create&amp;projectid=' . $object->id . '&amp;socid=' . $object->socid),
1659 1659
                     90 => array('lang' => 'trips', 'enabled' => isModEnabled("expensereport"), 'perm' => $user->hasRight('expensereport', 'creer'), 'label' => 'AddTrip', 'url' => '/expensereport/card.php?action=create&amp;projectid=' . $object->id . '&amp;socid=' . $object->socid),
1660
-                   100 => array('lang' => 'donations', 'enabled' => isModEnabled("don"), 'perm' => $user->hasRight('don', 'creer'), 'label' => 'AddDonation', 'url' => '/don/card.php?action=create&amp;projectid=' . $object->id . '&amp;socid=' . $object->socid),
1660
+                    100 => array('lang' => 'donations', 'enabled' => isModEnabled("don"), 'perm' => $user->hasRight('don', 'creer'), 'label' => 'AddDonation', 'url' => '/don/card.php?action=create&amp;projectid=' . $object->id . '&amp;socid=' . $object->socid),
1661 1661
                 );
1662 1662
 
1663 1663
                 $params = array('backtopage' => $_SERVER["PHP_SELF"] . '?id=' . $object->id);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
 $permissiontoadd = $user->hasRight('projet', 'creer');
113 113
 $permissiontodelete = $user->hasRight('projet', 'supprimer');
114
-$permissiondellink = $user->hasRight('projet', 'creer');    // Used by the include of actions_dellink.inc.php
114
+$permissiondellink = $user->hasRight('projet', 'creer'); // Used by the include of actions_dellink.inc.php
115 115
 
116 116
 
117 117
 /*
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $action = '';
163 163
     }
164 164
 
165
-    include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php';      // Must be include, not include_once
165
+    include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php'; // Must be include, not include_once
166 166
 
167 167
     // Action setdraft object
168 168
     if ($action == 'confirm_setdraft' && $confirm == 'yes' && $permissiontoadd) {
Please login to merge, or discard this patch.
public/htdocs/projet/tasks.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 $confirm = GETPOST('confirm', 'alpha');
53 53
 $cancel = GETPOST('cancel', 'aZ09');
54 54
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'projecttasklist';
55
-$backtopage = GETPOST('backtopage', 'alpha');                   // if not set, a default page will be used
55
+$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used
56 56
 //$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');   // if not set, $backtopage will be used
57 57
 //$backtopagejsfields = GETPOST('backtopagejsfields', 'alpha');
58 58
 $optioncss  = GETPOST('optioncss', 'aZ');
@@ -94,20 +94,20 @@  discard block
 block discarded – undo
94 94
 $search_date_start_startmonth = GETPOSTINT('search_date_start_startmonth');
95 95
 $search_date_start_startyear = GETPOSTINT('search_date_start_startyear');
96 96
 $search_date_start_startday = GETPOSTINT('search_date_start_startday');
97
-$search_date_start_start = dol_mktime(0, 0, 0, $search_date_start_startmonth, $search_date_start_startday, $search_date_start_startyear);   // Use tzserver
97
+$search_date_start_start = dol_mktime(0, 0, 0, $search_date_start_startmonth, $search_date_start_startday, $search_date_start_startyear); // Use tzserver
98 98
 $search_date_start_endmonth = GETPOSTINT('search_date_start_endmonth');
99 99
 $search_date_start_endyear = GETPOSTINT('search_date_start_endyear');
100 100
 $search_date_start_endday = GETPOSTINT('search_date_start_endday');
101
-$search_date_start_end = dol_mktime(23, 59, 59, $search_date_start_endmonth, $search_date_start_endday, $search_date_start_endyear);    // Use tzserver
101
+$search_date_start_end = dol_mktime(23, 59, 59, $search_date_start_endmonth, $search_date_start_endday, $search_date_start_endyear); // Use tzserver
102 102
 
103 103
 $search_date_end_startmonth = GETPOSTINT('search_date_end_startmonth');
104 104
 $search_date_end_startyear = GETPOSTINT('search_date_end_startyear');
105 105
 $search_date_end_startday = GETPOSTINT('search_date_end_startday');
106
-$search_date_end_start = dol_mktime(0, 0, 0, $search_date_end_startmonth, $search_date_end_startday, $search_date_end_startyear);   // Use tzserver
106
+$search_date_end_start = dol_mktime(0, 0, 0, $search_date_end_startmonth, $search_date_end_startday, $search_date_end_startyear); // Use tzserver
107 107
 $search_date_end_endmonth = GETPOSTINT('search_date_end_endmonth');
108 108
 $search_date_end_endyear = GETPOSTINT('search_date_end_endyear');
109 109
 $search_date_end_endday = GETPOSTINT('search_date_end_endday');
110
-$search_date_end_end = dol_mktime(23, 59, 59, $search_date_end_endmonth, $search_date_end_endday, $search_date_end_endyear);    // Use tzserver
110
+$search_date_end_end = dol_mktime(23, 59, 59, $search_date_end_endmonth, $search_date_end_endday, $search_date_end_endyear); // Use tzserver
111 111
 
112 112
 //if (! $user->rights->projet->all->lire) $mine=1;  // Special for projects
113 113
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_array_fields.tpl.php';
186 186
 
187 187
 $arrayfields = dol_sort_array($arrayfields, 'position');
188
-'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';  // dol_sort_array looses type for Phan
188
+'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan
189 189
 
190 190
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
191 191
 
Please login to merge, or discard this patch.
public/htdocs/projet/contact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
             } else {
188 188
                 $error++;
189 189
             }
190
-        } elseif (! ($contactid > 0)) {
190
+        } elseif (!($contactid > 0)) {
191 191
             $error++;
192 192
             $langs->load("errors");
193 193
             setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Contact")), null, 'errors');
Please login to merge, or discard this patch.