Magento Coding Standard (PHPCS) report for enanobots/m2-cloudflare-cache-cleaner ================================================================================ Package version: 2.0.0 | Magento: 2.4.9 | Tested: 2026-05-27 1 error, 63 warnings in 6 files Model/CloudFlare/CacheClient.php 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 35:22 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 37:31 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 52:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 97:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 106:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 13 (PSR2.Methods.FunctionCallSignature.Indent) 154:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 155:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 158:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) Model/Config.php 18:36 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Console/ClearCache.php 38:27 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 43:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 43:12 warning $cloudFlare parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 44:21 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 51:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 71:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 72:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:15 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 87:17 warning CASE statements must be defined using a colon (PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase) 91:21 warning Line indented incorrectly; expected 16 spaces, found 20 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 92:17 warning CASE statements must be defined using a colon (PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase) 96:21 warning Line indented incorrectly; expected 16 spaces, found 20 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 97:17 warning CASE statements must be defined using a colon (PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase) 101:21 warning Line indented incorrectly; expected 16 spaces, found 20 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 102:17 warning CASE statements must be defined using a colon (PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase) 106:21 warning Line indented incorrectly; expected 16 spaces, found 20 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 107:17 warning CASE statements must be defined using a colon (PSR2.ControlStructures.SwitchDeclaration.WrongOpenercase) 111:21 warning Line indented incorrectly; expected 16 spaces, found 20 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) registration.php 16:2 warning Expected 1 blank line at end of file; 3 found (PSR2.Files.EndFileNewline.TooMany) Api/CloudFlare/CacheClientInterface.php 25:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 26:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 34:12 warning $extraHeaders parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 38:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 39:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 43:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 45:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 48:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 54:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 59:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 65:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 66:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/Data/ConfigInterface.php 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)