Magento Coding Standard (PHPCS) report for aimanecouissi/module-mail-transport-builder-attachment ================================================================================================= Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-06-01 16 warnings in 5 files Exception/FileNotReadableException.php 25:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Model/Attachment.php 29:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Model/AttachmentTransportBuilder.php 57:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 80:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 81:14 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 81:37 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 87:21 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 88:26 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 102:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 141:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 142:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 219:41 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/AttachmentFactory.php 23:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 24:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 27:12 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Api/AttachmentTransportBuilderInterface.php 29:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong)