Magento Coding Standard (PHPCS) report for goat/the-cache-warmer ================================================================ Package version: V1.0.6 | Magento: 2.4.9 | Tested: 2026-05-27 6 errors, 181 warnings in 27 files Service/UrlParser.php 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 38:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 40:12 warning Function's nesting level (7) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 45:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 46:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 59:23 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 62:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 65:29 warning The use of function fgets() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 75:33 error Silencing errors is discouraged; found: @preg_match($regexPattern... (Generic.PHP.NoSilencedErrors.Discouraged) 115:21 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 150:13 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 166:22 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 167:21 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 173:37 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 176:21 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 180:17 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 184:21 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 187:17 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 207:30 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 211:35 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 217:25 warning The use of function fgetcsv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 219:41 warning The use of function fgetcsv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 225:25 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 234:25 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 235:33 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 248:22 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 249:21 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 255:37 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 258:21 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 262:17 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 267:25 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 271:17 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 278:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 280:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 285:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 287:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 291:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 297:23 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Service/LockManager.php 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Service/UrlCsvGenerator.php 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 55:18 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 56:17 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 64:26 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 67:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 71:13 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 74:13 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 76:13 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 81:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 83:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 97:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 103:23 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Service/SitemapParser.php 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 79:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 125:26 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 126:25 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 133:34 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 136:25 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 140:21 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 144:25 warning The use of function fputcsv() is discouraged; use Magento\Framework\Filesystem\DriverInterface::filePutCsv() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 147:21 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 149:103 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 149:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 151:19 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 152:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 154:19 warning Empty FINALLY statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFinally) 158:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 221:38 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 222:30 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 228:34 warning The use of function stream_context_create() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 230:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 233:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 250:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 251:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 258:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 273:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 291:18 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 296:22 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 299:21 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 300:21 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 305:90 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Plugin/CacheFlushPlugin.php 65:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) Plugin/FastlyPurgeCachePlugin.php 123:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) Model/Config.php 38:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 41:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 43:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 44:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 46:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 51:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 52:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 54:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 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) 62:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 74:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 75:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 77:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 90:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 91:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 93:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 103:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 113:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 123:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 133:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 153:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 163:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 173:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 183:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 189:20 error Silencing errors is discouraged; found: @unserialize($value... (Generic.PHP.NoSilencedErrors.Discouraged) 189:21 error The use of function unserialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::unserialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) Model/CsvFileType.php 14:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Model/CacheWarmer.php 24:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 29:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 32:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 34:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 50:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 56:35 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 74:152 warning Line exceeds 120 characters; contains 152 characters (Generic.Files.LineLength.TooLong) 101:13 warning The use of function escapeshellcmd() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 102:13 warning The use of function escapeshellcmd() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 103:13 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 134:13 error The use of function exec() is forbidden; use \Magento\Framework\Shell::execute() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) Model/JsonFileType.php 14:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Console/ReleaseLockCommand.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 45:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 47:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/WarmupFromSitemapCommand.php 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 50:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 59:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 61:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 87:50 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 100:91 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 100:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 103:75 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 103:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) Console/WarmupCommand.php 36:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 38:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 52:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 76:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 90:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 100:22 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 156:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) Logger/Handler.php 24:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) Logger/Logger.php 11:38 warning Opening brace of a class must be on the line after the definition (PSR2.Classes.ClassDeclaration.OpenBraceNewLine) 11:39 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Controller/Adminhtml/Config/Preview.php 17:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 59:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) view/adminhtml/templates/system/config/form/field/preview-button.phtml 10:17 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 32:35 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 44:1 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) Config/Backend/Serialized/ArraySerialized.php 22:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 30:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 56:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Api/UrlParserInterface.php 32:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Api/CacheWarmerInterface.php 18:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) MessageQueue/Consumer/CacheWarmup.php 16:1 error Readonly classes are not supported in PHP 8.1 or earlier. (PHPCompatibility.Classes.NewReadonlyClasses.Found) 27:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 49:17 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 54:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Cron/WarmupFromConfig.php 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 63:22 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 68:79 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 74:92 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 77:59 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Cron/WarmupFromNginx.php 39:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 67:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Cron/WarmupFromSitemap.php 38:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 76:83 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 82:96 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 85:63 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Test/Unit/UrlParserTest.php 66:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 67:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 68:134 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong) 69:136 warning Line exceeds 120 characters; contains 160 characters (Generic.Files.LineLength.TooLong) 111:146 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 112:147 warning Line exceeds 120 characters; contains 147 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/Config/Form/Field/IgnoredUserAgent.php 15:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/Adminhtml/System/Config/Form/Field/PreviewButton.php 17:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 23:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)