Magento Coding Standard (PHPCS) report for yireo/magento2-devhacks ================================================================== Package version: 0.1.3 | Magento: 2.4.9 | Tested: 2026-06-01 33 errors, 54 warnings in 6 files Plugin/ValidateFetchView.php 9:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 10:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Console/Command/CopyHacks.php 15:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:20 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 32:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 38:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 43:13 warning The use of function copy() is discouraged; use Magento\Framework\Filesystem\DriverInterface::copy() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Copy/File.php 70:19 error Silencing errors is discouraged; found: @file_exists($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 70:20 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 92:19 error Silencing errors is discouraged; found: @stat($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 92:20 warning The use of function stat() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 114:19 error Silencing errors is discouraged; found: @is_readable($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 114:20 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 136:19 error Silencing errors is discouraged; found: @is_file($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 136:20 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 158:19 error Silencing errors is discouraged; found: @is_dir($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 158:20 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 184:19 error Silencing errors is discouraged; found: @file_get_contents($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 184:20 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 210:19 error Silencing errors is discouraged; found: @is_writable($filename... (Generic.PHP.NoSilencedErrors.Discouraged) 210:20 warning The use of function is_writable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isWritable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 227:16 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 257:13 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 260:22 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 261:17 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 264:19 error Silencing errors is discouraged; found: @mkdir($path... (Generic.PHP.NoSilencedErrors.Discouraged) 264:20 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 269:17 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 342:23 error Silencing errors is discouraged; found: @rename($this... (Generic.PHP.NoSilencedErrors.Discouraged) 342:24 warning The use of function rename() is discouraged; use Magento\Framework\Filesystem\DriverInterface::rename() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 378:23 error Silencing errors is discouraged; found: @copy($this... (Generic.PHP.NoSilencedErrors.Discouraged) 378:24 warning The use of function copy() is discouraged; use Magento\Framework\Filesystem\DriverInterface::copy() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 414:23 error Silencing errors is discouraged; found: @symlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 414:24 warning The use of function symlink() is discouraged; use Magento\Framework\Filesystem\DriverInterface::symlink() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 443:9 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 443:10 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 493:13 warning The use of function is_link() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 494:23 error Silencing errors is discouraged; found: @unlink($fullPath... (Generic.PHP.NoSilencedErrors.Discouraged) 494:24 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 496:23 error Silencing errors is discouraged; found: @rmdir($fullPath... (Generic.PHP.NoSilencedErrors.Discouraged) 496:24 warning The use of function rmdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::deleteDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 522:19 error Silencing errors is discouraged; found: @chmod($this... (Generic.PHP.NoSilencedErrors.Discouraged) 522:20 warning The use of function chmod() is discouraged; use Magento\Framework\Filesystem\DriverInterface::changePermissions() or Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 550:23 error Silencing errors is discouraged; found: @chmod($path... (Generic.PHP.NoSilencedErrors.Discouraged) 550:24 warning The use of function chmod() is discouraged; use Magento\Framework\Filesystem\DriverInterface::changePermissions() or Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 552:23 error Silencing errors is discouraged; found: @chmod($path... (Generic.PHP.NoSilencedErrors.Discouraged) 552:24 warning The use of function chmod() is discouraged; use Magento\Framework\Filesystem\DriverInterface::changePermissions() or Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 576:27 error Silencing errors is discouraged; found: @chmod($entity... (Generic.PHP.NoSilencedErrors.Discouraged) 576:28 warning The use of function chmod() is discouraged; use Magento\Framework\Filesystem\DriverInterface::changePermissions() or Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 578:27 error Silencing errors is discouraged; found: @chmod($entity... (Generic.PHP.NoSilencedErrors.Discouraged) 578:28 warning The use of function chmod() is discouraged; use Magento\Framework\Filesystem\DriverInterface::changePermissions() or Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 603:23 error Silencing errors is discouraged; found: @touch($this... (Generic.PHP.NoSilencedErrors.Discouraged) 603:24 warning The use of function touch() is discouraged; use Magento\Framework\Filesystem\DriverInterface::touch() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 605:23 error Silencing errors is discouraged; found: @touch($this... (Generic.PHP.NoSilencedErrors.Discouraged) 605:24 warning The use of function touch() is discouraged; use Magento\Framework\Filesystem\DriverInterface::touch() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 633:19 error Silencing errors is discouraged; found: @file_put_contents($this... (Generic.PHP.NoSilencedErrors.Discouraged) 633:20 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 661:19 error Silencing errors is discouraged; found: @fopen($this... (Generic.PHP.NoSilencedErrors.Discouraged) 661:20 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 706:19 error Silencing errors is discouraged; found: @fread($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 706:20 warning The use of function fread() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 728:19 error Silencing errors is discouraged; found: @fgetcsv($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 728:20 warning The use of function fgetcsv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 749:19 error Silencing errors is discouraged; found: @ftell($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 749:20 warning The use of function ftell() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileTell() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 769:19 error Silencing errors is discouraged; found: @fseek($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 769:20 warning The use of function fseek() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileSeek() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 789:16 warning The use of function feof() is discouraged; use Magento\Framework\Filesystem\DriverInterface::endOfFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 801:19 error Silencing errors is discouraged; found: @fclose($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 801:20 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 826:23 error Silencing errors is discouraged; found: @fwrite($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 826:24 warning The use of function fwrite() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileWrite() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 884:19 error Silencing errors is discouraged; found: @fputcsv($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 884:20 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 905:19 error Silencing errors is discouraged; found: @fflush($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 905:20 warning The use of function fflush() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileFlush() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 927:19 error Silencing errors is discouraged; found: @flock($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 927:20 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 948:19 error Silencing errors is discouraged; found: @flock($resource... (Generic.PHP.NoSilencedErrors.Discouraged) 948:20 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 1065:16 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Copy/PathValidator.php 17:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 24:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 29:14 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Copy/TemplateFileValidator.php 6:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Test/Live/ValidateInvalidPathTest.php 19:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)