- Notifications
You must be signed in to change notification settings - Fork 165
#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 6 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. Outdated 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. Outdated 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. Outdated 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. Outdated Show resolved Hide resolved | ||||||
'^fclose$' => '\Magento\Framework\Filesystem\Driver\File::fileClose()', | ||||||
diazwatson marked this conversation as resolved. Outdated Show resolved Hide resolved | ||||||
'^fsockopen$' => null, | ||||||
'^ftp_.*$' => null, | ||||||
'^fwrite$' => null, | ||||||
'^fwrite$' => '\Magento\Framework\Filesystem\Driver\File::fileWrite()', | ||||||
diazwatson marked this conversation as resolved. Outdated 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()', | ||||||
|
'^mkdir$' => '\Magento\Framework\Filesystem\DriverInterface::createDirectory()', | |
'^mkdir$' => 'Magento\Framework\Filesystem\DriverInterface::createDirectory()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^pathinfo$' => 'Magento\Framework\Filesystem\Io\File::getPathInfo->()', | |
'^pathinfo$' => null, |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^readfile$' => '\Magento\Framework\Filesystem\Driver\File::fileRead()', | |
'^readfile$' => 'Magento\Framework\Filesystem\DriverInterface::fileRead()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^readline$' => '\Magento\Framework\Filesystem\Driver\File::fileReadLine()', | |
'^readline$' => 'Magento\Framework\Filesystem\DriverInterface::fileReadLine()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^rename$' => '\Magento\Framework\Filesystem\Driver\File::raname()', | |
'^rename$' => 'Magento\Framework\Filesystem\DriverInterface::raname()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^rmdir$' => '\Magento\Framework\Filesystem\DriverInterface::deleteDirectory()', | |
'^rmdir$' => 'Magento\Framework\Filesystem\DriverInterface::deleteDirectory()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^symlink$' => '\Magento\Framework\Filesystem\Driver\File::symlink()', | |
'^symlink$' => 'Magento\Framework\Filesystem\DriverInterface::symlink()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^touch$' => '\Magento\Framework\Filesystem\Driver\File::touch()', | |
'^touch$' => 'Magento\Framework\Filesystem\DriverInterface::touch()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^fflush$' => '\Magento\Framework\Filesystem\Driver\File::fileFlush()', | |
'^fflush$' => 'Magento\Framework\Filesystem\DriverInterface::fileFlush()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^realpath$' => '\Magento\Framework\Filesystem\Driver\File::getRealPath()', | |
'^realpath$' => 'Magento\Framework\Filesystem\DriverInterface::getRealPath()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^lstat$' => '\Magento\Framework\Filesystem\Driver\File::stat()', | |
'^lstat$' => 'Magento\Framework\Filesystem\DriverInterface::stat()', |
diazwatson marked this conversation as resolved. Show resolved Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^is_dir$' => '\Magento\Framework\Filesystem\Driver\File::isDirectory()', | |
'^is_dir$' => 'Magento\Framework\Filesystem\DriverInterface::isDirectory()', |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'^is_file$' => '\Magento\Framework\Filesystem\Driver\File::isFile()', | |
'^is_file$' => 'Magento\Framework\Filesystem\DriverInterface::isFile()', |
Uh oh!
There was an error while loading. Please reload this page.