Magento Coding Standard (PHPCS) report for elgentos/magento2-varnish-extended ============================================================================= Package version: 2.1.0 | Magento: 2.4.9 | Tested: 2026-10-05 32 warnings in 11 files Model/PurgeCache.php 20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/Notifications.php 25:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Config.php 84:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) Model/Varnish/VCLTemplateLocator.php 32:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) Model/TemplateFactory.php 30:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/MarketingParameters/Notification.php 17:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 19:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 33:1 warning Multi-line function call not indented correctly; expected 8 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent) 36:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Model/MarketingParameters/Events/EventAbstract.php 18:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 43:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/MarketingParameters/Validator.php 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 21:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 56:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) Model/TestFixtures/CustomerFixtures.php 45:12 warning $spec parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 56:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 98:12 warning $state parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 133:13 warning $entry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 148:13 warning $customer parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Console/Command/GenerateVclCommand.php 180:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 187:156 warning Line exceeds 120 characters; contains 156 characters (Generic.Files.LineLength.TooLong) 188:160 warning Line exceeds 120 characters; contains 160 characters (Generic.Files.LineLength.TooLong) 189:160 warning Line exceeds 120 characters; contains 160 characters (Generic.Files.LineLength.TooLong) 190:160 warning Line exceeds 120 characters; contains 160 characters (Generic.Files.LineLength.TooLong) Console/Command/TestFixturesCommand.php 49:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 59:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 101:9 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 117:40 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 120:56 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 122:13 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 157:14 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 161:51 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)