Magento Coding Standard (PHPCS) report for transbank/webpay-magento2-rest
=========================================================================
Package version: 2.4.0 | Magento: 2.4.9 | Tested: 2026-09-29
58 errors, 318 warnings in 50 files
.devcontainer/setup-demo-data.php
8:16 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
11:1 error "require" statement detected. File manipulations are discouraged. Variables inside are insecure. (Magento2.Security.IncludeFile.FoundIncludeFile)
13:11 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
21:3 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch)
26:18 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
27:21 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
37:5 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
45:5 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
54:5 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
76:5 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
82:195 warning Line exceeds 120 characters; contains 195 characters (Generic.Files.LineLength.TooLong)
88:26 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
91:9 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
93:9 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
104:5 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
107:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
Exceptions/OneclickInscriptionNotFoundException.php
7:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found)
Exceptions/MySqlNamedLockException.php
7:56 warning Opening brace of a class must be on the line after the definition (PSR2.Classes.ClassDeclaration.OpenBraceNewLine)
7:57 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore)
Helper/ILogger.php
5:11 warning Interface should have name that ends with "Interface" suffix. (Magento2.NamingConvention.InterfaceName.WrongInterfaceName)
7:5 warning Visibility must be declared on method "logInfo" (Squiz.Scope.MethodScope.Missing)
8:5 warning Visibility must be declared on method "logError" (Squiz.Scope.MethodScope.Missing)
9:5 warning Visibility must be declared on method "logDebug" (Squiz.Scope.MethodScope.Missing)
10:5 warning Visibility must be declared on method "logWarning" (Squiz.Scope.MethodScope.Missing)
11:5 warning Visibility must be declared on method "getInfo" (Squiz.Scope.MethodScope.Missing)
12:5 warning Visibility must be declared on method "getLogDetail" (Squiz.Scope.MethodScope.Missing)
Helper/TbkResponseHelper.php
12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
14: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)
26: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)
52:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
63:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
74:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
78:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
85:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
106:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
123:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
134:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
161:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
188:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
Helper/TransactionHelper.php
5:25 warning Opening brace of a class must be on the line after the definition (PSR2.Classes.ClassDeclaration.OpenBraceNewLine)
13:6 warning Expected 6 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar)
14:6 warning Expected 6 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar)
15:6 warning Expected 6 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar)
16:6 warning Expected 6 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar)
17:6 warning Expected 6 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar)
18:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
18:74 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
37:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
56:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
56:100 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
70:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
70:105 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
75:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany)
75:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Helper/ObjectManagerHelper.php
18:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)
Helper/PluginLogger.php
162:18 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
176:23 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
181:27 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
200:20 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
208:33 warning The use of function file() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
220:32 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
222:21 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
Model/Service/OneclickInscriptionService.php
139:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
143:12 warning $customerId parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
218:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
222:12 warning $inscriptionResult parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
226:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong)
267:73 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
Model/Service/WebpayOrderDataService.php
64:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
Model/TransbankSdkWebpayRest.php
27:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription)
115:14 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
142:14 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
169:14 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
187:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
188:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
189:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
190:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
216:170 warning Line exceeds 120 characters; contains 170 characters (Generic.Files.LineLength.TooLong)
230:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
260:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
261:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
262:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
286:172 warning Line exceeds 120 characters; contains 172 characters (Generic.Files.LineLength.TooLong)
300:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
333:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment)
360:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
361:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Model/HealthCheck.php
13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
165:15 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
166:9 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
167:9 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
168:9 warning The use of function curl_setopt() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
169:20 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
170:9 warning The use of function curl_close() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
274:55 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
Model/OneclickInscriptionData.php
9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
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)
13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
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)
16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
Model/WebpayOrderData.php
10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
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)
13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
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)
16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
Model/ResourceModel/OneclickInscriptionData.php
9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
20:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany)
Model/ResourceModel/WebpayOrderData.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/ResourceModel/WebpayOrderData/Collection.php
21:13 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
22:13 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
Model/Webpay.php
7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
20:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar)
45:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Model/Config/ConfigProvider.php
7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
38:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong)
39:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong)
40:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong)
56:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong)
57:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong)
58:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong)
59:145 warning Line exceeds 120 characters; contains 145 characters (Generic.Files.LineLength.TooLong)
60:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
Model/Config/AdditionalConfigVars.php
2:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter)
17:5 warning There must be a single space between the closing parenthesis/return type and the opening brace of a multi-line function declaration; found 0 spaces (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenBrace)
27:173 warning Line exceeds 120 characters; contains 173 characters (Generic.Files.LineLength.TooLong)
32:1 error A closing tag is not permitted at the end of a PHP file (PSR2.Files.ClosingTag.NotAllowed)
Model/Config/ConfigInvoice.php
14:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong)
Model/Oneclick.php
7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
20:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar)
45:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Observer/RefundObserver.php
49:175 warning Line exceeds 120 characters; contains 175 characters (Generic.Files.LineLength.TooLong)
74:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
Observer/SubmitObserver.php
16:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar)
59:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Observer/SuccessObserver.php
14:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
16:12 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found)
16:33 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen)
21:70 warning The closing parenthesis of a multi-line function declaration must be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine)
22: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)
30:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Observer/InvoiceObserver.php
60:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Observer/OneclickAvailable.php
16:12 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found)
16:33 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen)
18:70 warning The closing parenthesis of a multi-line function declaration must be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine)
19: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)
24:74 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
37:13 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found)
37:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
37:93 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
40:12 warning Line indented incorrectly; expected 12 spaces, found 11 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
40:12 warning Closing brace indented incorrectly; expected 12 spaces, found 11 (Squiz.WhiteSpace.ScopeClosingBrace.Indent)
43:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
45:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Observer/SaveConfigObserver.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:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
47:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
64:19 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
91:19 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
Observer/EmailObserver.php
54:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose)
56:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)
Setup/InstallSchema.php
1:1 error InstallSchema scripts are obsolete. Please use declarative schema approach in module's etc/db_schema.xml file (Magento2.Legacy.InstallUpgrade.ObsoleteInstallSchemaScript)
20:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc)
Setup/UpgradeData.php
1:1 error UpgradeData scripts are obsolete. Please use data patches approach in module's Setup/Patch/Data dir (Magento2.Legacy.InstallUpgrade.ObsoleteUpgradeDataScript)
Setup/UpgradeSchema.php
1:1 error UpgradeSchema scripts are obsolete. Please use declarative schema approach in module's etc/db_schema.xml file (Magento2.Legacy.InstallUpgrade.ObsoleteUpgradeSchemaScript)
23:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc)
Controller/Adminhtml/Request/Index.php
25:13 error Direct use of $_POST Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
30:17 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
32:17 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput)
Controller/Oneclick/Index.php
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)
Controller/Oneclick/Commit.php
99:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
247:77 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation)
254:73 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation)
266:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
Controller/Oneclick/Delete.php
51:84 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation)
58:84 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation)
100:84 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation)
Controller/Oneclick/Add.php
50:77 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation)
82:20 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
Controller/Transaction/CommitOneclick.php
83:25 error Direct use of $_POST Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
83:48 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
86:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow)
97:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong)
136:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch)
165:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
166:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
186:26 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
196:22 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
197:23 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
219:42 warning Expected 0 spaces after opening parenthesis; 1 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen)
219:90 warning Expected 0 spaces before closing parenthesis; 1 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose)
219:100 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
237:50 warning Expected 0 spaces after opening parenthesis; 1 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen)
237:73 warning Expected 0 spaces before closing parenthesis; 1 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose)
237:82 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
238:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found)
238:13 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
238:71 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace)
238:72 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
Controller/Transaction/CommitWebpay.php
24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
28: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)
81:30 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
82:52 error Direct use of $_POST Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
82:61 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
223:156 warning Line exceeds 120 characters; contains 156 characters (Generic.Files.LineLength.TooLong)
250:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong)
Controller/Transaction/CreateOneclick.php
96:33 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
96:56 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
195:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
196:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
197:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
198:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
204:15 warning $status parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
204:15 warning $token parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
204:15 warning $username parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
204:15 warning $email parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)
252:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
Controller/Transaction/AuthorizeOneclick.php
44:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
45:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
113:30 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
114:52 error Direct use of $_POST Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
114:61 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
121:24 error Direct use of $_POST Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
125:30 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
128:212 warning Line exceeds 120 characters; contains 212 characters (Generic.Files.LineLength.TooLong)
138:16 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong)
186:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace)
251:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
295:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong)
364:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)
Controller/Transaction/CreateWebpay.php
31:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment)
78:33 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
78:56 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError)
115:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong)
118:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong)
177:43 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
184:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
185:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
186:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
187:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
188:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
215:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)
view/frontend/templates/checkout/success_voucher.phtml
4:5 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)
17:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
21:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
25:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
29:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
33:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
37:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
41:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
45:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
50:24 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
55:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
view/frontend/templates/messages/successMessage.phtml
1:4 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
2:9 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
view/frontend/templates/cards.phtml
6:35 warning Using escapeUrl on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
9:35 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
16:52 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
19:63 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
20:62 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
21:64 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
28:46 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
29:37 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
31:46 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
32:37 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
34:46 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
35:51 warning Using escapeUrl on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
39:51 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)
view/frontend/web/template/payment/webpay.html
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/oneclick.html
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/button.phtml
18:17 warning Short echo tag syntax must be used; expected "=" but found "