File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3232 */
3333class CreateFile extends CreateTableFields
3434{
35+ /**
36+ * @var string
37+ */
38+ private $ tab = ' ' ;
39+
3540 /**
3641 * @var mixed
3742 */
@@ -213,7 +218,8 @@ public function getFileName()
213218 */
214219 private function setContent ($ content )
215220 {
216- $ this ->content = $ content ;
221+ //replace tabs by 4 spaces
222+ $ this ->content = preg_replace ('/\t/ ' , $ this ->tab , $ content );
217223 }
218224
219225 /**
Original file line number Diff line number Diff line change 3131 - added clone feature for items (mjoel/goffy)
3232 - update test data (mamba/goffy)
3333 - added start/limit handling (goffy)
34+ - replace tab by 4 spaces during creation (goffy)
3435
3536<h5>3.04 Final [2020-11-11]</h5> Dev: XOOPS 2.5.11, PHP 7.4.5
3637<hr>
You can’t perform that action at this time.
0 commit comments