Magento Coding Standard (PHPCS) report for iwoca/iwocapay-magento ================================================================= Package version: 2.9.2 | Magento: 2.4.9 | Tested: 2026-10-06 2 errors, 69 warnings in 20 files Plugin/Catalog/ProductListPricePlugin.php 46:274 warning Line exceeds 120 characters; contains 274 characters (Generic.Files.LineLength.TooLong) Plugin/Config/ValidateBannerDurationsOnSave.php 80:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Helper/PageIdentifier.php 23:1 error Each enum must be in a file by itself (PSR1.Classes.ClassDeclaration.MultipleClasses) 48:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 70:24 warning The use of function strval() is discouraged; use (string) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Config.php 89:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 122:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 133:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 148:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) 240:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 260:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 280:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 319:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 320:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 321:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 336:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 341:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) 397:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 467:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Model/IntegrationEventService.php 72:13 warning The use of function register_shutdown_function() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/IwocaOrderLocator.php 35:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 51:16 warning The use of function addcslashes() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Config/Checkout/ConfigProvider.php 52:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Model/Config/Source/Mode.php 30:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Model/Config/Source/PaymentTerms.php 48:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Model/EventReportPolicy.php 55:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Observer/CustomerReturnObserver.php 137:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 169:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 173:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 178:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 185:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 187:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 194:200 warning Line exceeds 120 characters; contains 200 characters (Generic.Files.LineLength.TooLong) 196:9 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 196:10 warning Expected "} else {\n"; found "}else {\n" (PEAR.ControlStructures.ControlSignature.Found) 199:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 209:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 218:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) Controller/Process/Callback.php 197:116 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 353:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Controller/Process/BlockIwocaEmail.php 14:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Controller/Process/CreateOrder.php 82:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 241:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 300:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) Controller/Banner/Pricing.php 85:42 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) view/frontend/web/template/payment/iwocapay/form.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) Api/Request/CreateOrderPayloadInterface.php 76:1 warning The closing brace for the interface must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Cron/CancelAbandonedOrders.php 21:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 42:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 82:85 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 88:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong) 118:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 139:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 181:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 185:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong) 242:151 warning Line exceeds 120 characters; contains 151 characters (Generic.Files.LineLength.TooLong) Cron/ReconcileLostPayments.php 93:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 127:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 133:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong) 143:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 174:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 192:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 209:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 214:157 warning Line exceeds 120 characters; contains 157 characters (Generic.Files.LineLength.TooLong) 217:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 223:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 228:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 241:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 246:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 298:155 warning Line exceeds 120 characters; contains 155 characters (Generic.Files.LineLength.TooLong) Block/PdpPriceBanner.php 61:264 warning Line exceeds 120 characters; contains 264 characters (Generic.Files.LineLength.TooLong)