Magento Coding Standard (PHPCS) report for magefan/module-geoip =============================================================== Package version: 2.3.6 | Magento: 2.4.9 | Tested: 2026-07-13 1 error, 139 warnings in 17 files Model/IpToCountryRepository.php 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 89:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 102:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 104:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 108:24 warning Line indented incorrectly; expected at least 24 spaces, found 23 (Generic.WhiteSpace.ScopeIndent.Incorrect) 109:24 warning Line indented incorrectly; expected at least 24 spaces, found 23 (Generic.WhiteSpace.ScopeIndent.Incorrect) 126:81 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 129:27 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 138:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 139:25 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 150:19 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 150:41 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 150:42 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 159:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 159:30 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 168:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 168:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 170:12 warning Expected "function abc(...)"; found "function abc(...)" (Squiz.Functions.FunctionDeclaration.Found) 170:12 warning Expected 1 space after FUNCTION keyword; 2 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) Model/Config.php 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 31:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 32:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 32:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 33:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 45:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 46:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 46:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/IpToRegionRepository.php 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 79:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 86:12 warning Line indented incorrectly; expected at least 12 spaces, found 11 (Generic.WhiteSpace.ScopeIndent.Incorrect) 93:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 94:21 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 105:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 105:37 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 105:38 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 113:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 113:30 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 122:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 122:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 124:12 warning Expected "function abc(...)"; found "function abc(...)" (Squiz.Functions.FunctionDeclaration.Found) 124:12 warning Expected 1 space after FUNCTION keyword; 2 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) Model/GeoIpDatabase/MaxMind.php 11:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 14:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 16:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 21:5 warning Constants must have short description if they add information beyond what the constant name supplies. (Magento2.Commenting.ConstantsPHPDocFormatting.MissingConstantPHPDoc) 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 23:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 80:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 81:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 85:15 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 88:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 96:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 97:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 109:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 110:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 120:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 121:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 122:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 124:23 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 126:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 129:26 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 131:130 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 131:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 134:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 139:19 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 140:18 warning The use of function fwrite() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileWrite() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 141:135 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong) 143:13 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 168:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 171:19 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 173:13 warning The use of function curl_setopt_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 173:36 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 181:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 189:26 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 196:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 216:13 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Setup/Patch/Data/DropTable.php 15:7 warning Expected 1 space after class name; 2 found (PSR2.Classes.ClassDeclaration.SpaceAfterName) 15:18 warning Expected 1 space before implements keyword; 2 found (PSR2.Classes.ClassDeclaration.SpaceBeforeImplements) 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) 33:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 38:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 43:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 49:31 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 49:69 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 57:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 61:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) etc/adminhtml/routes.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) 5:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 6:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 7:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) etc/module.xml 9:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Controller/Adminhtml/Maxmind/Update.php 13:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 42:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 43:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) view/adminhtml/templates/system/config/button/button.phtml 9:65 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 10:39 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) Api/IpToCountryRepositoryInterface.php 13:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 14:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 14:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 20:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:12 warning Expected "function abc(...);"; found "function abc(...);" (Squiz.Functions.FunctionDeclaration.Found) 28:12 warning Expected 1 space after FUNCTION keyword; 2 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 29:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Api/IpToRegionRepositoryInterface.php 13:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 14:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 14:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 20:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:12 warning Expected "function abc(...);"; found "function abc(...);" (Squiz.Functions.FunctionDeclaration.Found) 28:12 warning Expected 1 space after FUNCTION keyword; 2 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 29:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Cron/UpdateMaxMind.php 10: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) Block/Adminhtml/System/Config/Form/MaxMindInfo.php 41:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 51:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 54:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 58:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 59:41 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Block/Adminhtml/System/Config/Form/Button.php 11:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 13:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Block/Adminhtml/System/Config/Form/IpInfo.php 48:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 70:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Block/Adminhtml/System/Config/Form/Info.php 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 16:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 25:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 25:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/Adminhtml/System/Config/Form/CloudflareCheck.php 14:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)