Magento Coding Standard (PHPCS) report for webscale-networks/magento-varnish-api ================================================================================ Package version: 1.2.7 | Magento: 2.4.9 | Tested: 2026-05-28 78 warnings in 15 files Plugin/DisableDefaultPurgeRequest.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 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) 34:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Helper/Config.php 49:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 49:12 warning $writerInterface parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 182:9 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 182:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 185:9 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 185:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 210:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 211:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 214:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 216:9 warning Expected 1 space after SWITCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 221:27 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 233:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 234:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 243:27 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 244:15 warning Usage of ELSE IF is discouraged; use ELSEIF instead (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed) 245:27 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) Model/Config/Cron/ScheduleFrequency.php 22: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) 53:12 warning $config duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 53:12 warning $scopeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 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) 103:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 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) 113:15 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 121:32 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 122:34 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Config/Source/FlushAllEvents.php 18:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Config/Source/InvalidateEvents.php 18:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Config/Source/Cron/Frequency.php 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 19:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 27:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Controller/Adminhtml/Purge/Url.php 16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 27:13 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 27:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 30:13 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 30:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 34:13 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 34:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) view/adminhtml/templates/system/cache/additional.phtml 29:154 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong) 30:219 warning Line exceeds 120 characters; contains 223 characters (Generic.Files.LineLength.TooLong) 38:1 warning Line exceeds 120 characters; contains 173 characters (Generic.Files.LineLength.TooLong) 47:1 warning Line exceeds 120 characters; contains 151 characters (Generic.Files.LineLength.TooLong) view/adminhtml/web/css/source/_module.less 1:1 warning File appears to be minified and cannot be processed (Internal.Tokenizer.Exception) Cron/CacheFlushScheduled.php 15: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 @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 29:12 warning $cacheConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 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) 42:31 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 44:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 57:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) Block/Adminhtml/Form/Renderer/Config/ScheduleEveryFieldComment.php 18:8 warning $config parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 18:8 warning $data parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 21:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 30:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 31:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 31:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/Adminhtml/Form/Renderer/Config/ScheduleEveryFieldConfig.php 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 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) 29:66 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) Block/System/Config/Scheduled.php 36:13 warning Expected 0 spaces before closing parenthesis; newline found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 36:16 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) Block/System/Config/SettingsAbstract.php 43:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 51: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) Block/System/Cache/Additional.php 47:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)