Passed
Push — main ( 55273f...7ed502 )
by Rafael
46:12
created
htdocs/core/modules/facture/doc/pdf_crabe.modules.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
 
183
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
183
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
184 184
     /**
185 185
      *  Function to build pdf onto disk
186 186
      *
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
196 196
     {
197
-		// phpcs:enable
197
+        // phpcs:enable
198 198
         global $user, $langs, $conf, $mysoc, $hookmanager, $nblines;
199 199
 
200 200
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -900,8 +900,8 @@  discard block
 block discarded – undo
900 900
     }
901 901
 
902 902
 
903
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
904
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
903
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
904
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
905 905
     /**
906 906
      *  Show payments table
907 907
      *
@@ -914,7 +914,7 @@  discard block
 block discarded – undo
914 914
      */
915 915
     protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heightforfooter = 0)
916 916
     {
917
-		// phpcs:enable
917
+        // phpcs:enable
918 918
         global $conf;
919 919
 
920 920
         $sign = 1;
@@ -1058,8 +1058,8 @@  discard block
 block discarded – undo
1058 1058
         }
1059 1059
     }
1060 1060
 
1061
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1062
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1061
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1062
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1063 1063
     /**
1064 1064
      * Function _tableau_versements_header
1065 1065
      *
@@ -1075,7 +1075,7 @@  discard block
 block discarded – undo
1075 1075
      */
1076 1076
     protected function _tableau_versements_header($pdf, $object, $outputlangs, $default_font_size, $tab3_posx, $tab3_top, $tab3_width, $tab3_height)
1077 1077
     {
1078
-		// phpcs:enable
1078
+        // phpcs:enable
1079 1079
         $title = $outputlangs->transnoentities("PaymentsAlreadyDone");
1080 1080
         if ($object->type == 2) {
1081 1081
             $title = $outputlangs->transnoentities("PaymentsBackAlreadyDone");
@@ -1100,8 +1100,8 @@  discard block
 block discarded – undo
1100 1100
         $pdf->line($tab3_posx, $tab3_top - 1 + $tab3_height, $tab3_posx + $tab3_width, $tab3_top - 1 + $tab3_height);
1101 1101
     }
1102 1102
 
1103
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1104
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1103
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1104
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1105 1105
     /**
1106 1106
      *   Show miscellaneous information (payment mode, payment term, ...)
1107 1107
      *
@@ -1114,7 +1114,7 @@  discard block
 block discarded – undo
1114 1114
      */
1115 1115
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs, $outputlangsbis)
1116 1116
     {
1117
-		// phpcs:enable
1117
+        // phpcs:enable
1118 1118
         global $conf, $mysoc, $hookmanager;
1119 1119
 
1120 1120
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -1337,8 +1337,8 @@  discard block
 block discarded – undo
1337 1337
     }
1338 1338
 
1339 1339
 
1340
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1341
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1340
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1341
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1342 1342
     /**
1343 1343
      *  Show total to pay
1344 1344
      *
@@ -1352,7 +1352,7 @@  discard block
 block discarded – undo
1352 1352
      */
1353 1353
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $outputlangsbis)
1354 1354
     {
1355
-		// phpcs:enable
1355
+        // phpcs:enable
1356 1356
         global $conf, $mysoc, $hookmanager;
1357 1357
 
1358 1358
         $sign = 1;
@@ -1683,7 +1683,7 @@  discard block
 block discarded – undo
1683 1683
         return ($tab2_top + ($tab2_hl * $index));
1684 1684
     }
1685 1685
 
1686
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1686
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1687 1687
     /**
1688 1688
      *   Show table for lines
1689 1689
      *
@@ -1804,7 +1804,7 @@  discard block
 block discarded – undo
1804 1804
         }
1805 1805
     }
1806 1806
 
1807
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1807
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1808 1808
     /**
1809 1809
      *  Show top header of page.
1810 1810
      *
@@ -1817,7 +1817,7 @@  discard block
 block discarded – undo
1817 1817
      */
1818 1818
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
1819 1819
     {
1820
-		// phpcs:enable
1820
+        // phpcs:enable
1821 1821
         global $conf, $langs;
1822 1822
 
1823 1823
         $ltrdirection = 'L';
@@ -2195,7 +2195,7 @@  discard block
 block discarded – undo
2195 2195
         return $top_shift;
2196 2196
     }
2197 2197
 
2198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2199 2199
     /**
2200 2200
      *      Show footer of page. Need this->emetteur object
2201 2201
      *
Please login to merge, or discard this patch.
htdocs/core/modules/facture/doc/pdf_sponge.modules.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
 
185
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
185
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
186 186
     /**
187 187
      *  Function to build pdf onto disk
188 188
      *
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
198 198
     {
199
-		// phpcs:enable
199
+        // phpcs:enable
200 200
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
201 201
 
202 202
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -1974,7 +1974,7 @@  discard block
 block discarded – undo
1974 1974
         return ($tab2_top + ($tab2_hl * $index));
1975 1975
     }
1976 1976
 
1977
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1977
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1978 1978
     /**
1979 1979
      *  Return list of active generation modules
1980 1980
      *
@@ -1984,11 +1984,11 @@  discard block
 block discarded – undo
1984 1984
      */
1985 1985
     public static function liste_modeles($db, $maxfilenamelength = 0)
1986 1986
     {
1987
-		// phpcs:enable
1987
+        // phpcs:enable
1988 1988
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
1989 1989
     }
1990 1990
 
1991
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1991
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1992 1992
     /**
1993 1993
      *   Show table for lines
1994 1994
      *
@@ -2056,7 +2056,7 @@  discard block
 block discarded – undo
2056 2056
         }
2057 2057
     }
2058 2058
 
2059
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2059
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2060 2060
     /**
2061 2061
      *  Show top header of page. This include the logo, ref and address blocks
2062 2062
      *
@@ -2069,7 +2069,7 @@  discard block
 block discarded – undo
2069 2069
      */
2070 2070
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
2071 2071
     {
2072
-		// phpcs:enable
2072
+        // phpcs:enable
2073 2073
         global $conf, $langs;
2074 2074
 
2075 2075
         $ltrdirection = 'L';
@@ -2449,7 +2449,7 @@  discard block
 block discarded – undo
2449 2449
         return $pagehead;
2450 2450
     }
2451 2451
 
2452
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2452
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2453 2453
     /**
2454 2454
      *      Show footer of page. Need this->emetteur object
2455 2455
      *
Please login to merge, or discard this patch.
htdocs/core/modules/holiday/modules_holiday.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  */
41 41
 abstract class ModelePDFHoliday extends CommonDocGenerator
42 42
 {
43
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
44 44
     /**
45 45
      *  Return list of active generation modules
46 46
      *
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function liste_modeles($db, $maxfilenamelength = 0)
52 52
     {
53
-		// phpcs:enable
53
+        // phpcs:enable
54 54
         $type = 'holiday';
55 55
         $list = array();
56 56
 
Please login to merge, or discard this patch.
htdocs/core/modules/product/modules_product.class.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
  */
39 39
 abstract class ModelePDFProduct extends CommonDocGenerator
40 40
 {
41
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
41
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42 42
     /**
43 43
      *  Return list of active generation modules
44 44
      *
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function liste_modeles($dbs, $maxfilenamelength = 0)
50 50
     {
51
-		// phpcs:enable
51
+        // phpcs:enable
52 52
         $type = 'product';
53 53
         $list = array();
54 54
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         return $langs->trans("Function_getNextValue_InModuleNotWorking");
77 77
     }
78 78
 
79
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
79
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
80 80
     /**
81 81
      *  Renvoi la liste des modeles de numérotation
82 82
      *
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public static function liste_modeles($dbs, $maxfilenamelength = 0)
88 88
     {
89
-		// phpcs:enable
89
+        // phpcs:enable
90 90
         $list = array();
91 91
         $sql = "";
92 92
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         return $s;
176 176
     }
177 177
 
178
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
178
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
179 179
     /**
180 180
      *   Check if mask/numbering use prefix
181 181
      *
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function verif_prefixIsUsed()
185 185
     {
186
-		// phpcs:enable
186
+        // phpcs:enable
187 187
         return 0;
188 188
     }
189 189
 }
Please login to merge, or discard this patch.
htdocs/core/modules/product/doc/pdf_standard.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
 
106 106
 
107
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
107
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
108 108
     /**
109 109
      *  Function to build a document on disk using the generic odt module.
110 110
      *
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
120 120
     {
121
-		// phpcs:enable
121
+        // phpcs:enable
122 122
         global $user, $langs, $conf, $mysoc, $db, $hookmanager;
123 123
 
124 124
         if (!is_object($outputlangs)) {
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
         }
598 598
     }
599 599
 
600
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
600
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
601 601
     /**
602 602
      *   Show table for lines
603 603
      *
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
         }
698 698
     }
699 699
 
700
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
700
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
701 701
     /**
702 702
      *  Show top header of page.
703 703
      *
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
         return 0;
864 864
     }
865 865
 
866
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
866
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
867 867
     /**
868 868
      *  Show footer of page. Need this->emetteur object
869 869
      *
Please login to merge, or discard this patch.
htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         return $texte;
189 189
     }
190 190
 
191
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
191
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
192 192
     /**
193 193
      *  Function to build a document on disk using the generic odt module.
194 194
      *
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
204 204
     {
205
-		// phpcs:enable
205
+        // phpcs:enable
206 206
         global $product, $langs, $conf, $mysoc, $hookmanager, $user;
207 207
 
208 208
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
htdocs/core/modules/product/mod_codeproduct_elephant.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     }
209 209
 
210 210
 
211
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
211
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
212 212
     /**
213 213
      *   Check if mask/numbering use prefix
214 214
      *
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     public function verif_prefixIsUsed()
218 218
     {
219
-		// phpcs:enable
219
+        // phpcs:enable
220 220
         global $conf;
221 221
 
222 222
         $mask = getDolGlobalString('PRODUCT_ELEPHANT_MASK_PRODUCT');
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     }
287 287
 
288 288
 
289
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
289
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
290 290
     /**
291 291
      *  Indicate if the code is available or not (by another third party)
292 292
      *
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      */
298 298
     public function verif_dispo($db, $code, $product)
299 299
     {
300
-		// phpcs:enable
300
+        // phpcs:enable
301 301
         $sql = "SELECT ref FROM " . MAIN_DB_PREFIX . "product";
302 302
         $sql .= " WHERE ref = '" . $db->escape($code) . "'";
303 303
         if ($product->id > 0) {
Please login to merge, or discard this patch.
htdocs/core/modules/import/import_xlsx.modules.php 1 patch
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.
htdocs/core/modules/import/import_csv.modules.php 1 patch
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.