@@ -39,11 +39,11 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
39
39
'^call_user_func_array$ ' => null ,
40
40
'^chdir$ ' => null ,
41
41
'^chgrp$ ' => null ,
42
- '^chmod$ ' => null ,
42
+ '^chmod$ ' => ' Magento\Framework\Filesystem\Io\File->chmod ' ,
43
43
'^chown$ ' => null ,
44
44
'^chroot$ ' => null ,
45
45
'^com_load_typelib$ ' => null ,
46
- '^copy$ ' => null ,
46
+ '^copy$ ' => ' \Magento\Framework\Filesystem\Driver\File->copy ' ,
47
47
'^curl_.*$ ' => null ,
48
48
'^cyrus_connect$ ' => null ,
49
49
'^dba_.*$ ' => null ,
@@ -53,17 +53,17 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
53
53
'^dcngettext$ ' => null ,
54
54
'^dgettext$ ' => null ,
55
55
'^dio_.*$ ' => null ,
56
- '^dirname$ ' => 'Magento\Framework\Filesystem\Io\File->dirname() ' ,
56
+ '^dirname$ ' => 'Magento\Framework\Filesystem\Io\File->dirname ' ,
57
57
'^dngettext$ ' => null ,
58
58
'^domxml_.*$ ' => null ,
59
59
'^fbsql_.*$ ' => null ,
60
60
'^fdf_add_doc_javascript$ ' => null ,
61
61
'^fdf_open$ ' => null ,
62
- '^fopen$ ' => '\Magento\Framework\Filesystem\Driver\File->fileOpen() ' ,
63
- '^fclose$ ' => '\Magento\Framework\Filesystem\Driver\File->fileClose() ' ,
62
+ '^fopen$ ' => '\Magento\Framework\Filesystem\Driver\File->fileOpen ' ,
63
+ '^fclose$ ' => '\Magento\Framework\Filesystem\Driver\File->fileClose ' ,
64
64
'^fsockopen$ ' => null ,
65
65
'^ftp_.*$ ' => null ,
66
- '^fwrite$ ' => null ,
66
+ '^fwrite$ ' => ' \Magento\Framework\Filesystem\Driver\File->fileWrite ' ,
67
67
'^gettext$ ' => null ,
68
68
'^gz.*$ ' => null ,
69
69
'^header$ ' => null ,
@@ -79,7 +79,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
79
79
'^link$ ' => null ,
80
80
'^mail$ ' => null ,
81
81
'^mb_send_mail$ ' => null ,
82
- '^mkdir$ ' => null ,
82
+ '^mkdir$ ' => ' Magento\Framework\Filesystem\Io\File->mkdir ' ,
83
83
'^move_uploaded_file$ ' => null ,
84
84
'^msession_.*$ ' => null ,
85
85
'^msg_send$ ' => null ,
@@ -96,7 +96,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
96
96
'^parse_str$ ' => null ,
97
97
'^parse_url$ ' => null ,
98
98
'^parsekit_compile_string$ ' => null ,
99
- '^pathinfo$ ' => 'Magento\Framework\Filesystem\Io\File->getPathInfo() ' ,
99
+ '^pathinfo$ ' => 'Magento\Framework\Filesystem\Io\File->getPathInfo ' ,
100
100
'^pcntl_.*$ ' => null ,
101
101
'^posix_.*$ ' => null ,
102
102
'^pfpro_.*$ ' => null ,
@@ -106,14 +106,14 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
106
106
'^print_r$ ' => null ,
107
107
'^printf$ ' => null ,
108
108
'^putenv$ ' => null ,
109
- '^readfile$ ' => null ,
109
+ '^readfile$ ' => ' \Magento\Framework\Filesystem\Driver\File->fileRead ' ,
110
110
'^readgzfile$ ' => null ,
111
- '^readline$ ' => null ,
111
+ '^readline$ ' => ' \Magento\Framework\Filesystem\Driver\File->fileReadLine ' ,
112
112
'^readlink$ ' => null ,
113
113
'^register_shutdown_function$ ' => null ,
114
114
'^register_tick_function$ ' => null ,
115
- '^rename$ ' => null ,
116
- '^rmdir$ ' => null ,
115
+ '^rename$ ' => ' \Magento\Framework\Filesystem\Driver\File->raname ' ,
116
+ '^rmdir$ ' => ' Magento\Framework\Filesystem\Io\File->rmdir ' ,
117
117
'^scandir$ ' => null ,
118
118
'^session_.*$ ' => null ,
119
119
'^set_include_path$ ' => null ,
@@ -126,9 +126,9 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
126
126
'^socket_.*$ ' => null ,
127
127
'^stream_.*$ ' => null ,
128
128
'^sybase_.*$ ' => null ,
129
- '^symlink$ ' => null ,
129
+ '^symlink$ ' => ' \Magento\Framework\Filesystem\Driver\File->symlink ' ,
130
130
'^syslog$ ' => null ,
131
- '^touch$ ' => null ,
131
+ '^touch$ ' => ' \Magento\Framework\Filesystem\Driver\File->touch ' ,
132
132
'^trigger_error$ ' => null ,
133
133
'^unlink$ ' => null ,
134
134
'^vprintf$ ' => null ,
@@ -149,7 +149,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
149
149
'^fdf_.*$ ' => null ,
150
150
'^fget.*$ ' => null ,
151
151
'^fread$ ' => null ,
152
- '^fflush$ ' => null ,
152
+ '^fflush$ ' => ' \Magento\Framework\Filesystem\Driver\File->fileFlush ' ,
153
153
'^get_browser$ ' => null ,
154
154
'^get_headers$ ' => null ,
155
155
'^get_meta_tags$ ' => null ,
@@ -194,24 +194,24 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
194
194
'^gettype$ ' => null ,
195
195
'^var_dump$ ' => null ,
196
196
'^tempnam$ ' => null ,
197
- '^realpath$ ' => '\Magento\Framework\Filesystem\Driver\File->getRealPath() ' ,
197
+ '^realpath$ ' => '\Magento\Framework\Filesystem\Driver\File->getRealPath ' ,
198
198
'^linkinfo$ ' => null ,
199
- '^lstat$ ' => null ,
199
+ '^lstat$ ' => ' \Magento\Framework\Filesystem\Driver\File->stat ' ,
200
200
'^stat$ ' => null ,
201
201
'^lchgrp$ ' => null ,
202
202
'^lchown$ ' => null ,
203
203
'^show_source$ ' => null ,
204
- '^is_dir$ ' => '\Magento\Framework\Filesystem\Driver\File->isDirectory() ' ,
204
+ '^is_dir$ ' => '\Magento\Framework\Filesystem\Driver\File->isDirectory ' ,
205
205
'^is_executable$ ' => null ,
206
- '^is_file$ ' => '\Magento\Framework\Filesystem\Driver\File->isFile() ' ,
206
+ '^is_file$ ' => '\Magento\Framework\Filesystem\Driver\File->isFile ' ,
207
207
'^is_link$ ' => null ,
208
- '^is_readable$ ' => '\Magento\Framework\Filesystem\Driver\File->isReadable() ' ,
209
- '^is_writable$ ' => 'Magento\Framework\Filesystem\Io\File->isWriteable() ' ,
210
- '^is_writeable$ ' => 'Magento\Framework\Filesystem\Io\File->isWriteable() ' ,
208
+ '^is_readable$ ' => '\Magento\Framework\Filesystem\Driver\File->isReadable ' ,
209
+ '^is_writable$ ' => 'Magento\Framework\Filesystem\Io\File->isWriteable ' ,
210
+ '^is_writeable$ ' => 'Magento\Framework\Filesystem\Io\File->isWriteable ' ,
211
211
'^is_uploaded_file$ ' => null ,
212
- '^glob$ ' => null ,
212
+ '^glob$ ' => ' \Magento\Framework\Filesystem\Glob::glob ' ,
213
213
'^ssh2_.*$ ' => null ,
214
- '^delete$ ' => '\Magento\Framework\Filesystem\Driver\File->deleteFile() ' ,
214
+ '^delete$ ' => '\Magento\Framework\Filesystem\Driver\File->deleteFile ' ,
215
215
'^file.*$ ' => null ,
216
216
'^chop$ ' => 'rtrim() ' ,
217
217
'^sizeof$ ' => 'count() ' ,
0 commit comments