Magento Coding Standard (PHPCS) report for kiyoh/reviews ======================================================== Package version: v1.2.0 | Magento: 2.4.9 | Tested: 2026-09-30 3 errors, 178 warnings in 21 files Service/ProductSyncService.php 64:12 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 165:46 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Service/ApiService.php 186:25 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 208:46 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 250:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 251:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 252:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 253:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 257:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 258:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 302:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 303:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 304:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 305:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 309:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 310:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 320:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 468:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 476:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 533:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 534:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 535:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 536:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 537:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 538:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 543:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 544:25 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 545:26 warning The use of function curl_error() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 546:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 588:40 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 589:48 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 602:35 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 603:38 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 634:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 639:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 640:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 641:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 642:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 643:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 648:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 649:25 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 650:26 warning The use of function curl_error() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 651:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 726:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 731:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 732:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 733:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 734:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 735:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 740:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 741:25 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 742:26 warning The use of function curl_error() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 743:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 809:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong) 823:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 842:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 927:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 928:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 929:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 930:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 932:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 933:25 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 934:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 976:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 977:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 978:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 979:13 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 983:25 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 984:25 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 985:13 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Helper/ProductCode.php 31:31 error Silencing errors is discouraged; found: @iconv('UTF-8'... (Generic.PHP.NoSilencedErrors.Discouraged) 43:28 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) Model/Config/Backend/ValidateCredentials.php 25:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Model/Config/Source/ProductSortOrder.php 26:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/Server.php 21:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/InvitationType.php 22:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Observer/SalesOrderSaveAfter.php 416:13 warning Avoid function calls in a FOR loop test part (Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed) 430:50 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) Observer/CatalogProductDeleteAfter.php 69:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/TestProductSyncCommand.php 106:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/TestInvitationErrorHandlingCommand.php 144:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/ValidateProductDataCommand.php 71:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 131:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 191:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 195:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 196:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 197:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 198:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 223:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 236:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Console/Command/TestApiCommand.php 112:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 131:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 132:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 134:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 135:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 136:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 137:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 140:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 141:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 143:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 144:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 145:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 146:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 149:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 150:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 153:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 154:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 157:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 158:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 159:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 160:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 161:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 162:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 163:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 164:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 165:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 166:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 169:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 170:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 173:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 174:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 177:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 178:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 179:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 180:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 181:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 182:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 183:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 184:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 185:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 186:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 187:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 188:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 189:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 190:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 191:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 191:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 192:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 193:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 194:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 195:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 196:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 197:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 198:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 199:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 200:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 201:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 336:118 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 424:43 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 424:56 warning Opening brace must be the last content on the line (Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace) 424:80 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 424:93 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 469:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 507:122 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 544:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 554:125 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 592:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 602:119 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 632:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/DebugProductSyncCommand.php 117:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 118:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 119:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 120:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 121:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 170:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/BulkProductSyncCommand.php 79:38 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 79:110 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 80:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 80:44 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 80:59 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 144:38 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 166:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/CheckConfigCommand.php 65:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 175:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Console/Command/TestOrderObserverCommand.php 93:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) registration.php 9:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Controller/Adminhtml/ProductSync/BulkSync.php 208:38 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) view/adminhtml/templates/system/config/bulk_sync_button.phtml 39:1 warning Please do not use "text/javascript" type attribute. (Magento2.Legacy.PhtmlTemplate.TextJavascriptTypeFound) 42:31 warning Using escapeJs on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 43:30 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) Block/Adminhtml/System/Config/BulkSyncButton.php 68:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)