Magento Coding Standard (PHPCS) report for genaker/imageaibundle ================================================================ Package version: 1.0.8 | Magento: 2.4.9 | Tested: 2026-05-27 47 errors, 439 warnings in 28 files app/code/Genaker/ImageAIBundle/ViewModel/ResizeUrl.php 19:3 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 29:40 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) app/code/Genaker/ImageAIBundle/Service/GeminiImageModificationService.php 22:33 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 23:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 24:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 25:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 27:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 91:13 warning Line exceeds 120 characters; contains 152 characters (Generic.Files.LineLength.TooLong) 160:25 warning The use of function tempnam() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 207:33 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 244:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 283:28 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 306:28 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 318:19 warning Empty ELSEIF statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedElseif) 374:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Service/GeminiClientFactory.php 21:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 73:37 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 81:23 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 86:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Service/ResizeUrlGenerationService.php 23:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 24:26 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 58:50 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 181:16 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 210:35 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 227:33 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) app/code/Genaker/ImageAIBundle/Service/LockManager.php 32:32 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 33:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 34:17 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 35:19 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 36:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 169:34 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 199:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Service/GeminiVideoService.php 27:33 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 28:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 31:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 32:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 33:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 99:70 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 112:17 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 128:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 132:29 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 163:21 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 179:82 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 212:122 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 221:13 warning Line indented incorrectly; expected 8 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 245:17 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 283:9 warning Closing brace indented incorrectly; expected 12 spaces, found 8 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 327:18 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 332:34 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 338:33 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 345:64 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 348:33 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 392:77 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 392:180 warning Line exceeds 120 characters; contains 180 characters (Generic.Files.LineLength.TooLong) 408:33 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 408:55 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 409:21 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 434:33 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 506:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 518:77 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 518:180 warning Line exceeds 120 characters; contains 180 characters (Generic.Files.LineLength.TooLong) app/code/Genaker/ImageAIBundle/Service/GeminiVideoDirectService.php 21:3 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 24:3 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 33:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 34:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 35:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 36:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 37:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 38:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 39:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 40:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 60:35 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 61:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 102:161 warning Line exceeds 120 characters; contains 165 characters (Generic.Files.LineLength.TooLong) 107:17 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 142:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 146:29 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 220:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 281:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 292:12 warning Function's nesting level (7) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 292:148 warning Line exceeds 120 characters; contains 152 characters (Generic.Files.LineLength.TooLong) 328:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 379:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) 380:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 381:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 382:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 386:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 390:191 warning Line exceeds 120 characters; contains 191 characters (Generic.Files.LineLength.TooLong) 394:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 410:45 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 444:17 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 459:105 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 491:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) 506:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 559:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 599:18 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 604:34 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 615:28 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 622:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 629:37 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 635:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 638:130 warning The use of function gettype() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 638:146 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 655:76 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 656:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 669:15 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 671:9 warning The use of function curl_setopt_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 683:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 684:21 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 685:18 warning The use of function curl_error() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 686:21 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 687:9 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 721:71 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 729:75 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 759:22 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 778:77 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 778:180 warning Line exceeds 120 characters; contains 180 characters (Generic.Files.LineLength.TooLong) 794:33 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 794:55 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 795:21 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 814:37 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 819:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 826:23 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 847:25 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 852:166 warning Line exceeds 120 characters; contains 166 characters (Generic.Files.LineLength.TooLong) 872:36 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 877:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 884:22 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 910:33 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 930:13 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 930:129 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 945:16 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 958:34 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 962:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 962:44 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 1021:18 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 1025:34 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) app/code/Genaker/ImageAIBundle/Service/ImageResizeService.php 23:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 25:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 27:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 28:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:45 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:40 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 31:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 51:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 53:125 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) 67:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 69:25 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 76:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 84:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 98:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 113:25 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 166:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 168:38 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 169:17 error Silencing errors is discouraged; found: @unlink($workingImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 169:18 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 172:25 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 192:34 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 194:13 error Silencing errors is discouraged; found: @unlink($workingImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 194:14 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 199:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 204:21 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 210:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 218:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 220:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 224:16 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 228:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 230:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 234:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 256:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 265:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 274:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 287:156 warning Line exceeds 120 characters; contains 156 characters (Generic.Files.LineLength.TooLong) 321:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 337:16 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 351:128 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 390:23 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 407:25 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 408:18 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 416:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 417:17 error Silencing errors is discouraged; found: @unlink($tempImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 417:18 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 507:21 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 508:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 509:18 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 509:51 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 515:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 569:21 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 570:14 warning The use of function is_writable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isWritable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 579:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 594:22 warning The use of function imagewebp() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 615:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 616:26 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 616:33 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 617:28 warning The use of function is_writable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isWritable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 617:40 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 618:28 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 618:35 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 618:85 warning The use of function scandir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 618:93 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 618:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 619:177 warning Line exceeds 120 characters; contains 177 characters (Generic.Files.LineLength.TooLong) 631:33 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 642:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Plugin/MediaStorage/App/MediaPlugin.php 36:29 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 39:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 41:26 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 49:71 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 73:21 warning The use of function parse_str() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 121:79 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 142:23 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) app/code/Genaker/ImageAIBundle/Helper/ImageResizeUrl.php 1:1 warning A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 27 and the first side effect is on line 23. (PSR1.Files.SideEffects.FoundWithSymbols) 18:3 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 23:1 warning Possible parse error: class missing opening or closing brace (PSR2.Classes.ClassDeclaration.MissingBrace) 23:1 warning Possible parse error: class missing opening or closing brace (Squiz.Classes.ValidClassName.MissingBrace) 25:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 27:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:12 warning Consider putting global function "__construct" in a static class (Squiz.Functions.GlobalFunction.Found) 27:12 warning Function name "__construct" is discouraged; PHP has reserved all function names with a double underscore prefix for future use. (PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore) 30:9 error "$this" can no longer be used in a plain function or method since PHP 7.1. (PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext) 31:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 41:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 41:12 warning Consider putting global function "getResizeUrl" in a static class (Squiz.Functions.GlobalFunction.Found) 43:16 error "$this" can no longer be used in a plain function or method since PHP 7.1. (PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext) 44:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 53:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 53:12 warning Consider putting global function "getBase64Url" in a static class (Squiz.Functions.GlobalFunction.Found) 55:16 error "$this" can no longer be used in a plain function or method since PHP 7.1. (PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext) 56:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 65:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 65:12 warning Consider putting global function "getRegularUrl" in a static class (Squiz.Functions.GlobalFunction.Found) 67:16 error "$this" can no longer be used in a plain function or method since PHP 7.1. (PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext) 68:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 68:5 warning Expected 1 blank line at end of file; 3 found (PSR2.Files.EndFileNewline.TooMany) 71:1 error PHP syntax error: Unclosed '{' on line 24 (Generic.PHP.Syntax.PHPSyntax) app/code/Genaker/ImageAIBundle/Model/ResizeResult.php 18:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:17 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 21:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 22:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 23:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 41:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 51:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 56:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 61:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 66:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 70:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Setup/InstallData.php 1:1 error InstallData scripts are obsolete. Please use data patches approach in module's Setup/Patch/Data dir (Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript) 40:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 48:26 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 48:34 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 52:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 62:26 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 70:17 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) app/code/Genaker/ImageAIBundle/Console/Command/GenerateVideoPython.php 29:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 35:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 37:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 38:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 39:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 40:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 41:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 98:17 warning Line exceeds 120 characters; contains 212 characters (Generic.Files.LineLength.TooLong) 141:17 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 216:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 235:24 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 235:66 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 239:47 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 241:47 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 246:39 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 251:39 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 255:34 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 259:39 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 279:45 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 284:47 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 288:42 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 292:46 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 308:24 error The use of function proc_open() is forbidden (Magento2.Security.InsecureFunction.Found) 312:17 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 315:27 warning The use of function stream_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 316:17 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 319:27 warning The use of function stream_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 320:17 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 323:29 error The use of function proc_close() is forbidden (Magento2.Security.InsecureFunction.Found) 364:23 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 364:31 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 364:39 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 366:23 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 366:31 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 366:39 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 370:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 394:24 error The use of function shell_exec() is forbidden (Magento2.Security.InsecureFunction.Found) 411:42 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 415:17 warning The use of function is_executable() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 428:17 warning The use of function is_executable() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 449:26 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 460:27 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 460:57 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) app/code/Genaker/ImageAIBundle/Console/Command/GenerateVideo.php 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 35:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 157:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 164:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) app/code/Genaker/ImageAIBundle/registration.php 22:33 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 22:68 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 22:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 25:19 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 38:19 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 38:48 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 39:35 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 44:9 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 45:9 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 46:9 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 49:9 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 52:19 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 52:48 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 53:13 warning The use of function parse_str() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 53:23 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 54:13 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 54:33 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 61:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Controller/Adminhtml/Generate/Index.php 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 28:41 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 99:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Controller/Resize/Index.php 32:41 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 33:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 34:29 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 35:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 36:21 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 37:25 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 38:38 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 55:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 56:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 62:8 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 62:133 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 66:12 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 89:28 error Silencing errors is discouraged; found: @base64_decode($base64String... (Generic.PHP.NoSilencedErrors.Discouraged) 89:29 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 95:25 warning The use of function parse_str() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 133:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) 138:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 161:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 189:20 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 225:86 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 242:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 267:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 280:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 289:68 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 307:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 312:71 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 338:68 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 362:112 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 395:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 431:23 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 459:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 473:23 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 493:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 493:44 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 496:28 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 603:16 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 618:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 674:35 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 705:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 705:42 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 710:25 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 745:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 745:43 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 766:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 771:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Controller/Resize/Ip.php 18:3 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 25:61 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) app/code/Genaker/ImageAIBundle/Api/ImageResizeServiceInterface.php 16:1 warning Interface description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 29:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 54:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) app/code/Genaker/ImageAIBundle/Test/Unit/Service/GeminiVideoDirectServiceTest.php 28:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 31:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 32:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 106:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 152:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 161:175 warning Line exceeds 120 characters; contains 175 characters (Generic.Files.LineLength.TooLong) app/code/Genaker/ImageAIBundle/Test/Unit/Service/GeminiVideoServiceTest.php 90:13 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 110:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 124:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 167:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 181:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 195:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 264:17 error Silencing errors is discouraged; found: @unlink($path... (Generic.PHP.NoSilencedErrors.Discouraged) 267:9 error Silencing errors is discouraged; found: @rmdir($dir... (Generic.PHP.NoSilencedErrors.Discouraged) app/code/Genaker/ImageAIBundle/Test/Unit/Console/Command/GenerateVideoTest.php 105:13 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 148:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 178:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 211:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 244:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 307:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 366:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 442:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 486:47 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) app/code/Genaker/ImageAIBundle/Test/Unit/Controller/Resize/IndexTest.php 212:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 276:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 320:51 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 321:52 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 346:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 420:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 423:13 error Silencing errors is discouraged; found: @unlink($originalImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) app/code/Genaker/ImageAIBundle/Test/Unit/Controller/Resize/IpTest.php 204:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 270:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) 335:13 error Silencing errors is discouraged; found: @unlink($testImagePath... (Generic.PHP.NoSilencedErrors.Discouraged) app/code/Genaker/ImageAIBundle/Test/Functional/Controller/Resize/IndexTest.php 87:13 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 133:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 176:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 206:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 211:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 242:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 283:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 568:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 592:61 error Silencing errors is discouraged; found: @unlink($path... (Generic.PHP.NoSilencedErrors.Discouraged) 594:9 error Silencing errors is discouraged; found: @rmdir($dir... (Generic.PHP.NoSilencedErrors.Discouraged) app/code/Genaker/ImageAIBundle/Test/Integration/Controller/Resize/IpCurlTest.php 80:13 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 536:61 error Silencing errors is discouraged; found: @unlink($path... (Generic.PHP.NoSilencedErrors.Discouraged) 538:9 error Silencing errors is discouraged; found: @rmdir($dir... (Generic.PHP.NoSilencedErrors.Discouraged) app/code/Genaker/ImageAIBundle/Test/Integration/Controller/Resize/VideoCurlTest.php 18:3 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 96:13 error Silencing errors is discouraged; found: @unlink($this... (Generic.PHP.NoSilencedErrors.Discouraged) 110:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 153:45 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 157:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 174:41 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 191:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 197:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 199:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 243:45 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 247:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 263:41 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 292:20 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 292:58 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 292:86 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 293:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) 293:59 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 299:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 349:7 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 387:45 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 398:20 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 398:46 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 398:57 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 399:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) 399:79 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 442:61 error Silencing errors is discouraged; found: @unlink($path... (Generic.PHP.NoSilencedErrors.Discouraged) 444:9 error Silencing errors is discouraged; found: @rmdir($dir... (Generic.PHP.NoSilencedErrors.Discouraged) app/code/Genaker/ImageAIBundle/Test/Integration/Controller/Resize/IndexTest.php 60:49 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 102:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 123:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 187:49 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 243:49 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 312:49 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 342:76 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)