Magento Coding Standard (PHPCS) report for xhubio/magento2-invoice-api-xhub =========================================================================== Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-06-01 184 warnings in 20 files Model/Privacy.php 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 57:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 74:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) Model/InvoiceMeta.php 46:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 56:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 57:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 59:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 85:12 warning $row parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 97:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 111:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 111:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 118:68 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 123:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 136:71 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 140:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 178:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/InvoiceSequence.php 39:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 92:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Settings.php 51:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 59:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 76:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 86:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 92:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 98:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 104:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 110:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 119:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 128:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 129:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 131:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 134:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 135:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 136:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 137:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 138:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 139:150 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) 140:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 144:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 149:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 154:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 156:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 159:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 161:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 169:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) Model/Config/Source/Format.php 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Source/Country.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Source/Trigger.php 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ApiClient.php 34:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 45:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 56:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 56:12 warning $country parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 56:12 warning $format parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 77:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 85:70 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 87:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 92:140 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) 153:19 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 153:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/OrderHandler.php 44:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 63:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 95:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 111:20 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 159:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/OrderMapper.php 34:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 45:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 87:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 121:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 122:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 124:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 137:33 warning Opening brace must be the last content on the line (Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace) 137:53 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 137:55 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 153:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 178:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 179:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 181:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 215:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 216:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 218:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 265:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 266:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 268:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 302:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 307:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 308:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 310:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 324:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 332:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 349:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 359:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 368:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Observer/CustomerDeleteAfter.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Observer/OrderSaveAfter.php 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 50:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 87:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 90:13 warning The CASE body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE) 90:35 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 90:35 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 91:13 warning The CASE body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE) 91:35 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 91:35 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 92:13 warning The CASE body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE) 92:35 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 92:35 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 93:13 warning The DEFAULT body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineDEFAULT) 93:35 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 93:35 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Observer/OrderDeleteAfter.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Observer/EmailSendBefore.php 41:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 51:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 74:29 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Setup/UninstallData.php 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Controller/Adminhtml/Order/Generate.php 34:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 44:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Controller/Adminhtml/Order/Download.php 45:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 57:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 58:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 71:29 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 86:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 88:27 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 90:13 warning The CASE body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE) 90:25 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 90:25 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 91:13 warning The CASE body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE) 91:25 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 91:25 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 92:13 warning The DEFAULT body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineDEFAULT) 92:25 warning Terminating statement must be on a line by itself (PSR2.ControlStructures.SwitchDeclaration.BreakNotNewLine) 92:25 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 96:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) view/adminhtml/templates/order/invoice_xhub_box.phtml 18:57 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 24:53 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 25:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 28:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 28:120 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 28:167 warning Line exceeds 120 characters; contains 178 characters (Generic.Files.LineLength.TooLong) 29:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 29:112 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 29:151 warning Line exceeds 120 characters; contains 162 characters (Generic.Files.LineLength.TooLong) 30:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 30:113 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 30:153 warning Line exceeds 120 characters; contains 164 characters (Generic.Files.LineLength.TooLong) 32:53 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 32:118 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 32:162 warning Line exceeds 120 characters; contains 173 characters (Generic.Files.LineLength.TooLong) 34:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 34:118 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 34:163 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 37:86 warning Using escapeUrl on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 37:124 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 38:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 40:86 warning Using escapeUrl on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 40:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 41:73 warning Using escapeJs on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 41:179 warning Line exceeds 120 characters; contains 183 characters (Generic.Files.LineLength.TooLong) 42:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 46:44 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 48:86 warning Using escapeUrl on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 48:124 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 49:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 54:1 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 55:92 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 55:136 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) 57:53 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 58:54 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 59:55 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 60:56 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 61:60 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) Block/Adminhtml/Order/InvoiceXhubBlock.php 38:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 52:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 59:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 77:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 82:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 93:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 100:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Block/Adminhtml/System/Config/EffectiveConfigField.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 62:74 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 62:145 warning Line exceeds 120 characters; contains 145 characters (Generic.Files.LineLength.TooLong) 63:54 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 63:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 70:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)