Magento Coding Standard (PHPCS) report for loki-checkout/magento2-core ====================================================================== Package version: 2.8.2 | Magento: 2.4.9 | Tested: 2026-11-23 58 errors, 207 warnings in 151 files Payment/Vault/NormalizedPaymentTokenFactory.php 1:1 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) ViewModel/CssVariables/CssVariableFactory.php 1:1 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) ViewModel/CheckoutConfig.php 13: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) ViewModel/PostcodePatterns.php 32:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 32:39 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 45:9 warning Empty IF statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedIf) 49:9 warning Empty IF statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedIf) ViewModel/CheckoutState.php 62:9 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 62:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) ViewModel/TaxTotal.php 29:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) ViewModel/OptionModel/CountryOptionModel.php 61:26 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 70:48 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 74:50 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) ViewModel/State/BillingAddressState.php 25: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) 42: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) ViewModel/State/ShippingAddressState.php 25: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) 42: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) Step/StepNavigator.php 50:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Step/FinalStep.php 278:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Step/FinalStep/Task/RecaptchaTask.php 42:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Step/FinalStep/Task/SaveInAddressBookTask.php 44:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Step/FinalStep/Task/AgreementsTask.php 36:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Layout/LayoutHandler.php 4:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 45:53 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 49:53 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 53:53 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) Recaptcha/Config.php 73:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 78:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Recaptcha/TokenValidator.php 75:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 114:29 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Recaptcha/Type.php 20:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 25:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 30:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 35:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Recaptcha/FormId.php 15:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Plugin/FixFreeShippingSubtotalPlugin.php 21:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 22:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) Observer/AddHtmlAttributes.php 38:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Observer/AddDebuggingInfo.php 17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 87:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) Observer/AppendChildNameToBlockHtmlObserver.php 67:21 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 75:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Setup/Recurring.php 21:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Component/PostDispatchHandler/SameAddressCopy.php 12: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) Component/Base/Payment/ApplePay/ApplePayRepository.php 46:18 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Component/Checkout/Other/Newsletter/NewsletterRepository.php 74:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) Component/Checkout/Sidebar/CouponCode/CouponCodeRepository.php 84:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Component/Checkout/Sidebar/Preview/PaymentDetails/PaymentDetailsViewModel.php 33:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Component/Checkout/Sidebar/Preview/ShippingDetails/ShippingDetailsViewModel.php 104:16 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) Component/Checkout/StepButton/StepBackwardButton/StepBackwardButtonRepository.php 37:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Controller/Index/Index.php 26:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) view/frontend/templates/checkout/other/recaptcha/legal-notice.phtml 30:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) view/frontend/templates/checkout/other/agreements.phtml 30:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/payment/payment-methods/item.phtml 91:40 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 92:89 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/payment/payment-methods.phtml 26:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 42:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 64:52 warning Expected 1 space after comma in argument list; 2 found (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma) view/frontend/templates/checkout/billing/address.phtml 22:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 38:15 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) view/frontend/templates/checkout/billing/address-form-title.phtml 26:2 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) view/frontend/templates/checkout/shipping/shipping-methods/item/amount.phtml 24:11 warning Line indented incorrectly; expected at least 12 spaces, found 10 (Generic.WhiteSpace.ScopeIndent.Incorrect) view/frontend/templates/checkout/shipping/shipping-methods/item/label.phtml 23:56 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/shipping/shipping-methods/item.phtml 73:50 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 119:40 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 120:89 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/shipping/shipping-method/locations.phtml 26:45 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 45:49 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/shipping/shipping-method/delivery-date.phtml 26:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/shipping/shipping-method/location/business-hours.phtml 28:65 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) view/frontend/templates/checkout/shipping/shipping-method/delivery-dates.phtml 26:45 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 43:49 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/shipping/shipping-method/delivery-date/timeframe.phtml 18:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 19:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 20:52 warning Expected 1 space after comma in argument list; 2 found (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma) 21:52 warning Expected 1 space after comma in argument list; 2 found (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma) 22:52 warning Expected 1 space after comma in argument list; 2 found (Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma) view/frontend/templates/checkout/shipping/shipping-method/delivery-date/timeframes.phtml 14:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/shipping/address-form-title.phtml 26:2 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) view/frontend/templates/checkout/shipping/shipping-methods.phtml 24:39 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 25:45 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 28:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 38:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/login/logged-in.phtml 35:33 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/login/logged-in/logout.phtml 16:26 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/sidebar/items.phtml 30:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 35:50 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 55:53 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/sidebar/preview/quote_details.phtml 17:37 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 25:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/checkout/sidebar/totals.phtml 34:48 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 36:34 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/checkout/sidebar/coupon_code.phtml 35:112 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) view/frontend/templates/checkout/sidebar/items/item/values/price.phtml 28:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) view/frontend/templates/checkout/progressbar/home.phtml 40:37 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/customer/login.phtml 23:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) view/frontend/templates/script/validator/postcode.phtml 18:11 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 18:85 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 20:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 20:11 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) view/frontend/templates/message/invalid-customer-address.phtml 11:13 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 15:1 warning Multi-line function call not indented correctly; expected 0 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 15:1 warning Multi-line function call not indented correctly; expected 4 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 15:9 warning Expected 0 spaces before closing parenthesis; newline found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 15:10 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) 15:13 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 15:18 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) view/frontend/templates/utils/css-variables.phtml 19:56 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) view/frontend/templates/theme/default/checkout.phtml 22:41 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) Config/XmlConfig/SchemaLocator.php 12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Config/Config.php 77: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) 114:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 119:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Config/XmlConfig.php 33:42 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Util/Composer/ComposerLock.php 22:41 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 41:36 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Util/Composer/ComposerPackageFactory.php 30:37 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 45:13 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 49:13 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 53:13 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Util/Composer/ComposerApi.php 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) 106:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 112:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Util/ValueSanitizer.php 10:18 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Util/Html/PushHtmlAttributes.php 45:31 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Util/Component/StepProvider.php 28:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 28:44 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 28:45 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 32:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 32:44 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 32:45 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 117:29 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Util/SameAddressService.php 95:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Util/Checkout/SaveCart.php 16:1 warning Blank lines are not allowed in a multi-line function declaration (Squiz.Functions.MultiLineFunctionDeclaration.EmptyLine) Util/Checkout/UpdateShippingMethod.php 11: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) Util/StreetLinesParser/StreetLinesParser.php 26:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 26:52 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 26:53 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Util/Block/SortedBlocks.php 13:1 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.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDeprecatedTagUsage) Validator/Component/PostcodeFormatValidator.php 61:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) Validator/StepValidator.php 42:27 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Shipment/Icon/IconResolverContext.php 41:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 41:42 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 41:43 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Repository/RegionRepository.php 15: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) Test/Fixture/CustomerLoggedInFixture.php 29:11 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Test/Fixture/CustomerAddressFixture.php 38:11 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 38:32 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 38:33 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Test/Fixture/CartRepositoryStubFixture.php 13:46 error The 'null' type can only be used as part of a union type in PHP 8.1 or earlier (PHPCompatibility.FunctionDeclarations.NewReturnTypeDeclarations.NonUnionNull) 16:9 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 17:9 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 18:13 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 19:17 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 20:13 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 21:9 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 23:9 warning Code after the RETURN statement on line 15 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) Test/Unit/Component/Checkout/Address/StreetLine/StreetLineViewModelTest.php 10:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Unit/Util/Composer/ComposerApiTest.php 94:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Test/Unit/Util/StreetLinesFactoryTest.php 54:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) Test/Unit/Util/StreetLinesParser/StreetLinesParserTest.php 31:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Test/Integration/Payment/Redirect/SessionRedirectResolverTest.php 47:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) Test/Integration/Payment/Vault/NormalizedPaymentTokenTest.php 38:51 error Class PaymentTokenFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) 50:48 error Class PaymentTokenFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/ViewModel/CheckoutStateTest.php 68:46 error Class QuoteFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/LokiCheckoutRepositoryTestCase.php 8:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Step/FinalStep/Task/NewsletterTaskTest.php 62:46 error Class QuoteFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Layout/LayoutHandlesTest.php 20:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Test/Integration/Layout/LayoutLoaderStreet0BlockTest.php 16:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Test/Integration/Layout/CountrySwitchTest.php 9:1 warning There must be one blank line after the last USE statement; 2 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Test/Integration/Plugin/RedirectEmptyQuoteAfterRepositoryDispatchPluginTest.php 70:41 error Class UrlFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/CustomerData/Checkout/BillingAddressDataCollectorTest.php 54:44 error Class AddressFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/CustomerData/Checkout/QuoteDataCollectorTest.php 52:44 error Class QuoteFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/CustomerData/Checkout/ShippingAddressDataCollectorTest.php 43:44 error Class AddressFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Observer/CleanAfterAddressChangeTest.php 18:48 error Class AddressFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) 43:48 error Class AddressFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Component/Customer/LoginForm/LoginFormRepositoryTest.php 28:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Steps/One/OnePageTest.php 21:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 23:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Steps/Shipping/ForwardButtonRepositoryTest.php 22:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Steps/Billing/ForwardButton/ForwardButtonPageTest.php 17:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Steps/Billing/BillingStepAccessTest.php 24:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Steps/Billing/BackwardButton/BackwardButtonPageTest.php 17:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Steps/Billing/BillingPageTest.php 23:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Page/DefaultPageTest.php 25:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 77:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) Test/Integration/Component/Checkout/Page/OptionalFieldsPageTest.php 24:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Page/StreetLinesPageTest.php 27:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Page/HiddenFieldsPageTest.php 26:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Page/BillingPageTest.php 24:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Page/RequiredFieldsPageTest.php 25:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Shipping/Methods/MethodsRepositoryTest.php 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Methods/MethodsRepositoryWithTableRatesTest.php 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/VatId/VatIdValidationTest.php 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/Firstname/FirstnameRepositoryTest.php 19:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/Firstname/FirstnameValidationTest.php 20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/City/CityValidationTest.php 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 45:9 warning Code after the RETURN statement on line 44 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 46:9 warning Code after the RETURN statement on line 44 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) Test/Integration/Component/Checkout/Shipping/Address/ToggleSelect/ToggleSelectPageTest.php 32:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 37:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Shipping/Address/View/ViewPageTest.php 28:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Shipping/Address/BillingAsShipping/BillingAsShippingPageTest.php 20:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 24:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Shipping/Address/Lastname/LastnameValidationTest.php 20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/Postcode/PostcodeValidationTest.php 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/Company/CompanyValidationTest.php 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/Select/SelectRepositoryTest.php 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Shipping/Address/Select/SelectPageTest.php 28:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Shipping/Address/SaveInAddressBook/SaveInAddressBookPageTest.php 28:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Shipping/Address/Prefix/PrefixValidationTest.php 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Newsletter/NewsletterRepositoryTest.php 26:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Billing/Address/ToggleSelect/ToggleSelectPageTest.php 29:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Billing/Address/View/ViewPageTest.php 30:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Billing/Address/ShippingAsBilling/ShippingAsBillingPageTest.php 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Billing/Address/Select/SelectPageTest.php 30:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Billing/Address/SaveInAddressBook/SaveInAddressBookPageTest.php 26:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 28:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Other/Recaptcha/RecaptchaPageTest.php 19:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 25:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 34:5 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Component/Checkout/Customer/CustomerGender/CustomerGenderValidationTest.php 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Customer/CustomerEmail/CustomerEmailValidationTest.php 20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Customer/CustomerDob/CustomerDobValidationTest.php 21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Component/Checkout/Sidebar/CouponCode/CouponCodeRepositoryTest.php 25:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/CssUtilsTest.php 19:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) Test/Integration/Config/ConfigTest.php 32:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 75:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 135:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Test/Integration/Util/RegionProviderTest.php 35:55 error Class AddressFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Util/StreetLinesParserTest.php 15:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Test/Integration/Validator/Quote/ValidationRule/EmailTest.php 20:59 error Class QuoteFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Validator/CustomerAddressValidatorTest.php 56:55 error Class AddressInterfaceFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) 57:54 error Class RegionInterfaceFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Validator/Component/CustomerAddressValidatorTest.php 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 24:8 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Test/Integration/Validator/Component/OptionsValidatorTest.php 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Validator/Component/EmailAvailableValidatorTest.php 59:56 error Class CustomerInterfaceFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) Test/Integration/Validator/Component/GenderValidatorTest.php 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Test/Integration/Shipment/DeliveryDate/TimeframeTest.php 58:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong)