Magento Coding Standard (PHPCS) report for zefbrito/magento2-whatsapp ===================================================================== Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-06-01 52 warnings in 10 files Model/Config/Source/Position.php 8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 12:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 15:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) whatsapp-module/Model/Config/Source/Position.php 6:1 warning Duplicate class name "Zefbrito\Whatsapp\Model\Config\Source\Position" found; first defined in /data/vendor/zefbrito/magento2-whatsapp/Model/Config/Source/Position.php on line 6 (Generic.Classes.DuplicateClassName.Found) 8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 12:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 15:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) whatsapp-module/registration.php 8:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) whatsapp-module/view/frontend/templates/whatsapp-button.phtml 9:1 warning Line indented incorrectly; expected 4 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 17:1 warning Line exceeds 120 characters; contains 1141 characters (Generic.Files.LineLength.TooLong) whatsapp-module/view/frontend/web/css/source/whatsapp-button.less 6:39 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 7:21 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 8:20 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 12:43 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 12:48 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 20:16 warning Named colours are forbidden; use hex, rgb, or rgba values instead (Squiz.CSS.NamedColours.Forbidden) 23:24 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 26:20 warning Named colours are forbidden; use hex, rgb, or rgba values instead (Squiz.CSS.NamedColours.Forbidden) 35:5 warning Level's comment does not have 2 spaces after "//" (Magento2.Less.CommentLevels.SpacesMissed) 38:19 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 43:20 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 56:5 warning Level's comment does not have 2 spaces after "//" (Magento2.Less.CommentLevels.SpacesMissed) 68:31 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) whatsapp-module/Block/WhatsappButton.php 17:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 119:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) registration.php 8:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) view/frontend/templates/whatsapp-button.phtml 9:1 warning Line indented incorrectly; expected 4 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 17:1 warning Line exceeds 120 characters; contains 1141 characters (Generic.Files.LineLength.TooLong) view/frontend/web/css/source/whatsapp-button.less 6:39 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 7:21 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 8:20 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 12:43 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound) 12:48 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 20:16 warning Named colours are forbidden; use hex, rgb, or rgba values instead (Squiz.CSS.NamedColours.Forbidden) 23:24 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 26:20 warning Named colours are forbidden; use hex, rgb, or rgba values instead (Squiz.CSS.NamedColours.Forbidden) 35:5 warning Level's comment does not have 2 spaces after "//" (Magento2.Less.CommentLevels.SpacesMissed) 38:19 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 43:20 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 56:5 warning Level's comment does not have 2 spaces after "//" (Magento2.Less.CommentLevels.SpacesMissed) 68:31 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) Block/WhatsappButton.php 8:1 warning Duplicate class name "Zefbrito\Whatsapp\Block\WhatsappButton" found; first defined in /data/vendor/zefbrito/magento2-whatsapp/whatsapp-module/Block/WhatsappButton.php on line 8 (Generic.Classes.DuplicateClassName.Found) 17:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 119:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)