Magento Coding Standard (PHPCS) report for tpaycom/magento2basic
================================================================
Package version: 2.9.1 | Magento: 2.4.9 | Tested: 2026-11-02
102 warnings in 36 files
ViewModel/Checkout/Success.php
32:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong)
Service/TpayTokensService.php
21:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong)
28:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong)
Service/TpayAliasService.php
63:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow)
Service/ReminderService.php
56:179 warning Line exceeds 120 characters; contains 179 characters (Generic.Files.LineLength.TooLong)
Helper/OrderResolver.php
36:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Provider/ConfigurationProvider.php
45:230 warning Line exceeds 120 characters; contains 230 characters (Generic.Files.LineLength.TooLong)
209:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
225:17 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
262:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
290:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch)
296:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
297:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
314:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch)
Model/ApiFacade/OpenApiException.php
12:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found)
17:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
Model/ApiFacade/Refund/RefundApiFacade.php
21:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/CardTransaction/CardOrigin.php
28:145 warning Line exceeds 120 characters; contains 145 characters (Generic.Files.LineLength.TooLong)
64:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong)
80:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong)
91:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong)
93:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong)
124:152 warning Line exceeds 120 characters; contains 152 characters (Generic.Files.LineLength.TooLong)
135:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong)
141:168 warning Line exceeds 120 characters; contains 168 characters (Generic.Files.LineLength.TooLong)
155:173 warning Line exceeds 120 characters; contains 173 characters (Generic.Files.LineLength.TooLong)
187:171 warning Line exceeds 120 characters; contains 171 characters (Generic.Files.LineLength.TooLong)
219:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow)
Model/ApiFacade/CardTransaction/CardApiFacade.php
25:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong)
33:152 warning Line exceeds 120 characters; contains 157 characters (Generic.Files.LineLength.TooLong)
35:154 warning Line exceeds 120 characters; contains 154 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/CardTransaction/CardOpen.php
32:173 warning Line exceeds 120 characters; contains 173 characters (Generic.Files.LineLength.TooLong)
51:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong)
82:152 warning Line exceeds 120 characters; contains 157 characters (Generic.Files.LineLength.TooLong)
88:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong)
97:138 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong)
103:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong)
117:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong)
119:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong)
128:151 warning Line exceeds 120 characters; contains 151 characters (Generic.Files.LineLength.TooLong)
130:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong)
151:130 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong)
157:173 warning Line exceeds 120 characters; contains 173 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/Transaction/TransactionApiFacade.php
30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
35:147 warning Line exceeds 120 characters; contains 147 characters (Generic.Files.LineLength.TooLong)
112:155 warning Line exceeds 120 characters; contains 155 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/TpayConfig/ConfigFacade.php
22:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong)
27:147 warning Line exceeds 120 characters; contains 147 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/TpayConfig/CardConfigFacade.php
25:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/TpayConfig/ConfigOrigin.php
79:1 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
104:198 warning Line exceeds 120 characters; contains 198 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/TpayConfig/ConfigOpen.php
78:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong)
106:1 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
Model/ApiFacade/OpenApi.php
124:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong)
138:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong)
328:17 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
Model/TpayPayment.php
251:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong)
266:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong)
267:155 warning Line exceeds 120 characters; contains 155 characters (Generic.Files.LineLength.TooLong)
268:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
270:165 warning Line exceeds 120 characters; contains 165 characters (Generic.Files.LineLength.TooLong)
272:234 warning Line exceeds 120 characters; contains 234 characters (Generic.Files.LineLength.TooLong)
273:156 warning Line exceeds 120 characters; contains 156 characters (Generic.Files.LineLength.TooLong)
274:189 warning Line exceeds 120 characters; contains 189 characters (Generic.Files.LineLength.TooLong)
275:208 warning Line exceeds 120 characters; contains 208 characters (Generic.Files.LineLength.TooLong)
287:12 warning $payment parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
370:17 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
Model/MethodListPlugin.php
84:168 warning Line exceeds 120 characters; contains 168 characters (Generic.Files.LineLength.TooLong)
104:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
Observer/OrderCancel.php
45:199 warning Line exceeds 120 characters; contains 199 characters (Generic.Files.LineLength.TooLong)
Notification/Strategy/DefaultNotificationProcessor.php
46:64 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
46:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
51:20 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
Notification/Strategy/CardNotificationProcessor.php
39:20 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
55:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong)
registration.php
24:7 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch)
Controller/Adminhtml/Order/Reminder.php
77:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong)
Controller/Tpay/Create.php
122:145 warning Line exceeds 120 characters; contains 145 characters (Generic.Files.LineLength.TooLong)
Controller/Tpay/Status.php
30:171 warning Line exceeds 120 characters; contains 171 characters (Generic.Files.LineLength.TooLong)
Controller/Tpay/Retry.php
42:226 warning Line exceeds 120 characters; contains 226 characters (Generic.Files.LineLength.TooLong)
89:165 warning Line exceeds 120 characters; contains 165 characters (Generic.Files.LineLength.TooLong)
104:214 warning Line exceeds 120 characters; contains 214 characters (Generic.Files.LineLength.TooLong)
Controller/Tpay/Redirect.php
63:198 warning Line exceeds 120 characters; contains 198 characters (Generic.Files.LineLength.TooLong)
view/frontend/templates/button.phtml
12:72 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
view/frontend/web/template/payment/tpay-generic-onsite.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)
view/frontend/web/template/payment/card-tpay-form.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)
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/tpay-form.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)
view/adminhtml/templates/system/config/warning.phtml
10:25 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
view/base/web/js/renderSavedCards.js
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)
Cron/CancelOverdue.php
80:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong)
Block/System/Config/TpayPaymentFieldset.php
13:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong)