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