Magento Coding Standard (PHPCS) report for paytrail/paytrail-for-adobe-commerce
===============================================================================
Package version: 2.3.1 | Magento: 2.4.9 | Tested: 2026-10-09
8 errors, 140 warnings in 56 files
Exceptions/TransactionSuccessException.php
9:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
Exceptions/CheckoutException.php
9:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
Plugin/Model/TaxConfigPlugin.php
10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
30:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
35:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found)
35:112 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
Plugin/PreventDifferentScheduledCart.php
30:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 16 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
31:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 16 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
Model/Validation/PreventAdminActions.php
9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
Model/Token/CustomerTokensResult.php
39:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
59:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
79:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
99:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
119:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
139:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
159:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
179:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
199:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/Token/RequestData.php
33:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
41:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 31 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
Model/Token/CustomerTokensManagement.php
25:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
26:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
27:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
28:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
29:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
30:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent)
Model/OptionSource/SelectedToken.php
78:1 warning Multi-line function call not indented correctly; expected 24 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent)
79:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent)
100:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
114:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/Adapter/Adapter.php
15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
17:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
40:30 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
Model/Company/CompanyRequestData.php
8:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
11:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
12:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/RefundCallback.php
13:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
23: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/Recurring/Notify.php
36:5 warning Scope keyword "private" must be followed by a single space; found 17 (Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect)
Model/Api/ShowSubscriptionsDataProvider.php
14:13 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
19:13 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
24:13 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
29:13 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
69:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/Subscription/Email.php
14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
Model/Subscription/ActiveOrderProvider.php
32:114 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
Model/Subscription/OrderCloner.php
129:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/Subscription/SubscriptionCreate.php
75:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
76:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
77:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
92:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent)
92:73 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma)
92:126 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine)
92:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong)
103:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
112:17 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found)
112:92 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
Model/Subscription/SubscriptionLink.php
43:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
52:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
61:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/Subscription/SubscriptionLinkRepository.php
161:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
174:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
175:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
185:9 warning Expected 1 space after closing brace; newline found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace)
192:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
204:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
211:30 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma)
211:31 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments)
221:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
223:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Model/Subscription/PaymentCount.php
38:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/Email/Order/PendingOrderEmailConfirmation.php
35:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Observer/RestoreCart.php
15:13 warning There must be 1 space after the property type declaration; 7 found (PSR2.Classes.PropertyDeclaration.SpacingAfterType)
Setup/Patch/Data/NotifyTaxConfigPatch.php
5:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter)
43:13 warning Line exceeds 120 characters; contains 184 characters (Generic.Files.LineLength.TooLong)
Setup/Patch/Data/InstallProfilesPatch.php
12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
Setup/Patch/Data/AddRecurringPaymentScheduleAttribute.php
56:25 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
Ui/DataProvider/RecurringPayment.php
37:18 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
Ui/DataProvider/RecurringProfileForm.php
87:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Logger/Response.php
10:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
19:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar)
Logger/Request.php
10:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
19:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar)
Controller/Adminhtml/Recurring/Index.php
26:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong)
Controller/Adminhtml/Profile/Save.php
18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
19:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
108:26 warning Expected 1 space after logical operator; 0 found (Squiz.WhiteSpace.LogicalOperatorSpacing.NoSpaceAfter)
109:26 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore)
view/frontend/templates/order/payments.phtml
87:66 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
view/frontend/templates/cards_list.phtml
6:31 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
9:56 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
12:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
13:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
14:64 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
15:67 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
29:48 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
30:55 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
view/frontend/email/recurring_new.html
1:1 warning Template @vars comment block contains invalid JSON. (Magento2.Html.HtmlDirective.HtmlTemplatesInvalidVarsJSON)
view/frontend/web/template/payment/checkout-bypass.html
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
view/frontend/web/template/payment/checkout.html
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
view/frontend/web/js/view/payment/method-renderer/paytrail-method.js
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
view/adminhtml/layout/recurring_payments_recurring_index.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/layout/recurring_payments_profile_index.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/layout/recurring_payments_profile_edit.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/layout/recurring_payments_recurring_view.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/ui_component/recurring_profile_edit.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/ui_component/recurring_payments_listing.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/ui_component/recurring_payments_view.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
view/adminhtml/ui_component/recurring_profile_listing.xml
1:1 error Recurring scripts are obsolete. Please create class Recurring in module's Setup folder (Magento2.Legacy.InstallUpgrade.ObsoleteRecurringScript)
Test/Unit/Gateway/Validator/ResponseValidatorUnitTest.php
45:5 warning Scope keyword "private" must be followed by a single space; found 101 (Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect)
45:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong)
52:5 warning Scope keyword "private" must be followed by a single space; found 2 (Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect)
71:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
76:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
93:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
95:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong)
96:154 warning Line exceeds 120 characters; contains 154 characters (Generic.Files.LineLength.TooLong)
97:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong)
98:104 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong)
112:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
114:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong)
115:154 warning Line exceeds 120 characters; contains 154 characters (Generic.Files.LineLength.TooLong)
116:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong)
117:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong)
119:9 warning Expected 0 spaces before closing parenthesis; newline found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket)
Test/Unit/Controller/RedirectIndexUnitTest.php
100:5 warning Scope keyword "private" must be followed by a single space; found 12 (Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect)
Test/Integration/_files/pending_subscription_rollback.php
7:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
8:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong)
Test/Integration/_files/customer_notify_rollback.php
6:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
9:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong)
10:135 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong)
Test/Integration/_files/pending_subscription.php
14:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong)
20:14 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)
Test/Integration/Model/Recurring/NotifyTest.php
13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
62:87 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma)
Test/Integration/Model/Subscription/ActiveOrderProviderTest.php
11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
Test/Integration/Api/RecurringPaymentRepositoryInterfaceTest.php
103:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong)
Block/Redirect/Paytrail.php
11:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
34:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Block/Adminhtml/Subscription/Edit/AbstractButton.php
12:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar)
52:8 warning Tags visual alignment must be consistent (Magento2.Annotation.MethodAnnotationStructure.MethodArguments)