Passed
Push — GENERAL_BUG_REVIEW_240911 ( 3362b2...8cbbee )
by Rafael
49:13
created
public/htdocs/core/modules/import/import_xlsx.modules.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     }
131 131
 
132 132
 
133
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
133
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
134 134
     /**
135 135
      *  Output header of an example file for this format
136 136
      *
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function write_header_example($outputlangs)
141 141
     {
142
-		// phpcs:enable
142
+        // phpcs:enable
143 143
         global $user, $conf, $langs, $file;
144 144
         // create a temporary object, the final output will be generated in footer
145 145
         $this->workbook->getProperties()->setCreator($user->getFullName($outputlangs) . ' - Dolibarr ' . DOL_VERSION);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         return '';
155 155
     }
156 156
 
157
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
157
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
158 158
     /**
159 159
      *  Output title line of an example file for this format
160 160
      *
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function write_title_example($outputlangs, $headerlinefields)
166 166
     {
167
-		// phpcs:enable
167
+        // phpcs:enable
168 168
         global $conf;
169 169
         $this->workbook->getActiveSheet()->getStyle('1')->getFont()->setBold(true);
170 170
         $this->workbook->getActiveSheet()->getStyle('1')->getAlignment()->setHorizontal(Alignment::HORIZONTAL_LEFT);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         return ''; // final output will be generated in footer
181 181
     }
182 182
 
183
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
183
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
184 184
     /**
185 185
      *  Output record of an example file for this format
186 186
      *
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function write_record_example($outputlangs, $contentlinevalues)
192 192
     {
193
-		// phpcs:enable
193
+        // phpcs:enable
194 194
         $col = 1;
195 195
         $row = 2;
196 196
         foreach ($contentlinevalues as $cell) {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         return ''; // final output will be generated in footer
202 202
     }
203 203
 
204
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
204
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
205 205
     /**
206 206
      *  Output footer of an example file for this format
207 207
      *
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function write_footer_example($outputlangs)
212 212
     {
213
-		// phpcs:enable
213
+        // phpcs:enable
214 214
         // return the file content as a string
215 215
         $tempfile = tempnam(sys_get_temp_dir(), 'dol');
216 216
         $objWriter = new PhpOffice\PhpSpreadsheet\Writer\Xlsx($this->workbook);
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
 
227 227
 
228
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
228
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
229 229
     /**
230 230
      *  Open input file
231 231
      *
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function import_open_file($file)
236 236
     {
237
-		// phpcs:enable
237
+        // phpcs:enable
238 238
         global $langs;
239 239
         $ret = 1;
240 240
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     }
250 250
 
251 251
 
252
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
252
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
253 253
     /**
254 254
      *  Return nb of records. File must be closed.
255 255
      *
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function import_get_nb_of_lines($file)
260 260
     {
261
-		// phpcs:enable
261
+        // phpcs:enable
262 262
         $reader = new Xlsx();
263 263
         $this->workbook = $reader->load($file);
264 264
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     }
272 272
 
273 273
 
274
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
274
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
275 275
     /**
276 276
      *  Input header line from file
277 277
      *
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      */
280 280
     public function import_read_header()
281 281
     {
282
-		// phpcs:enable
282
+        // phpcs:enable
283 283
         // This is not called by the import code !!!
284 284
         $this->headers = array();
285 285
         $xlsx = new Xlsx();
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     }
293 293
 
294 294
 
295
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
295
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
296 296
     /**
297 297
      *  Return array of next record in input file.
298 298
      *
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     public function import_read_record()
302 302
     {
303
-		// phpcs:enable
303
+        // phpcs:enable
304 304
         global $conf;
305 305
 
306 306
         $rowcount = $this->workbook->getActiveSheet()->getHighestDataRow();
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         return $array;
321 321
     }
322 322
 
323
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
323
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
324 324
     /**
325 325
      *  Close file handle
326 326
      *
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      */
329 329
     public function import_close_file()
330 330
     {
331
-		// phpcs:enable
331
+        // phpcs:enable
332 332
         $this->workbook->disconnectWorksheets();
333 333
         unset($this->workbook);
334 334
         return 0;
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 
337 337
 
338 338
     // What is this doing here ? it is common to all imports, is should be in the parent class
339
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
339
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
340 340
     /**
341 341
      * Insert a record into database
342 342
      *
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
      */
351 351
     public function import_insert($arrayrecord, $array_match_file_to_database, $objimport, $maxfields, $importid, $updatekeys)
352 352
     {
353
-		// phpcs:enable
353
+        // phpcs:enable
354 354
         global $langs, $conf, $user;
355 355
         global $thirdparty_static; // Specific to thirdparty import
356 356
         global $tablewithentity_cache; // Cache to avoid to call  desc at each rows on tables
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
                                             //print 'We have made a '.$class.'->'.$method.' to get id from code '.$newval.'. ';
521 521
                                             if ($classinstance->id != '') { // id may be 0, it is a found value
522 522
                                                 $newval = $classinstance->id;
523
-                                            } elseif (! $error) {
523
+                                            } elseif (!$error) {
524 524
                                                 if (!empty($objimport->array_import_convertvalue[0][$val]['dict'])) {
525 525
                                                     // @phan-suppress-next-line PhanPluginSuspiciousParamPosition
526 526
                                                     $this->errors[$error]['lib'] = $langs->trans('ErrorFieldValueNotIn', $key, $newval, 'code', $langs->transnoentitiesnoconv($objimport->array_import_convertvalue[0][$val]['dict']));
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
                                     $classinstance = new $class($this->db);
698 698
                                     $res = call_user_func_array(array($classinstance, $method), array(&$arrayrecord, $arrayfield, $key));
699 699
                                     if (empty($classinstance->error) && empty($classinstance->errors)) {
700
-                                        $newval = $res;     // We get new value computed.
700
+                                        $newval = $res; // We get new value computed.
701 701
                                     } else {
702 702
                                         $this->errors[$error]['type'] = 'CLASSERROR';
703 703
                                         $this->errors[$error]['lib'] = implode(
@@ -798,11 +798,11 @@  discard block
 block discarded – undo
798 798
                         if (isModEnabled("socialnetworks") && strpos($fieldname, "socialnetworks") !== false) {
799 799
                             if (!in_array("socialnetworks", $listfields)) {
800 800
                                 $listfields[] = "socialnetworks";
801
-                                $socialkey = array_search("socialnetworks", $listfields);   // Return position of 'socialnetworks' key in array. Example socialkey=19
801
+                                $socialkey = array_search("socialnetworks", $listfields); // Return position of 'socialnetworks' key in array. Example socialkey=19
802 802
                                 $listvalues[$socialkey] = '';
803 803
                             }
804 804
                             if (!empty($newval) && $arrayrecord[($key)]['type'] > 0) {
805
-                                $socialkey = array_search("socialnetworks", $listfields);   // Return position of 'socialnetworks' key in array. Example socialkey=19
805
+                                $socialkey = array_search("socialnetworks", $listfields); // Return position of 'socialnetworks' key in array. Example socialkey=19
806 806
                                 $socialnetwork = explode("_", $fieldname)[1];
807 807
                                 if (empty($listvalues[$socialkey]) || $listvalues[$socialkey] == "null") {
808 808
                                     $json = new stdClass();
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
 
929 929
                                 $data = array_combine($listfields, $listvalues);
930 930
 
931
-                                $where = array();   // filters to forge SQL request
931
+                                $where = array(); // filters to forge SQL request
932 932
                                 // @phpstan-ignore-next-line
933 933
                                 '@phan-var string[] $where';
934 934
                                 $filters = array(); // filters to forge output error message
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
                                 // We db escape social network field because he isn't in field creation
1022 1022
                                 if (in_array("socialnetworks", $listfields)) {
1023 1023
                                     $socialkey = array_search("socialnetworks", $listfields);
1024
-                                    $tmpsql =  $listvalues[$socialkey];
1024
+                                    $tmpsql = $listvalues[$socialkey];
1025 1025
                                     $listvalues[$socialkey] = "'" . $this->db->escape($tmpsql) . "'";
1026 1026
                                 }
1027 1027
 
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
                                 $data = array_combine($listfields, $listvalues);
1032 1032
                                 $set = array();
1033 1033
                                 foreach ($data as $key => $val) {
1034
-                                    $set[] = $key . " = " . $val;   // $val was escaped/sanitized previously
1034
+                                    $set[] = $key . " = " . $val; // $val was escaped/sanitized previously
1035 1035
                                 }
1036 1036
                                 $sqlstart .= " SET " . implode(', ', $set) . ", import_key = '" . $this->db->escape($importid) . "'";
1037 1037
 
@@ -1070,7 +1070,7 @@  discard block
 block discarded – undo
1070 1070
                             // We db escape social network field because he isn't in field creation
1071 1071
                             if (in_array("socialnetworks", $listfields)) {
1072 1072
                                 $socialkey = array_search("socialnetworks", $listfields);
1073
-                                $tmpsql =  $listvalues[$socialkey];
1073
+                                $tmpsql = $listvalues[$socialkey];
1074 1074
                                 $listvalues[$socialkey] = "'" . $this->db->escape($tmpsql) . "'";
1075 1075
                             }
1076 1076
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/import/import_csv.modules.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
 
118
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
118
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
119 119
     /**
120 120
      *  Output header of an example file for this format
121 121
      *
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function write_header_example($outputlangs)
126 126
     {
127
-		// phpcs:enable
127
+        // phpcs:enable
128 128
         return '';
129 129
     }
130 130
 
131
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
131
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
132 132
     /**
133 133
      *  Output title line of an example file for this format
134 134
      *
@@ -138,12 +138,12 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function write_title_example($outputlangs, $headerlinefields)
140 140
     {
141
-		// phpcs:enable
141
+        // phpcs:enable
142 142
         $s = implode($this->separator, array_map('cleansep', $headerlinefields));
143 143
         return $s . "\n";
144 144
     }
145 145
 
146
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
146
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
147 147
     /**
148 148
      *  Output record of an example file for this format
149 149
      *
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function write_record_example($outputlangs, $contentlinevalues)
155 155
     {
156
-		// phpcs:enable
156
+        // phpcs:enable
157 157
         $s = implode($this->separator, array_map('cleansep', $contentlinevalues));
158 158
         return $s . "\n";
159 159
     }
160 160
 
161
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
161
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
162 162
     /**
163 163
      *  Output footer of an example file for this format
164 164
      *
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function write_footer_example($outputlangs)
169 169
     {
170
-		// phpcs:enable
170
+        // phpcs:enable
171 171
         return '';
172 172
     }
173 173
 
174 174
 
175
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
175
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
176 176
     /**
177 177
      *  Open input file
178 178
      *
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     public function import_open_file($file)
183 183
     {
184
-		// phpcs:enable
184
+        // phpcs:enable
185 185
         global $langs;
186 186
         $ret = 1;
187 187
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
 
205
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
205
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
206 206
     /**
207 207
      *  Return nb of records. File must be closed.
208 208
      *
@@ -211,12 +211,12 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function import_get_nb_of_lines($file)
213 213
     {
214
-		// phpcs:enable
214
+        // phpcs:enable
215 215
         return dol_count_nb_of_line($file);
216 216
     }
217 217
 
218 218
 
219
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
219
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
220 220
     /**
221 221
      *  Input header line from file
222 222
      *
@@ -224,12 +224,12 @@  discard block
 block discarded – undo
224 224
      */
225 225
     public function import_read_header()
226 226
     {
227
-		// phpcs:enable
227
+        // phpcs:enable
228 228
         return 0;
229 229
     }
230 230
 
231 231
 
232
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
232
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
233 233
     /**
234 234
      *  Return array of next record in input file.
235 235
      *
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function import_read_record()
239 239
     {
240
-		// phpcs:enable
240
+        // phpcs:enable
241 241
         global $conf;
242 242
 
243 243
         $arrayres = fgetcsv($this->handle, 100000, $this->separator, $this->enclosure, $this->escape);
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         return $newarrayres;
278 278
     }
279 279
 
280
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
280
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
281 281
     /**
282 282
      *  Close file handle
283 283
      *
@@ -285,13 +285,13 @@  discard block
 block discarded – undo
285 285
      */
286 286
     public function import_close_file()
287 287
     {
288
-		// phpcs:enable
288
+        // phpcs:enable
289 289
         fclose($this->handle);
290 290
         return 0;
291 291
     }
292 292
 
293 293
 
294
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
294
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
295 295
     /**
296 296
      * Insert a record into database
297 297
      *
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
      */
306 306
     public function import_insert($arrayrecord, $array_match_file_to_database, $objimport, $maxfields, $importid, $updatekeys)
307 307
     {
308
-		// phpcs:enable
308
+        // phpcs:enable
309 309
         global $langs, $conf, $user;
310 310
         global $thirdparty_static; // Specific to thirdparty import
311 311
         global $tablewithentity_cache; // Cache to avoid to call  desc at each rows on tables
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
                                             //print 'We have made a '.$class.'->'.$method.' to get id from code '.$newval.'. ';
477 477
                                             if ($classinstance->id != '') { // id may be 0, it is a found value
478 478
                                                 $newval = $classinstance->id;
479
-                                            } elseif (! $error) {
479
+                                            } elseif (!$error) {
480 480
                                                 if (!empty($objimport->array_import_convertvalue[0][$val]['dict'])) {
481 481
                                                     $this->errors[$error]['lib'] = $langs->trans('ErrorFieldValueNotIn', num2Alpha($key - 1), $newval, 'code', $langs->transnoentitiesnoconv($objimport->array_import_convertvalue[0][$val]['dict']));
482 482
                                                 } elseif (!empty($objimport->array_import_convertvalue[0][$val]['element'])) {
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
                                     $classinstance = new $class($this->db);
650 650
                                     $res = call_user_func_array(array($classinstance, $method), array(&$arrayrecord, $arrayfield, ($key - 1)));
651 651
                                     if (empty($classinstance->error) && empty($classinstance->errors)) {
652
-                                        $newval = $res;     // We get new value computed.
652
+                                        $newval = $res; // We get new value computed.
653 653
                                     } else {
654 654
                                         $this->errors[$error]['type'] = 'CLASSERROR';
655 655
                                         $this->errors[$error]['lib'] = implode(
@@ -747,12 +747,12 @@  discard block
 block discarded – undo
747 747
                         if (isModEnabled("socialnetworks") && strpos($fieldname, "socialnetworks") !== false) {
748 748
                             if (!in_array("socialnetworks", $listfields)) {
749 749
                                 $listfields[] = "socialnetworks";
750
-                                $socialkey = array_search("socialnetworks", $listfields);   // Return position of 'socialnetworks' key in array
750
+                                $socialkey = array_search("socialnetworks", $listfields); // Return position of 'socialnetworks' key in array
751 751
                                 $listvalues[$socialkey] = '';
752 752
                             }
753 753
                             //var_dump($newval); var_dump($arrayrecord[($key - 1)]['type']);
754 754
                             if (!empty($newval) && $arrayrecord[($key - 1)]['type'] > 0) {
755
-                                $socialkey = array_search("socialnetworks", $listfields);   // Return position of 'socialnetworks' key in array
755
+                                $socialkey = array_search("socialnetworks", $listfields); // Return position of 'socialnetworks' key in array
756 756
                                 //var_dump('sk='.$socialkey);   // socialkey=19
757 757
                                 $socialnetwork = explode("_", $fieldname)[1];
758 758
                                 if (empty($listvalues[$socialkey]) || $listvalues[$socialkey] == "null") {
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
                             if (empty($lastinsertid)) { // No insert done yet for a parent table
876 876
                                 $sqlSelect = "SELECT " . $fname . " FROM " . $tablename;
877 877
                                 $data = array_combine($listfields, $listvalues);
878
-                                $where = array();   // filters to forge SQL request
878
+                                $where = array(); // filters to forge SQL request
879 879
                                 $filters = array(); // filters to forge output error message
880 880
                                 foreach ($updatekeys as $key) {
881 881
                                     $col = $objimport->array_import_updatekeys[0][$key];
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
                                 // We db escape social network field because he isn't in field creation
966 966
                                 if (in_array("socialnetworks", $listfields)) {
967 967
                                     $socialkey = array_search("socialnetworks", $listfields);
968
-                                    $tmpsql =  $listvalues[$socialkey];
968
+                                    $tmpsql = $listvalues[$socialkey];
969 969
                                     $listvalues[$socialkey] = "'" . $this->db->escape($tmpsql) . "'";
970 970
                                 }
971 971
 
@@ -975,7 +975,7 @@  discard block
 block discarded – undo
975 975
                                 $data = array_combine($listfields, $listvalues);
976 976
                                 $set = array();
977 977
                                 foreach ($data as $key => $val) {
978
-                                    $set[] = $key . " = " . $val;   // $val was escaped/sanitized previously
978
+                                    $set[] = $key . " = " . $val; // $val was escaped/sanitized previously
979 979
                                 }
980 980
                                 $sqlstart .= " SET " . implode(', ', $set) . ", import_key = '" . $this->db->escape($importid) . "'";
981 981
 
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
                             // We db escape social network field because he isn't in field creation
1015 1015
                             if (in_array("socialnetworks", $listfields)) {
1016 1016
                                 $socialkey = array_search("socialnetworks", $listfields);
1017
-                                $tmpsql =  $listvalues[$socialkey];
1017
+                                $tmpsql = $listvalues[$socialkey];
1018 1018
                                 $listvalues[$socialkey] = "'" . $this->db->escape($tmpsql) . "'";
1019 1019
                             }
1020 1020
 
Please login to merge, or discard this patch.
public/htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
         $maxfilesizearray = getMaxFileSizeArray();
171 171
         $maxmin = $maxfilesizearray['maxmin'];
172 172
         if ($maxmin > 0) {
173
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
173
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
174 174
         }
175 175
         $texte .= ' <input type="file" name="uploadfile">';
176 176
         $texte .= '<input type="hidden" value="BOM_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/commande/doc/pdf_proforma.modules.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
 
60
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
61
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
60
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
61
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
62 62
     /**
63 63
      *  Show top header of page.
64 64
      *
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "InvoiceProForma")
74 74
     {
75
-		// phpcs:enable
75
+        // phpcs:enable
76 76
         return parent::_pagehead($pdf, $object, $showaddress, $outputlangs, $outputlangsbis, $titlekey);
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
public/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
         $maxfilesizearray = getMaxFileSizeArray();
178 178
         $maxmin = $maxfilesizearray['maxmin'];
179 179
         if ($maxmin > 0) {
180
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
180
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
181 181
         }
182 182
         $texte .= ' <input type="file" name="uploadfile">';
183 183
         $texte .= '<input type="hidden" value="COMMANDE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/commande/doc/pdf_einstein.modules.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         $this->atleastonediscount = 0;
163 163
     }
164 164
 
165
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
165
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
166 166
     /**
167 167
      *  Function to build pdf onto disk
168 168
      *
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
178 178
     {
179
-		// phpcs:enable
179
+        // phpcs:enable
180 180
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
181 181
 
182 182
         if (!is_object($outputlangs)) {
@@ -663,8 +663,8 @@  discard block
 block discarded – undo
663 663
         }
664 664
     }
665 665
 
666
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
667
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
666
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
667
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
668 668
     /**
669 669
      *  Show payments table
670 670
      *
@@ -676,12 +676,12 @@  discard block
 block discarded – undo
676 676
      */
677 677
     protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
678 678
     {
679
-		// phpcs:enable
679
+        // phpcs:enable
680 680
         return 1;
681 681
     }
682 682
 
683
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
684
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
683
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
684
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
685 685
     /**
686 686
      *   Show miscellaneous information (payment mode, payment term, ...)
687 687
      *
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
      */
694 694
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs)
695 695
     {
696
-		// phpcs:enable
696
+        // phpcs:enable
697 697
         global $conf, $mysoc;
698 698
         $default_font_size = pdf_getPDFFontSize($outputlangs);
699 699
 
@@ -866,8 +866,8 @@  discard block
 block discarded – undo
866 866
         return $posy;
867 867
     }
868 868
 
869
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
870
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
869
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
870
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
871 871
     /**
872 872
      *  Show total to pay
873 873
      *
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
      */
882 882
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $outputlangsbis = null)
883 883
     {
884
-		// phpcs:enable
884
+        // phpcs:enable
885 885
         global $conf, $mysoc, $hookmanager;
886 886
 
887 887
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -1142,7 +1142,7 @@  discard block
 block discarded – undo
1142 1142
         return ($tab2_top + ($tab2_hl * $index));
1143 1143
     }
1144 1144
 
1145
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1145
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1146 1146
     /**
1147 1147
      *   Show table for lines
1148 1148
      *
@@ -1247,8 +1247,8 @@  discard block
 block discarded – undo
1247 1247
         }
1248 1248
     }
1249 1249
 
1250
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1251
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1250
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1251
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1252 1252
     /**
1253 1253
      *  Show top header of page.
1254 1254
      *
@@ -1262,7 +1262,7 @@  discard block
 block discarded – undo
1262 1262
      */
1263 1263
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "PdfOrderTitle")
1264 1264
     {
1265
-		// phpcs:enable
1265
+        // phpcs:enable
1266 1266
         global $conf, $langs, $hookmanager;
1267 1267
 
1268 1268
         $ltrdirection = 'L';
@@ -1514,8 +1514,8 @@  discard block
 block discarded – undo
1514 1514
         return $top_shift;
1515 1515
     }
1516 1516
 
1517
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1518
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1517
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1518
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1519 1519
     /**
1520 1520
      *      Show footer of page. Need this->emetteur object
1521 1521
      *
@@ -1527,7 +1527,7 @@  discard block
 block discarded – undo
1527 1527
      */
1528 1528
     protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
1529 1529
     {
1530
-		// phpcs:enable
1530
+        // phpcs:enable
1531 1531
         $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0);
1532 1532
         return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark);
1533 1533
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1682,7 +1682,7 @@
 block discarded – undo
1682 1682
 
1683 1683
             $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs);
1684 1684
 
1685
-            $mode =  'target';
1685
+            $mode = 'target';
1686 1686
             $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object);
1687 1687
 
1688 1688
             // Show recipient
Please login to merge, or discard this patch.
public/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $this->atleastonediscount = 0;
147 147
     }
148 148
 
149
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
149
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
150 150
     /**
151 151
      *  Function to build pdf onto disk
152 152
      *
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
162 162
     {
163
-		// phpcs:enable
163
+        // phpcs:enable
164 164
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
165 165
 
166 166
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -1352,7 +1352,7 @@  discard block
 block discarded – undo
1352 1352
         return ($tab2_top + ($tab2_hl * $index));
1353 1353
     }
1354 1354
 
1355
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1355
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1356 1356
     /**
1357 1357
      *   Show table for lines
1358 1358
      *
@@ -1413,8 +1413,8 @@  discard block
 block discarded – undo
1413 1413
         }
1414 1414
     }
1415 1415
 
1416
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1417
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1416
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1417
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1418 1418
     /**
1419 1419
      *  Show top header of page.
1420 1420
      *
@@ -1428,7 +1428,7 @@  discard block
 block discarded – undo
1428 1428
      */
1429 1429
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "PdfOrderTitle")
1430 1430
     {
1431
-		// phpcs:enable
1431
+        // phpcs:enable
1432 1432
         global $conf, $langs, $hookmanager, $mysoc;
1433 1433
 
1434 1434
         $ltrdirection = 'L';
@@ -1700,8 +1700,8 @@  discard block
 block discarded – undo
1700 1700
         return $top_shift;
1701 1701
     }
1702 1702
 
1703
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1704
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1703
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1704
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1705 1705
     /**
1706 1706
      *      Show footer of page. Need this->emetteur object
1707 1707
      *
@@ -1713,7 +1713,7 @@  discard block
 block discarded – undo
1713 1713
      */
1714 1714
     protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
1715 1715
     {
1716
-		// phpcs:enable
1716
+        // phpcs:enable
1717 1717
         $showdetails = getDolGlobalInt('MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS', 0);
1718 1718
         return pdf_pagefoot($pdf, $outputlangs, 'ORDER_FREE_TEXT', $this->emetteur, $this->marge_basse, $this->marge_gauche, $this->page_hauteur, $object, $showdetails, $hidefreetext, $this->page_largeur, $this->watermark);
1719 1719
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1656,7 +1656,7 @@
 block discarded – undo
1656 1656
                 $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs);
1657 1657
             }
1658 1658
 
1659
-            $mode =  'target';
1659
+            $mode = 'target';
1660 1660
             $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object);
1661 1661
 
1662 1662
             // Show recipient
Please login to merge, or discard this patch.
public/htdocs/core/modules/supplier_payment/doc/pdf_standard.modules.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
 
147
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
147
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
148 148
     /**
149 149
      *  Function to build pdf onto disk
150 150
      *
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
160 160
     {
161
-		// phpcs:enable
161
+        // phpcs:enable
162 162
         global $user, $langs, $conf, $mysoc, $hookmanager;
163 163
 
164 164
         if (!is_object($outputlangs)) {
@@ -481,8 +481,8 @@  discard block
 block discarded – undo
481 481
         }
482 482
     }
483 483
 
484
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
485
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
484
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
485
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
486 486
     /**
487 487
      *  Show total to pay
488 488
      *
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
      */
495 495
     protected function _tableau_cheque(&$pdf, $object, $posy, $outputlangs)
496 496
     {
497
-		// phpcs:enable
497
+        // phpcs:enable
498 498
         global $conf, $mysoc;
499 499
 
500 500
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
         return $posy;
545 545
     }
546 546
 
547
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
547
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
548 548
     /**
549 549
      *   Show table for lines
550 550
      *
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
         //$this->printRect($pdf,$this->marge_gauche, $tab_top, $this->page_largeur-$this->marge_gauche-$this->marge_droite, $tab_height, $hidetop, $hidebottom);    // Rect takes a length in 3rd parameter and 4th parameter
592 592
     }
593 593
 
594
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
594
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
595 595
     /**
596 596
      *  Show top header of page.
597 597
      *
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
         return 0;
808 808
     }
809 809
 
810
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
810
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
811 811
     /**
812 812
      *      Show footer of page. Need this->emetteur object
813 813
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         $this->db = $db;
96 96
         $this->name = "standard";
97 97
         $this->description = $langs->trans('DocumentModelStandardPDF');
98
-        $this->update_main_doc_field = 0;   // Save the name of generated file as the main doc when generating a doc with this template
98
+        $this->update_main_doc_field = 0; // Save the name of generated file as the main doc when generating a doc with this template
99 99
 
100 100
         // Page size for A4 format
101 101
         $this->type = 'pdf';
Please login to merge, or discard this patch.
public/htdocs/core/modules/barcode/mod_barcode_thirdparty_standard.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     }
274 274
 
275 275
 
276
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
276
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
277 277
     /**
278 278
      *  Return if a code is used (by other element)
279 279
      *
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function verif_dispo($db, $code, $thirdparty)
286 286
     {
287
-		// phpcs:enable
287
+        // phpcs:enable
288 288
         $sql = "SELECT barcode FROM " . MAIN_DB_PREFIX . "societe";
289 289
         $sql .= " WHERE barcode = '" . $db->escape($code) . "'";
290 290
         if ($thirdparty->id > 0) {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         }
304 304
     }
305 305
 
306
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
306
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
307 307
     /**
308 308
      *  Return if a barcode value match syntax
309 309
      *
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      */
314 314
     public function verif_syntax($codefortest, $typefortest)
315 315
     {
316
-		// phpcs:enable
316
+        // phpcs:enable
317 317
         global $conf;
318 318
 
319 319
         $result = 0;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
         //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last  character (* or ?) used in the mask by the key
207 207
         if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...)
208 208
             $literaltype = '';
209
-            $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type
209
+            $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type
210 210
             switch ($literaltype) {
211 211
                 case 'EAN13': //EAN13 rowid = 2
212 212
                     if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13
Please login to merge, or discard this patch.