Magento Coding Standard (PHPCS) report for magekey/module-customer-restriction ============================================================================== Package version: 2.1.4 | Magento: 2.4.9 | Tested: 2026-05-27 1 error, 28 warnings in 11 files Plugin/AccountManagement.php 30:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 32:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 43:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 45:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Helper/Data.php 12: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) 53:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 87:29 error The use of function unserialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::unserialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) Model/Config/Source/RestrictionConditions.php 11:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Restriction/Pool.php 23:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 23:12 warning $observerFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Restriction/Login/Email.php 54:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) Model/Restriction/Registration/Email.php 54:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) Observer/CheckoutSubmitBefore.php 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) 33:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) etc/frontend/di.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/module.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/di.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) view/adminhtml/web/css/source/_module.less 6:1 warning Selector contains uppercase symbols (Magento2.Less.TypeSelectors.UpperCaseSelector) 6:1 warning CSS class name does not follow class naming requirements: MKL (Magento2.Less.ClassNaming.NotAllowedSymbol) 12:1 warning Id selector is used (Magento2.Less.AvoidId.IdSelectorUsage) 13:5 warning CSS class name does not follow class naming requirements: MKL (Magento2.Less.ClassNaming.NotAllowedSymbol) 14:1 warning Line indented incorrectly; expected 4 spaces, found 8 (Magento2.Less.Indentation.Incorrect) 15:1 warning Line indented incorrectly; expected 4 spaces, found 8 (Magento2.Less.Indentation.Incorrect) 23:10 warning Style definitions must end with a semicolon (Magento2.Less.SemicolonSpacing.NotAtEnd) 24:13 warning CSS class name does not follow class naming requirements: MKL (Magento2.Less.ClassNaming.NotAllowedSymbol) 25:1 warning Line indented incorrectly; expected 12 spaces, found 16 (Magento2.Less.Indentation.Incorrect) 26:1 warning Line indented incorrectly; expected 12 spaces, found 16 (Magento2.Less.Indentation.Incorrect)