Magento Coding Standard (PHPCS) report for elgentos/serversideanalytics2 ======================================================================== Package version: 2.0.7 | Magento: 2.4.9 | Tested: 2026-05-27 140 warnings in 16 files Service/UserDataProvider.php 7:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 8:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 10:19 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 11:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 29:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 29:55 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 34:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 61:8 warning $number parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 65:12 warning $phoneNumber parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 73:9 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 73:10 warning Expected "} else {\n"; found "}else{\n" (PEAR.ControlStructures.ControlSignature.Found) 73:10 warning Expected 1 space after ELSE keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 81:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 83:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 83:211 warning Line exceeds 120 characters; contains 211 characters (Generic.Files.LineLength.TooLong) 83:211 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 106:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 106:30 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 118:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 118:28 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 128:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 128:26 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 158:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 175:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 176:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Plugin/SaveGaUserDataToDb.php 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/SalesOrderRepository.php 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Resolver/GAResolver.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 34:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ResourceModel/SalesOrder/Collection.php 18:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ResourceModel/SalesOrder.php 22:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/SendPurchaseEvent.php 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 41:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 115:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 124:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 138:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 149:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 150:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 152:15 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 182:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 182:53 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 234:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 234:21 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 236:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 246:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 277:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 277:26 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 279:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 281:106 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 292:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/GAClient.php 30:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 32:30 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 34:22 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 36:19 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 38:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 44:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 55:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 66:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 72:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 81:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 92:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 93:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 102:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 116:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 116:53 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 122:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 122:57 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 123:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 123:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 123:30 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 124:13 warning Expected "foreach (...) {\n"; found "foreach(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 124:13 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 124:50 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 127:17 warning Expected "foreach (...) {\n"; found "foreach(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 127:17 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 127:69 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 135:9 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 135:10 warning Expected "} else {\n"; found "}else{\n" (PEAR.ControlStructures.ControlSignature.Found) 135:10 warning Expected 1 space after ELSE keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 142:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 143:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 145:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 177:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 190:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 199:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 200:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/SalesOrder.php 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 39:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:73 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 48:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 48:132 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 76:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 96:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 115:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 139:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 139:80 warning Expected 0 spaces before closing parenthesis; 1 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose) 146:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 146:216 warning Line exceeds 120 characters; contains 221 characters (Generic.Files.LineLength.TooLong) 147:6 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 158:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 158:126 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) Model/Source/PaymentMethods.php 17:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Observer/AfterOrderPayed.php 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) Observer/AfterOrderPlaced.php 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 85:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) Setup/Patch/Data/RenameConfigPaths.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 55:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 90:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 107:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 112:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Logger/Handler.php 24:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) Config/AbstractConfigProvider.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Config/ModuleConfiguration.php 30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 45:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 50:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 55:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 60:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 65:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 70:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 79:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 91:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 98:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 103:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 108:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 113:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 138:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 148:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 166:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)