Magento Coding Standard (PHPCS) report for galacticlabs/customer-group-payment-filters ====================================================================================== Package version: 1.0.1 | Magento: 2.4.9 | Tested: 2026-05-27 3 errors, 92 warnings in 10 files Plugin/Model/GroupRepository.php 30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36: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) 45:29 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 51:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 56:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 56:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 56:40 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 68:19 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 74:123 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 79:13 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 79:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 79:49 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 88:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 88:33 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 88:79 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 99:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 101:77 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 104:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 104:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 104:56 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 109:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 109:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Plugin/Block/Aminhtml/Group/Edit/FormPlugin.php 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35: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) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 65:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 90:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 90:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 92:20 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 101:27 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 123:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 128:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) 138:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/PaymentFilterRepository.php 11:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 16: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) 20:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 27:23 warning The use of the deprecated method 'getResource()' to 'load' the data detected. (Magento2.Methods.DeprecatedModelMethod.FoundDeprecatedModelMethod) 29:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 29:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 29:43 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 36:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 37:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:23 warning The use of the deprecated method 'getResource()' to 'save' the data detected. (Magento2.Methods.DeprecatedModelMethod.FoundDeprecatedModelMethod) 47:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 48:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:23 warning The use of the deprecated method 'getResource()' to 'delete' the data detected. (Magento2.Methods.DeprecatedModelMethod.FoundDeprecatedModelMethod) 55:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/PaymentFilter.php 11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 22:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 23:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 39:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 44:16 error The use of function unserialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::unserialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 49:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 50:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 55:58 error The use of function serialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::serialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 57:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/ResourceModel/PaymentFilter.php 7:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Observer/PaymentMethodAvailable.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:146 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 26:63 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 40:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 42:1 warning Multi-line function call not indented correctly; expected 8 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent) 42:49 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 43:9 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 48:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Setup/InstallSchema.php 1:1 error InstallSchema scripts are obsolete. Please use declarative schema approach in module's etc/db_schema.xml file (Magento2.Legacy.InstallUpgrade.ObsoleteInstallSchemaScript) 3:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 12:25 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) registration.php 6:6 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Api/Data/PaymentFilterInterface.php 7:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 8:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 13:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 18:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 28:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Api/PaymentFilterRepositoryInterface.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) 15:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 22:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)