Magento Coding Standard (PHPCS) report for magestyapps/module-web-images ======================================================================== Package version: 1.2.1 | Magento: 2.4.9 | Tested: 2026-05-26 142 warnings in 13 files Plugin/File/Validator/NotProtectedExtensionPlugin.php 33:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/Product/Gallery/ProcessorPlugin.php 54:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 62:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 63:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 64:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 65:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 66:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 67:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 76:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 77:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 78:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 79:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 91:21 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Plugin/Design/Backend/ImagePlugin.php 33:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/Controller/Adminhtml/Wysiwyg/Images/ThumbnailPlugin.php 70:37 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Plugin/Controller/Adminhtml/Wysiwyg/DirectivePlugin.php 14:88 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 78:37 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Plugin/Wysiwyg/Images/StoragePlugin.php 34:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 52:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 53:8 warning false is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) Plugin/Hyva/Theme/Model/InjectImageDimensionsPlugin.php 37:139 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) Plugin/Swatches/Helper/MediaPlugin.php 54:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 68:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 75:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 76:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 97:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) Helper/ImageHelper.php 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 19:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 24:33 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 25:34 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/AssetFactory.php 66:26 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 67:27 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/File/UploaderFactory.php 12:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) Model/Image/Adapter/Gd2.php 96:36 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 101:27 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 112:32 warning The use of function call_user_func() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 127:16 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 135:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 136:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 145:20 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 175:22 warning The use of function getimagesize() is discouraged; use getimagesizefromstring() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 235:33 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 237:33 warning The use of function imagecreate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 240:17 warning The use of function imagecopy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 247:9 warning The use of function imageinterlace() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 269:9 warning The use of function call_user_func_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 281:9 warning The use of function ob_start() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 282:9 warning The use of function call_user_func() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 346:18 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 348:14 warning The use of function imagefill() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 363:14 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 366:34 warning The use of function imagecolorallocatealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 372:14 warning The use of function imagefill() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 376:14 warning The use of function imagesavealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 394:59 warning The use of function imagecolorstotal() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 395:54 warning The use of function imagecolorsforindex() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 396:33 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 401:14 warning The use of function imagefill() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 404:9 warning The use of function imagecolortransparent() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 415:21 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 426:16 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 457:33 warning The use of function imagecolortransparent() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 499:25 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 501:25 warning The use of function imagecreate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 513:13 warning The use of function imagecopyresampled() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 540:25 warning The use of function imagerotate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 562:22 warning The use of function call_user_func() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 571:9 warning The use of function imagedestroy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 607:14 warning The use of function imageistruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 618:61 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 619:62 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 627:17 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 628:17 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 632:50 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 640:17 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 641:17 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 652:17 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 653:17 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 657:50 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 658:51 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 666:17 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 667:17 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 671:51 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 679:17 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 680:17 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 693:17 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 694:17 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 700:57 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 701:60 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 709:25 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 710:25 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 713:33 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 716:29 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 733:25 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 734:9 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 735:16 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 736:9 warning The use of function imagecolortransparent() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 737:9 warning The use of function imagefilledrectangle() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 738:9 warning The use of function imagesavealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 739:9 warning The use of function imagecopyresampled() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 748:13 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 749:13 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 773:19 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 779:9 warning The use of function imagecopyresampled() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 819:33 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 820:34 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 839:13 warning The use of function imagedestroy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 851:23 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 852:9 warning The use of function imagecolortransparent() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 853:9 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 854:9 warning The use of function imagesavealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 866:23 warning The use of function imagecolorat() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 867:16 warning The use of function imagecolorsforindex() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 902:18 warning The use of function imagefontwidth() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 903:19 warning The use of function imagefontheight() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 907:18 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 908:9 warning The use of function imagestring() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 923:24 warning The use of function imagettfbbox() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 929:18 warning The use of function imagecolorallocate() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 930:19 warning The use of function imagettftext() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 955:18 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 956:23 warning The use of function imagecolorallocatealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 958:9 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 959:9 warning The use of function imagesavealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 961:9 warning The use of function imagefill() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 994:27 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 997:20 warning The use of function imagecopy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1004:18 warning The use of function imagesx() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1005:18 warning The use of function imagesy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1010:19 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1015:23 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1019:23 warning The use of function imagesavealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1023:23 warning The use of function imagecopy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1028:23 warning The use of function imagefilter() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1032:23 warning The use of function imagealphablending() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1036:23 warning The use of function imagesavealpha() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1040:19 warning The use of function imagecopy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1041:9 warning The use of function imagedestroy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1055:21 warning The use of function imagecreatetruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 1061:9 warning The use of function imagecopy() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) view/adminhtml/web/css/source/_module.less 7:22 warning Use single quotes (Magento2.Less.Quotes.DoubleQuotes)