Passed
Push — MODEL_LIB_240928 ( bd3167...74ce72 )
by Rafael
55:11
created
public/htdocs/recruitment/admin/setup_candidatures.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.
modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     }
177 177
 
178 178
 
179
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
179
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
180 180
     /**
181 181
      *  Function to build pdf onto disk
182 182
      *
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
192 192
     {
193
-		// phpcs:enable
193
+        // phpcs:enable
194 194
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
195 195
         global $action;
196 196
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
         }
644 644
     }
645 645
 
646
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
646
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
647 647
     /**
648 648
      *  Return list of active generation modules
649 649
      *
@@ -653,11 +653,11 @@  discard block
 block discarded – undo
653 653
      */
654 654
     public static function liste_modeles($db, $maxfilenamelength = 0)
655 655
     {
656
-		// phpcs:enable
656
+        // phpcs:enable
657 657
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
658 658
     }
659 659
 
660
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
660
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
661 661
     /**
662 662
      *   Show table for lines
663 663
      *
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
         }
710 710
     }
711 711
 
712
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
712
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
713 713
     /**
714 714
      *  Show top header of page.
715 715
      *
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
         return $top_shift;
952 952
     }
953 953
 
954
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
954
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
955 955
     /**
956 956
      * Show footer of page. Need this->emetteur object
957 957
      *
Please login to merge, or discard this patch.
modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         return $texte;
207 207
     }
208 208
 
209
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
209
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
210 210
     /**
211 211
      *  Function to build a document on disk using the generic odt module.
212 212
      *
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
222 222
     {
223
-		// phpcs:enable
223
+        // phpcs:enable
224 224
         global $user, $langs, $conf, $mysoc, $hookmanager;
225 225
         global $action;
226 226
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
         $maxfilesizearray = getMaxFileSizeArray();
189 189
         $maxmin = $maxfilesizearray['maxmin'];
190 190
         if ($maxmin > 0) {
191
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
191
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
192 192
         }
193 193
         $texte .= ' <input type="file" name="uploadfile">';
194 194
         $texte .= '<input type="hidden" value="RECRUITMENT_RECRUITMENTJOBPOSITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/recruitment/recruitmentcandidature_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 $object = new RecruitmentCandidature($db);
68 68
 $extrafields = new ExtraFields($db);
69 69
 $diroutputmassaction = $conf->recruitment->dir_output . '/temp/massgeneration/' . $user->id;
70
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
70
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
71 71
 
72 72
 // Fetch optionals attributes and labels
73 73
 $extrafields->fetch_name_optionals_label($object->table_element);
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
     } 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'])) {
699 699
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
700 700
     }
701
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
701
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
702 702
     if (!empty($arrayfields['t.' . $key]['checked'])) {
703 703
         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";
704 704
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/accountancy/admin/card.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     print '<datalist id="pcg_type_datalist">';
257 257
     $sql = "SELECT DISTINCT pcg_type FROM " . MAIN_DB_PREFIX . "accounting_account";
258 258
     $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'";
259
-    $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')';      // Always limit to current entity. No sharing in accountancy.
259
+    $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy.
260 260
     $sql .= ' LIMIT 50000'; // just as a sanity check
261 261
     $resql = $db->query($sql);
262 262
     if ($resql) {
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
             print '<datalist id="pcg_type_datalist">';
334 334
             $sql = 'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account';
335 335
             $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'";
336
-            $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')';      // Always limit to current entity. No sharing in accountancy.
336
+            $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy.
337 337
             $sql .= ' LIMIT 50000'; // just as a sanity check
338 338
             $resql = $db->query($sql);
339 339
             if ($resql) {
Please login to merge, or discard this patch.
public/htdocs/accountancy/admin/account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -461,7 +461,7 @@
 block discarded – undo
461 461
     print '<br>';
462 462
 
463 463
     $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
464
-    $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
464
+    $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
465 465
     $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
466 466
     $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
467 467
 
Please login to merge, or discard this patch.
public/htdocs/accountancy/admin/subaccount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
     print '<div class="info">' . $langs->trans("WarningCreateSubAccounts") . '</div>';
336 336
 
337 337
     $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
338
-    $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
338
+    $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
339 339
     $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
340 340
     $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
341 341
 
Please login to merge, or discard this patch.
public/htdocs/accountancy/admin/journals_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
 
189 189
     // Si verif ok et action add, on ajoute la ligne
190 190
     if ($ok && GETPOST('actionadd', 'alpha')) {
191
-        $newid = 0;  // Initialise before if for static analysis
191
+        $newid = 0; // Initialise before if for static analysis
192 192
         if ($tabrowid[$id]) {
193 193
             // Get free id for insert
194 194
             $sql = "SELECT MAX(" . $db->sanitize($tabrowid[$id]) . ") newid FROM " . $db->sanitize($tabname[$id]);
Please login to merge, or discard this patch.
public/htdocs/accountancy/admin/fiscalyear_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 $confirm = GETPOST('confirm', 'alpha');
41 41
 $cancel = GETPOST('cancel', 'aZ09');
42 42
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search
43
-$backtopage = GETPOST('backtopage', 'alpha');                   // if not set, a default page will be used
43
+$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used
44 44
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used
45 45
 $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha');
46 46
 $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09');
Please login to merge, or discard this patch.