Magento Coding Standard (PHPCS) report for mageplaza/module-geoip ================================================================= Package version: 4.0.3 | Magento: 2.4.9 | Tested: 2026-05-26 58 warnings in 10 files Helper/Data.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 28:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 30:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 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) 51:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 52:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 52:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) Helper/Address.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 37:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 39:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 44:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 49:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 54:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 89:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 95:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 99:21 warning The use of function scandir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 101:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 108:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 109:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 109:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 148:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 148:22 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 171:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 172:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) etc/adminhtml/routes.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/adminhtml/system.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/acl.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) registration.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) Controller/Adminhtml/System/Config/Geoip.php 33:14 warning The code must be wrapped with a try block if the method uses system resources. (Magento2.Exceptions.TryProcessSystemResources.MissingTryCatch) 34:14 warning The code must be wrapped with a try block if the method uses system resources. (Magento2.Exceptions.TryProcessSystemResources.MissingTryCatch) 38:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 40:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 86:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 87:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 94:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 95:17 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 97:25 warning The use of function scandir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 99:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 100:26 warning The use of function scandir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 104:21 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 106:17 warning The use of function rmdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::deleteDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 109:13 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 109:64 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 110:35 warning The use of function stream_get_wrappers() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 111:17 warning The use of function stream_wrapper_restore() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 120:114 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) view/adminhtml/templates/system/config/geoip.phtml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 50:1 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 52:1 warning Line exceeds 120 characters; contains 168 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/System/Config/Geoip.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 34:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 36:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 118:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 119:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)