Magento Coding Standard (PHPCS) report for hryvinskyi/magento2-theme-assets =========================================================================== Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-05-27 2 errors, 38 warnings in 6 files ViewModel/AssetPathResolver.php 55:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 56:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 60:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 62:31 error The use of function serialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::serialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) ViewModel/AssetRenderer.php 90:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 91:15 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 94:13 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 118:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 124:13 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 155:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 159:13 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 180:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 185:13 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 195:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 239:29 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) Model/AssetContentStrategyPool.php 83:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Model/AssetContentStrategy/FilesystemServiceStrategy.php 38:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 38:39 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 39:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Api/AssetRendererInterface.php 48:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 49:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 53:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 58:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 62:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 63:15 warning Line exceeds 120 characters; contains 169 characters (Generic.Files.LineLength.TooLong) 67:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 67:12 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 79:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 82:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 87:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:12 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Api/AssetPathResolverInterface.php 22:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 23:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 27:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 32:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 33:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 37:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 42:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 43:15 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 47:12 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)