Skip to content

Commit

Permalink
#102 Add alternatives for php function is discouraged
Browse files Browse the repository at this point in the history
  • Loading branch information
diazwatson committed Aug 3, 2019
1 parent 1e53f72 commit ceb63ee
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
'^dcngettext$' => null,
'^dgettext$' => null,
'^dio_.*$' => null,
'^dirname$' => null,
'^dirname$' => 'Magento\Framework\Filesystem\Io\File->dirname()',
'^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()',
'^fclose$' => '\Magento\Framework\Filesystem\Driver\File->fileClose()',
'^fsockopen$' => null,
'^ftp_.*$' => null,
'^fwrite$' => null,
Expand Down Expand Up @@ -194,24 +194,24 @@ class DiscouragedFunctionSniff extends ForbiddenFunctionsSniff
'^gettype$' => null,
'^var_dump$' => null,
'^tempnam$' => null,
'^realpath$' => null,
'^realpath$' => '\Magento\Framework\Filesystem\Driver\File->getRealPath()',
'^linkinfo$' => null,
'^lstat$' => null,
'^stat$' => null,
'^lchgrp$' => null,
'^lchown$' => null,
'^show_source$' => null,
'^is_dir$' => null,
'^is_dir$' => '\Magento\Framework\Filesystem\Driver\File->isDirectory()',
'^is_executable$' => null,
'^is_file$' => null,
'^is_file$' => '\Magento\Framework\Filesystem\Driver\File->isFile()',
'^is_link$' => null,
'^is_readable$' => null,
'^is_writable$' => null,
'^is_writeable$' => null,
'^is_readable$' => '\Magento\Framework\Filesystem\Driver\File->isReadable()',
'^is_writable$' => 'Magento\Framework\Filesystem\Io\File->isWriteable()',
'^is_writeable$' => 'Magento\Framework\Filesystem\Io\File->isWriteable()',
'^is_uploaded_file$' => null,
'^glob$' => null,
'^ssh2_.*$' => null,
'^delete$' => null,
'^delete$' => '\Magento\Framework\Filesystem\Driver\File->deleteFile()',
'^file.*$' => null,
'^chop$' => 'rtrim()',
'^sizeof$' => 'count()',
Expand Down

0 comments on commit ceb63ee

Please sign in to comment.