Passed
Push — GENERAL_BUG_REVIEW_240911 ( 776d89...c757bd )
by Rafael
50:33
created
public/htdocs/ai/admin/setup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 // Parameters
36 36
 $action = GETPOST('action', 'aZ09');
37 37
 $backtopage = GETPOST('backtopage', 'alpha');
38
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
38
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
39 39
 
40 40
 if (empty($action)) {
41 41
     $action = 'edit';
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     //'gemini' => 'Gemini'
72 72
 );
73 73
 
74
-$item = $formSetup->newItem('AI_API_SERVICE');  // Name of constant must end with _KEY so it is encrypted when saved into database.
74
+$item = $formSetup->newItem('AI_API_SERVICE'); // Name of constant must end with _KEY so it is encrypted when saved into database.
75 75
 $item->setAsSelect($arrayofia);
76 76
 $item->cssClass = 'minwidth150';
77 77
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     $item->defaultFieldValue = '';
82 82
     $item->cssClass = 'minwidth500';*/
83 83
 
84
-    $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY')->setAsSecureKey();    // Name of constant must end with _KEY so it is encrypted when saved into database.
84
+    $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY')->setAsSecureKey(); // Name of constant must end with _KEY so it is encrypted when saved into database.
85 85
     $item->nameText = $langs->trans("AI_API_KEY") . ' (' . $ialabel . ')';
86 86
     $item->defaultFieldValue = '';
87 87
     $item->fieldParams['hideGenerateButton'] = 1;
Please login to merge, or discard this patch.
public/htdocs/ai/admin/custom_prompt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 // Parameters
35 35
 $action = GETPOST('action', 'aZ09');
36 36
 $backtopage = GETPOST('backtopage', 'alpha');
37
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
37
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
38 38
 
39 39
 if (empty($action)) {
40 40
     $action = 'edit';
Please login to merge, or discard this patch.
public/htdocs/ai/ajax/generate_content.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 $ai = new Ai($db);
65 65
 
66 66
 // Get parameters
67
-$function = empty($jsonData['function']) ? 'textgeneration' : $jsonData['function'];    // Default value. Can also be 'textgenerationemail', 'textgenerationwebpage', ...
67
+$function = empty($jsonData['function']) ? 'textgeneration' : $jsonData['function']; // Default value. Can also be 'textgenerationemail', 'textgenerationwebpage', ...
68 68
 $instructions = dol_string_nohtmltag($jsonData['instructions'], 1, 'UTF-8');
69 69
 $format = empty($jsonData['format']) ? '' : $jsonData['format'];
70 70
 
Please login to merge, or discard this patch.
public/htdocs/salaries/card.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             // Create a line of payments
301 301
             $paiement = new PaymentSalary($db);
302 302
             $paiement->fk_salary    = $object->id;
303
-            $paiement->chid         = $object->id;  // deprecated
303
+            $paiement->chid         = $object->id; // deprecated
304 304
             $paiement->datep        = $datep;
305 305
             $paiement->datev        = $datev;
306 306
             $paiement->amounts      = array($object->id => $amount); // Tableau de montant
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 
622 622
     // Auto create payment
623 623
     print '<tr><td><label for="auto_create_paiement">' . $langs->trans('AutomaticCreationPayment') . '</label></td>';
624
-    print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_paiement) ? '' : 'checked="checked"') . ' value="1"></td></tr>' . "\n";   // Date payment
624
+    print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_paiement) ? '' : 'checked="checked"') . ' value="1"></td></tr>' . "\n"; // Date payment
625 625
 
626 626
     // Bank
627 627
     if (isModEnabled("bank")) {
Please login to merge, or discard this patch.
public/htdocs/salaries/payment_salary/card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         dol_print_error($db, 'Failed to get payment id ' . $id);
56 56
     }
57 57
 }
58
-restrictedArea($user, 'salaries', $object->fk_salary, 'salary', '');    // $object is payment of salary
58
+restrictedArea($user, 'salaries', $object->fk_salary, 'salary', ''); // $object is payment of salary
59 59
 
60 60
 
61 61
 /*
Please login to merge, or discard this patch.
public/htdocs/salaries/list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     } else {
177 177
         //Checking error
178 178
         $error = 0;
179
-        $listofSalries =  array();
179
+        $listofSalries = array();
180 180
         $arrayofselected = is_array($toselect) ? $toselect : array();
181 181
         foreach ($arrayofselected as $toselectid) {
182 182
             $objecttmp = new Salary($db);
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
 // Output page
440 440
 // --------------------------------------------------------------------
441 441
 
442
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
442
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
443 443
 
444 444
 $arrayofselected = is_array($toselect) ? $toselect : array();
445 445
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 }
567 567
 
568 568
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
569
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
569
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
570 570
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
571 571
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
572 572
 
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
     $userstatic->login = $obj->login;
734 734
     $userstatic->email = $obj->email;
735 735
     $userstatic->socid = $obj->fk_soc;
736
-    $userstatic->statut = $obj->status;     // deprecated
736
+    $userstatic->statut = $obj->status; // deprecated
737 737
     $userstatic->status = $obj->status;
738 738
     $userstatic->photo = $obj->photo;
739 739
 
Please login to merge, or discard this patch.
public/htdocs/salaries/paiement_salary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
             // Create a line of payments
109 109
             $paiement = new PaymentSalary($db);
110 110
             $paiement->fk_salary    = $id;
111
-            $paiement->chid         = $id;  // deprecated
111
+            $paiement->chid         = $id; // deprecated
112 112
             $paiement->datep        = $datepaye;
113 113
             $paiement->amounts      = $amounts; // Tableau de montant
114 114
             $paiement->fk_typepayment = GETPOSTINT("paiementtype");
Please login to merge, or discard this patch.
public/htdocs/delivery/card.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
  */
92 92
 
93 93
 $parameters = array();
94
-$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action);       // Note that $action and $object may have been modified by some hooks
94
+$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
95 95
 // Delete Link
96 96
 $permissiondellink = $user->hasRight('expedition', 'delivery', 'supprimer'); // Used by the include of actions_dellink.inc.php
97
-include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php';     // Must be include, not include_once
97
+include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php'; // Must be include, not include_once
98 98
 
99 99
 if ($action == 'add') {
100 100
     $db->begin();
Please login to merge, or discard this patch.
public/htdocs/intracommreport/card.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 $label = (string) GETPOST('label', 'alphanohtml');
51 51
 
52 52
 $exporttype = GETPOSTISSET('exporttype') ? GETPOST('exporttype', 'alphanohtml') : 'deb'; // DEB or DES
53
-$type_declaration = (string) GETPOST('type_declaration', 'alphanohtml');    // 'introduction' or 'expedition'
53
+$type_declaration = (string) GETPOST('type_declaration', 'alphanohtml'); // 'introduction' or 'expedition'
54 54
 
55 55
 $backtopage = GETPOST('backtopage', 'alpha');
56 56
 
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
 
125 125
 if ($action == 'add' && $permissiontoadd) {
126 126
     $object->label = trim($label);
127
-    $object->exporttype = trim($exporttype);        // 'des' or 'deb'
128
-    $object->type_declaration =  $type_declaration; // 'introduction' or 'expedition'
127
+    $object->exporttype = trim($exporttype); // 'des' or 'deb'
128
+    $object->type_declaration = $type_declaration; // 'introduction' or 'expedition'
129 129
     //$object->subscription = (int) $subscription;
130 130
 
131 131
     // Fill array 'array_options' with data from add form
Please login to merge, or discard this patch.