Magento Coding Standard (PHPCS) report for paradoxlabs/tokenbase ================================================================ Package version: 5.1.1 | Magento: 2.4.9 | Tested: 2026-09-16 159 warnings in 30 files Gateway/Validator/CreditCard.php 147:8 warning Tags visual alignment must be consistent (Magento2.Annotation.MethodAnnotationStructure.MethodArguments) Gateway/Validator/CreditCard/Types.php 34:13 warning Line exceeds 120 characters; contains 163 characters (Generic.Files.LineLength.TooLong) Gateway/Validator/NewAch.php 49:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Plugin/Vault/Api/PaymentTokenManagement.php 234:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Plugin/ZeroTotal.php 39:22 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) Plugin/QuoteGraphQl/Model/Resolver/SelectedPaymentMethod.php 96:19 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Plugin/Checkout/Model/PaymentInformationManagement/Plugin.php 70:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/Checkout/Model/GuestPaymentInformationManagement/Plugin.php 70:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 72:8 warning $paymentMethod parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 75:12 warning $email parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Helper/Data.php 540:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 613:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Helper/Operation.php 51:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 116:24 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Gateway/Xml.php 60:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 61:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 62:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 65:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 79:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 97:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 150:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 154:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 190:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 211:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 226:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 246:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 264:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 298:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 301:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 334:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 335:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 338:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/AbstractGateway.php 138:8 warning $communicatorFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 139:8 warning $data parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 373:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 381:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 470:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 493:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Model/Card.php 70:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 873:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 894:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 936:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Model/Api/CustomerCardRepository.php 80:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Api/GuestCardRepository.php 71:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/AbstractMethod.php 253:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 944:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 1096:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 1229:15 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 1239:15 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 1250:15 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 1259:15 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 1270:15 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 1280:15 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) 1338:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1500:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1522:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1536:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1575:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1592:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1641:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1661:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 1677:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Model/CardAdditional.php 163:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 248:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 265:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 282:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 299:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 316:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Observer/PaymentMethodAssignDataObserver.php 294:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Observer/CardLoadProcessDeleteQueueObserver.php 70:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Observer/ConvertGuestToCustomerObserver.php 85:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) etc/schema.graphqls 123:1 warning Enum value "checking" is not in SCREAMING_SNAKE_CASE format (Magento2.GraphQL.ValidEnumValue.NotScreamingSnakeCase) 124:1 warning Enum value "savings" is not in SCREAMING_SNAKE_CASE format (Magento2.GraphQL.ValidEnumValue.NotScreamingSnakeCase) 125:1 warning Enum value "businessChecking" is not in SCREAMING_SNAKE_CASE format (Magento2.GraphQL.ValidEnumValue.NotScreamingSnakeCase) registration.php 26:12 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Controller/Paymentinfo/Delete.php 62:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) view/frontend/templates/customer/form/ach.phtml 28:251 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 28:251 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 31:34 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 31:34 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 42:66 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 42:66 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 49:47 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 49:47 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 66:229 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 66:229 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 75:242 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 75:242 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 81:284 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 81:284 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 178:51 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 178:51 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 180:65 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 180:65 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) view/frontend/templates/customer/form/cc.phtml 28:251 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 28:251 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 31:34 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 31:34 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 42:66 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 42:66 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 49:47 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 49:47 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 66:229 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 66:229 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 75:242 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 75:242 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 81:284 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 81:284 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 184:51 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 184:51 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 186:65 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 186:65 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) view/adminhtml/templates/customer/form/ach.phtml 30:299 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 30:299 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 36:295 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 36:295 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 42:290 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 42:290 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 45:34 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 45:34 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 59:66 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 59:66 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 66:47 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 66:47 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 83:238 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 83:238 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 92:281 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 92:281 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 98:323 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 98:323 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) view/adminhtml/templates/customer/form/cc.phtml 35:310 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 35:310 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 41:306 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 41:306 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 47:301 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 47:301 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 50:34 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 50:34 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 64:66 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 64:66 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 71:47 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 71:47 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 88:249 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 88:249 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 97:292 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 97:292 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 103:334 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 103:334 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) Api/GatewayInterface.php 148:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 163:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Api/Data/CardInterface.php 290:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 305:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 320:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Api/Data/CardAdditionalInterface.php 116:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 204:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 215:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 226:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 237:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 248:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)