Magento Coding Standard (PHPCS) report for nofraud/connect ========================================================== Package version: 1.7.0 | Magento: 2.4.9 | Tested: 2026-05-26 1 error, 89 warnings in 14 files Plugin/PaymentFailuresPlugin.php 13:3 warning Line indented incorrectly; expected at least 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.Incorrect) 14:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 16:3 warning Line indented incorrectly; expected at least 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.Incorrect) 16:11 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 23:3 warning Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 23:10 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 24:1 warning Multi-line function declaration not indented correctly; expected 6 spaces but found 4 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 25:1 warning Multi-line function declaration not indented correctly; expected 6 spaces but found 4 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 26:3 warning Line indented incorrectly; expected at least 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.Incorrect) 27:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 28:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 29:3 warning Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 40:3 warning Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 40:130 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 40:130 error The 'null' type can only be used as part of a union type in PHP 8.1 or earlier (PHPCompatibility.FunctionDeclarations.NewReturnTypeDeclarations.NonUnionNull) 41:3 warning Line indented incorrectly; expected at least 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.Incorrect) 42:5 warning Line indented incorrectly; expected 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 43:7 warning Line indented incorrectly; expected at least 12 spaces, found 6 (Generic.WhiteSpace.ScopeIndent.Incorrect) 44:7 warning Line indented incorrectly; expected at least 12 spaces, found 6 (Generic.WhiteSpace.ScopeIndent.Incorrect) 45:5 warning Line indented incorrectly; expected 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 46:7 warning Line indented incorrectly; expected at least 12 spaces, found 6 (Generic.WhiteSpace.ScopeIndent.Incorrect) 47:5 warning Line indented incorrectly; expected 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 54:5 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 57:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 58:3 warning Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) Helper/Config.php 30:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 251:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 270:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 275:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Helper/Data.php 104:27 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 121:26 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 138:27 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 159:27 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Helper/RefundVoid.php 30:8 warning $context parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 30:8 warning $dirReader parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 33:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 33:12 warning $logger parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 74:149 warning Line exceeds 120 characters; contains 149 characters (Generic.Files.LineLength.TooLong) 100:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) 103:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Helper/Version.php 14:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 47:32 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Helper/OrderHelper.php 5:1 warning There must be one blank line after the last USE statement; 2 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 59:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/CronFrequency.php 14:36 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 15:94 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 16:94 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 17:96 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 18:96 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 19:96 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 20:91 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 21:91 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 22:91 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 23:91 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 24:93 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 25:93 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) Model/Config/Source/NoFraudOrderStatus.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) Observer/SalesOrderPaymentPlaceEnd.php 197:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Order/Processor.php 193:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 227:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) Api/Request/Handler/AbstractHandler.php 50:46 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) Api/RequestHandler.php 18:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 56:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 68:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 78:1 warning Blank lines are not allowed in a multi-line function declaration (Squiz.Functions.MultiLineFunctionDeclaration.EmptyLine) 159:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 285:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) 286:1 warning Multi-line function call not indented correctly; expected 8 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent) 504:24 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 633:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 656:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Cron/Refund.php 89:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 111:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 117:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 119:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 124:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/System/Config/Fieldset/Version.php 17:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 30:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 31:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 43:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 55:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 59:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 60:32 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 66:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 71:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)