-
Notifications
You must be signed in to change notification settings - Fork 160
#102 Add alternative for php pathinfo function is discouraged #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
1e53f72
ceb63ee
eaae9fd
c6c292a
b842a8b
27d90c3
2de3b7c
fd8b63f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -39,11 +39,12 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^call_user_func_array$' => null, | ||||||
'^chdir$' => null, | ||||||
'^chgrp$' => null, | ||||||
'^chmod$' => null, | ||||||
'^chmod$' => '\Magento\Framework\Filesystem\DriverInterface::changePermissions() | ||||||
or \Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^chown$' => null, | ||||||
'^chroot$' => null, | ||||||
'^com_load_typelib$' => null, | ||||||
'^copy$' => null, | ||||||
'^copy$' => '\Magento\Framework\Filesystem\Driver\File::copy()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^curl_.*$' => null, | ||||||
'^cyrus_connect$' => null, | ||||||
'^dba_.*$' => null, | ||||||
|
@@ -53,17 +54,17 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^dcngettext$' => null, | ||||||
'^dgettext$' => null, | ||||||
'^dio_.*$' => null, | ||||||
'^dirname$' => null, | ||||||
'^dirname$' => '\Magento\Framework\Filesystem\DriverInterface::getParentDirectory()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^dngettext$' => null, | ||||||
'^domxml_.*$' => null, | ||||||
'^fbsql_.*$' => null, | ||||||
'^fdf_add_doc_javascript$' => null, | ||||||
'^fdf_open$' => null, | ||||||
'^fopen$' => null, | ||||||
'^fclose$' => null, | ||||||
'^fopen$' => '\Magento\Framework\Filesystem\Driver\File::fileOpen()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^fclose$' => '\Magento\Framework\Filesystem\Driver\File::fileClose()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^fsockopen$' => null, | ||||||
'^ftp_.*$' => null, | ||||||
'^fwrite$' => null, | ||||||
'^fwrite$' => '\Magento\Framework\Filesystem\Driver\File::fileWrite()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^gettext$' => null, | ||||||
'^gz.*$' => null, | ||||||
'^header$' => null, | ||||||
|
@@ -79,7 +80,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^link$' => null, | ||||||
'^mail$' => null, | ||||||
'^mb_send_mail$' => null, | ||||||
'^mkdir$' => null, | ||||||
'^mkdir$' => '\Magento\Framework\Filesystem\DriverInterface::createDirectory()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^move_uploaded_file$' => null, | ||||||
'^msession_.*$' => null, | ||||||
'^msg_send$' => null, | ||||||
|
@@ -96,7 +97,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^parse_str$' => null, | ||||||
'^parse_url$' => null, | ||||||
'^parsekit_compile_string$' => null, | ||||||
'^pathinfo$' => null, | ||||||
'^pathinfo$' => 'Magento\Framework\Filesystem\Io\File::getPathInfo->()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^pcntl_.*$' => null, | ||||||
'^posix_.*$' => null, | ||||||
'^pfpro_.*$' => null, | ||||||
|
@@ -106,14 +107,14 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^print_r$' => null, | ||||||
'^printf$' => null, | ||||||
'^putenv$' => null, | ||||||
'^readfile$' => null, | ||||||
'^readfile$' => '\Magento\Framework\Filesystem\Driver\File::fileRead()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^readgzfile$' => null, | ||||||
'^readline$' => null, | ||||||
'^readline$' => '\Magento\Framework\Filesystem\Driver\File::fileReadLine()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^readlink$' => null, | ||||||
'^register_shutdown_function$' => null, | ||||||
'^register_tick_function$' => null, | ||||||
'^rename$' => null, | ||||||
'^rmdir$' => null, | ||||||
'^rename$' => '\Magento\Framework\Filesystem\Driver\File::raname()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^rmdir$' => '\Magento\Framework\Filesystem\DriverInterface::deleteDirectory()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^scandir$' => null, | ||||||
'^session_.*$' => null, | ||||||
'^set_include_path$' => null, | ||||||
|
@@ -126,9 +127,9 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^socket_.*$' => null, | ||||||
'^stream_.*$' => null, | ||||||
'^sybase_.*$' => null, | ||||||
'^symlink$' => null, | ||||||
'^symlink$' => '\Magento\Framework\Filesystem\Driver\File::symlink()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^syslog$' => null, | ||||||
'^touch$' => null, | ||||||
'^touch$' => '\Magento\Framework\Filesystem\Driver\File::touch()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^trigger_error$' => null, | ||||||
'^unlink$' => null, | ||||||
'^vprintf$' => null, | ||||||
|
@@ -149,7 +150,7 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^fdf_.*$' => null, | ||||||
'^fget.*$' => null, | ||||||
'^fread$' => null, | ||||||
'^fflush$' => null, | ||||||
'^fflush$' => '\Magento\Framework\Filesystem\Driver\File::fileFlush()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^get_browser$' => null, | ||||||
'^get_headers$' => null, | ||||||
'^get_meta_tags$' => null, | ||||||
|
@@ -194,24 +195,24 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff | |||||
'^gettype$' => null, | ||||||
'^var_dump$' => null, | ||||||
'^tempnam$' => null, | ||||||
'^realpath$' => null, | ||||||
'^realpath$' => '\Magento\Framework\Filesystem\Driver\File::getRealPath()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^linkinfo$' => null, | ||||||
'^lstat$' => null, | ||||||
'^lstat$' => '\Magento\Framework\Filesystem\Driver\File::stat()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^stat$' => null, | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^lchgrp$' => null, | ||||||
'^lchown$' => null, | ||||||
'^show_source$' => null, | ||||||
'^is_dir$' => null, | ||||||
'^is_dir$' => '\Magento\Framework\Filesystem\Driver\File::isDirectory()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^is_executable$' => null, | ||||||
'^is_file$' => null, | ||||||
'^is_file$' => '\Magento\Framework\Filesystem\Driver\File::isFile()', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'^is_link$' => null, | ||||||
'^is_readable$' => null, | ||||||
'^is_writable$' => null, | ||||||
'^is_writeable$' => null, | ||||||
'^is_readable$' => '\Magento\Framework\Filesystem\Driver\File::isReadable()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^is_writable$' => '\Magento\Framework\Filesystem\DriverInterface::isWritable()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^is_writeable$' => '\Magento\Framework\Filesystem\DriverInterface::isWritable()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^is_uploaded_file$' => null, | ||||||
'^glob$' => null, | ||||||
'^glob$' => '\Magento\Framework\Filesystem\Glob::glob()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^ssh2_.*$' => null, | ||||||
'^delete$' => null, | ||||||
'^delete$' => '\Magento\Framework\Filesystem\Driver\File::deleteFile()', | ||||||
diazwatson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
'^file.*$' => null, | ||||||
'^chop$' => 'rtrim()', | ||||||
'^sizeof$' => 'count()', | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.