Magento Coding Standard (PHPCS) report for magepow/autologin ============================================================ Package version: 1.0.2 | Magento: 2.4.9 | Tested: 2026-06-01 133 warnings in 8 files Plugin/Customer/Model/SessionPlugin.php 11:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 12:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 17: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) 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) 32:16 warning Line indented incorrectly; expected at least 16 spaces, found 15 (Generic.WhiteSpace.ScopeIndent.Incorrect) 33:16 warning Line indented incorrectly; expected at least 16 spaces, found 15 (Generic.WhiteSpace.ScopeIndent.Incorrect) 36:14 warning Line indented incorrectly; expected at least 16 spaces, found 13 (Generic.WhiteSpace.ScopeIndent.Incorrect) 41:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 43:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 43:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Plugin/User/Model/UserPlugin.php 11:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 12:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 17: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) 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) 30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) 38:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Plugin/Backend/Model/AuthPlugin.php 17:5 warning Expected 5 spaces before asterisk; 4 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 19:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 21:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 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) 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) 45:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 45:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 45:35 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 46:80 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 47:19 warning Line indented incorrectly; expected 16 spaces, found 18 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 49:21 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 49:21 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 49:29 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 50:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 51:21 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 51:22 warning Expected "} else {\n"; found "}else{\n" (PEAR.ControlStructures.ControlSignature.Found) 51:22 warning Expected 1 space after ELSE keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 54:17 warning Closing brace indented incorrectly; expected 18 spaces, found 16 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 58:14 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 59:9 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 59:10 warning Expected "} else {\n"; found "}else{\n" (PEAR.ControlStructures.ControlSignature.Found) 59:10 warning Expected 1 space after ELSE keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 65:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 67:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Helper/Data.php 10:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 11:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 12:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 13:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 13:3 warning Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 13:10 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 14:1 warning Multi-line function declaration not indented correctly; expected 6 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 15:1 warning Multi-line function declaration not indented correctly; expected 6 spaces but found 9 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 16:1 warning Blank lines are not allowed in a multi-line function declaration (Squiz.Functions.MultiLineFunctionDeclaration.EmptyLine) 17:1 warning Multi-line function declaration not indented correctly; expected 2 spaces but found 4 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 18: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) 24:5 warning Closing brace indented incorrectly; expected 2 spaces, found 4 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:35 warning Incorrect spacing between argument "$cfg" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 25:35 warning Incorrect spacing between default value and equals sign for argument "$cfg"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 27:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 27:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 27:45 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 27:110 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:41 warning Incorrect spacing between argument "$cfg" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 31:41 warning Incorrect spacing between default value and equals sign for argument "$cfg"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 31:52 warning Incorrect spacing between argument "$value" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 31:52 warning Incorrect spacing between default value and equals sign for argument "$value"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 34:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 34:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 34:12 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 34:18 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 38:13 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 38:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 38:16 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 38:36 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 38:37 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 39:17 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 39:17 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 39:20 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 39:33 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 41:17 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 41:18 warning Expected "} else {\n"; found "}else {\n" (PEAR.ControlStructures.ControlSignature.Found) 44:14 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 49:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/Customer.php 8:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 12:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 14:1 warning Opening brace of a class must be on the line following the class declaration; found 1 line(s) (PSR2.Classes.ClassDeclaration.OpenBraceWrongLine) 15:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:6 warning Line indented incorrectly; expected 4 spaces, found 5 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 16:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 17:1 warning Multi-line function declaration not indented correctly; expected 9 spaces but found 32 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 18:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 4 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 19: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) 21:5 warning Closing brace indented incorrectly; expected 5 spaces, found 4 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 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) 27:5 warning Opening brace should be on the line after the declaration; found 1 blank line(s) (Squiz.Functions.MultiLineFunctionDeclaration.BraceSpacing) 29:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 30:8 warning Line indented incorrectly; expected 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 31:10 warning Line indented incorrectly; expected at least 12 spaces, found 9 (Generic.WhiteSpace.ScopeIndent.Incorrect) 34:10 warning Line indented incorrectly; expected at least 12 spaces, found 9 (Generic.WhiteSpace.ScopeIndent.Incorrect) 36:8 warning Line indented incorrectly; expected 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 37:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 39:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) 40:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/Admin.php 8:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Opening brace of a class must be on the line following the class declaration; found 1 line(s) (PSR2.Classes.ClassDeclaration.OpenBraceWrongLine) 15:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:6 warning Line indented incorrectly; expected 4 spaces, found 5 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 16:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 17:1 warning Multi-line function declaration not indented correctly; expected 9 spaces but found 32 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 18:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 4 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 19: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) 21:5 warning Closing brace indented incorrectly; expected 5 spaces, found 4 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 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) 27:5 warning Opening brace should be on the line after the declaration; found 1 blank line(s) (Squiz.Functions.MultiLineFunctionDeclaration.BraceSpacing) 29:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 30:8 warning Line indented incorrectly; expected 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 31:10 warning Line indented incorrectly; expected at least 12 spaces, found 9 (Generic.WhiteSpace.ScopeIndent.Incorrect) 34:10 warning Line indented incorrectly; expected at least 12 spaces, found 9 (Generic.WhiteSpace.ScopeIndent.Incorrect) 36:8 warning Line indented incorrectly; expected 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 37:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 39:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) 40:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) etc/config.xml 10:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) etc/module.xml 3:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 4:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed)