Magento Coding Standard (PHPCS) report for paradoxlabs/cybersource ================================================================== Package version: 4.1.1 | Magento: 2.4.9 | Tested: 2026-09-24 173 warnings in 42 files Helper/Data.php 36:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 72:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 90:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/Service/UnifiedCheckout/CaptureContext.php 254:15 warning $billing parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 297:15 warning $billTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/Frontend.php 113:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 140:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Service/UnifiedCheckout/Backend.php 127:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 154:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Service/UnifiedCheckout/Request/PaymentRequest.php 351:12 warning $billTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 374:12 warning $shipTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 512:12 warning $consumerAuthenticationInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/Request/StoredCardRequest.php 446:12 warning $billTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 469:12 warning $shipTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 584:12 warning $consumerAuthenticationInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/Request/LineItemsTrait.php 57:12 warning $lineItems parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/Request/CaptureContextRequest.php 480:12 warning $billTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/Request/FilterEmptyTrait.php 35:15 warning $values parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/Response.php 228:12 warning $lineItems parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 286:12 warning $lineItems parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 375:12 warning $lineItems parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 697:8 warning \ParadoxLabs\CyberSource\Model\Service\PayerAuth\Verdict, parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 701:15 warning $payerAuth parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 726:15 warning $consumerAuthenticationInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 971:12 warning $lineItems parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1071:12 warning $response parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1266:15 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 1266:15 warning $response parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1266:15 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1321:15 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 1321:15 warning $response parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1321:15 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1415:15 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 1415:15 warning $response parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1415:15 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1438:15 warning $consumerAuthenticationInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/FollowOn.php 204:12 warning $lineItems parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 464:12 warning $response parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/LineItemsBuilder.php 69:12 warning $items parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/UnifiedCheckout/GraphQL.php 95:12 warning $args parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 170:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Service/UnifiedCheckout/CardBuilder.php 146:15 warning $tokenInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 170:15 warning $cardInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/Rest.php 313:13 warning $responseJson parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 365:17 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 426:17 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Service/Sanitizer.php 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 37:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/Service/PayerAuth/Persistor.php 263:13 warning $existing parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 280:13 warning $existing parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 300:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 313:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 389:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 415:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/Management.php 483:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 919:13 warning $reply parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/ResultClassifier.php 57:12 warning $reply parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 82:13 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 82:13 warning $reply parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 82:13 warning $ca parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 127:13 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 127:13 warning $reply parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 127:13 warning $ca parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 199:13 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/Request/SetupRequest.php 160:12 warning $billTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/Request/AuthenticationRequest.php 267:12 warning $billTo parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 290:12 warning $card parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 365:12 warning $deviceInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/Results.php 129:13 warning $reply parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/PassThroughMapper.php 95:12 warning $ca parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 127:13 warning $block parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 127:13 warning $ca parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 156:13 warning $ca parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/BindingValidator.php 178:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 199:13 warning $record parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Service/PayerAuth/AuthenticationResult.php 39:12 warning $consumerAuthenticationInformation parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Method.php 75:12 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Card.php 70:12 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Config/Config.php 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) 36:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 37:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/Config/Version.php 96:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Api/GraphQL/PayerAuth/Authenticate.php 95:15 warning $input parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Api/GraphQL/PayerAuth/AbstractResolver.php 125:24 warning $input parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 156:15 warning $input parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Api/GraphQL/PayerAuth/Setup.php 43:15 warning $input parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Api/GraphQL/PayerAuth/Finalize.php 43:15 warning $input parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Cron/AccountUpdater.php 39:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 44:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/Source/CardType.php 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 39:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) registration.php 27:12 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) view/frontend/templates/form/cc.phtml 62:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 63:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 20 (PSR2.Methods.FunctionCallSignature.Indent) 69:17 warning Line indented incorrectly; expected at least 42 spaces, found 16 (Generic.WhiteSpace.ScopeIndent.Incorrect) 79:25 warning Line indented incorrectly; expected at least 34 spaces, found 24 (Generic.WhiteSpace.ScopeIndent.Incorrect) 97:21 warning Line indented incorrectly; expected at least 50 spaces, found 20 (Generic.WhiteSpace.ScopeIndent.Incorrect) 108:1 warning Multi-line function call not indented correctly; expected 24 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 109:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 118:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 121:5 warning Line indented incorrectly; expected at least 16 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 125:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 125:9 warning Line indented incorrectly; expected at least 16 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 126:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 4 (PSR2.Methods.FunctionCallSignature.Indent) 128:5 warning Line indented incorrectly; expected at least 16 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) view/frontend/templates/customer/form/cc.phtml 50:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 50:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 54:34 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 54:34 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 74:13 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 74:13 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 89:45 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 89:45 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 89:93 warning Expected 1 space after first semicolon of FOR loop; newline found (Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterFirst) 100:33 warning Line indented incorrectly; expected at least 83 spaces, found 32 (Generic.WhiteSpace.ScopeIndent.Incorrect) 117:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 117:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 129:1 warning Multi-line function call not indented correctly; expected 24 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 130:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 137:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 137:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 149:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 149:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 206:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 206:9 warning Line indented incorrectly; expected at least 16 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 207:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 4 (PSR2.Methods.FunctionCallSignature.Indent) 218:5 warning Line indented incorrectly; expected at least 16 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 218:5 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 218:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 221:5 warning Line indented incorrectly; expected at least 16 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 221:5 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 221:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) view/adminhtml/templates/form/cc.phtml 16:1 warning Line indented incorrectly; expected at least 8 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.Incorrect) 84:25 warning Line indented incorrectly; expected at least 50 spaces, found 24 (Generic.WhiteSpace.ScopeIndent.Incorrect) 99:25 warning Line indented incorrectly; expected at least 54 spaces, found 24 (Generic.WhiteSpace.ScopeIndent.Incorrect) 110:1 warning Multi-line function call not indented correctly; expected 28 spaces but found 32 (PSR2.Methods.FunctionCallSignature.Indent) 111:1 warning Multi-line function call not indented correctly; expected 24 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) view/adminhtml/templates/customer/form/cc.phtml 23:38 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 23:38 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 29:1 warning Line indented incorrectly; expected at least 8 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.Incorrect) 34:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 4 (PSR2.Methods.FunctionCallSignature.Indent) 34:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 34:72 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 34:72 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 37:1 warning Line indented incorrectly; expected at least 8 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.Incorrect) 65:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 65:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 79:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 79:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 93:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 93:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 97:34 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 97:34 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 123:13 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 123:13 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 138:45 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 138:45 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 138:93 warning Expected 1 space after first semicolon of FOR loop; newline found (Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterFirst) 150:33 warning Line indented incorrectly; expected at least 83 spaces, found 32 (Generic.WhiteSpace.ScopeIndent.Incorrect) 171:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 171:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 187:1 warning Multi-line function call not indented correctly; expected 24 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 188:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 196:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 196:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 208:21 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 208:21 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 280:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 281:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 20 (PSR2.Methods.FunctionCallSignature.Indent) Block/Adminhtml/Config/ApiTest/AbstractTest.php 35: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) Block/Adminhtml/Config/ApiTest/Rest.php 35:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)