Magento Coding Standard (PHPCS) report for angeo/module-ucp =========================================================== Package version: 2.2.1 | Magento: 2.4.9 | Tested: 2026-10-15 137 warnings in 21 files Model/AuthorityBinding.php 37:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 39:18 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 91:13 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Model/Config.php 130:12 warning $scopeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 489:62 warning The use of function gettype() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 628: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) 685:13 warning $key parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Signature/ProfileFetcher.php 55:12 warning $url parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 71:19 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 114:12 warning $profile parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 148:18 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 183:32 warning The use of function dns_get_record() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 231:19 warning The use of function curl_init() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 236:9 warning The use of function curl_setopt_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 254:19 warning The use of function curl_exec() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 255:25 warning The use of function curl_getinfo() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 256:19 warning The use of function curl_error() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 279:28 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Signature/StructuredFields.php 30:16 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 32:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 90:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 115:24 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 131:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 163:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 199:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 232:13 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Model/Signature/VerificationResult.php 33:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 38:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 43:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Signature/SignatureVerifier.php 113:15 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 116:13 warning $request parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 191:13 warning $params parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 214:13 warning $request parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 220:22 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Signature/JwkVerifier.php 47:12 warning $jwk parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 71:13 warning $jwk parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 96:13 warning $jwk parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 150:29 warning The use of function chr() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 158:33 warning The use of function chr() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 161:25 warning The use of function chr() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 183:20 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Signature/SignatureBase.php 39:12 warning $request parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 39:12 warning $components parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 68:13 warning $name parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 84:13 warning $request parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 109:27 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 110:27 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Spec.php 89:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 100:13 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Model/ProfileGenerator.php 66:12 warning $config parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 118:20 warning $map parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 118:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 267:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 286:20 warning $parents parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 286:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Keys/JwkFormatter.php 136:12 warning $jwk parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 163:13 warning $jwk parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Console/Command/GenerateKeysCommand.php 198:13 warning $output parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Console/Command/ValidateProfileCommand.php 500:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Controller/WellKnown/Ucp.php 140:13 warning $httpCode parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 181:26 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 192:28 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 205:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Controller/Router.php 88:30 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Test/Unit/Model/ConfigTest.php 29:12 warning Method name "ConfigTest::getPublicKeys_strips_private_key_fields" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 53:12 warning Method name "ConfigTest::getPublicKeys_logs_warning_when_private_fields_stripped" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 77:12 warning Method name "ConfigTest::getPublicKeys_returns_empty_array_for_blank_config" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 85:12 warning Method name "ConfigTest::getPublicKeys_returns_empty_array_for_invalid_json" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 96:12 warning Method name "ConfigTest::getPublicKeys_skips_entries_missing_required_fields" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 119:12 warning Method name "ConfigTest::getRestEndpoint_uses_store_base_url_when_blank" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 133:12 warning Method name "ConfigTest::getRestEndpoint_uses_configured_value_when_present" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 141:12 warning Method name "ConfigTest::getRestEndpoint_returns_empty_and_logs_when_store_resolution_throws" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 162:12 warning Method name "ConfigTest::getRestEndpoint_logs_warning_for_non_https_configured_url" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 181:12 warning Method name "ConfigTest::getRestEndpoint_logs_warning_for_non_https_derived_url" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 202:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 207:12 warning Method name "ConfigTest::getIdentityLinkingScopes_parses_comma_separated_list" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 210:29 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 220:12 warning Method name "ConfigTest::getIdentityLinkingScopes_returns_empty_for_blank" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 230:12 warning Method name "ConfigTest::getSupportedVersions_accepts_valid_map" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 243:12 warning Method name "ConfigTest::getSupportedVersions_rejects_non_date_keys_and_non_https_uris" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 257:12 warning Method name "ConfigTest::getSupportedVersions_ignores_invalid_json_with_warning" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 270:12 warning Method name "ConfigTest::getPaymentHandlers_accepts_json_object" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 281:12 warning Method name "ConfigTest::getPaymentHandlers_skips_entries_missing_id_or_version" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 302:12 warning Method name "ConfigTest::getPaymentHandlers_rejects_non_reverse_domain_keys" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 316:12 warning Method name "ConfigTest::getPaymentHandlers_wraps_single_entry_object_into_list" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 328:12 warning Method name "ConfigTest::getPaymentHandlers_rejects_json_array_with_warning" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) Test/Unit/Model/CapabilityGatingTest.php 41:12 warning Method name "CapabilityGatingTest::toggles_without_implementation_are_not_declared" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 55:12 warning Method name "CapabilityGatingTest::registered_implementation_is_declared" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 69:12 warning Method name "CapabilityGatingTest::catalog_and_permalink_are_never_gated" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) Test/Unit/Model/AuthorityBindingTest.php 82:12 warning Method name "AuthorityBindingTest::matches_the_specs_published_table" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 93:12 warning Method name "AuthorityBindingTest::userinfo_decoy_is_rejected" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 108:12 warning Method name "AuthorityBindingTest::ip_literal_host_is_not_an_authority" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 119:12 warning Method name "AuthorityBindingTest::single_label_host_is_not_an_authority" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 127:12 warning Method name "AuthorityBindingTest::non_https_scheme_is_rejected" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 139:12 warning Method name "AuthorityBindingTest::host_is_normalised_before_reversal" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 152:12 warning Method name "AuthorityBindingTest::port_is_ignored_when_deriving_the_authority" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) Test/Unit/Model/Keys/JwkFormatterTest.php 56:12 warning Method name "JwkFormatterTest::jwk_has_required_fields" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 70:12 warning Method name "JwkFormatterTest::jwk_coordinates_are_base64url_encoded_without_padding" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 81:12 warning Method name "JwkFormatterTest::jwk_coordinates_decode_to_32_bytes_for_p256" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 93:12 warning Method name "JwkFormatterTest::jwk_does_not_leak_private_key_material" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 101:12 warning Method name "JwkFormatterTest::rejects_invalid_pem" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 110:12 warning Method name "JwkFormatterTest::rejects_non_ec_key" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 129:12 warning Method name "JwkFormatterTest::empty_kid_derives_the_rfc7638_thumbprint" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 141:12 warning Method name "JwkFormatterTest::thumbprint_matches_the_published_spec_example" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 156:12 warning Method name "JwkFormatterTest::thumbprint_excludes_optional_members" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 171:12 warning Method name "JwkFormatterTest::ed25519_public_key_formats_as_an_okp_jwk_without_y" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 189:12 warning Method name "JwkFormatterTest::ed25519_rejects_a_wrong_length_public_key" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) Test/Unit/Model/ProfileGeneratorTest.php 25:12 warning Method name "ProfileGeneratorTest::profile_declares_spec_compliant_protocol_version" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 33:12 warning Method name "ProfileGeneratorTest::profile_includes_rest_service_binding" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 50:12 warning Method name "ProfileGeneratorTest::empty_services_registry_is_present_and_serializes_as_json_object" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 66:12 warning Method name "ProfileGeneratorTest::empty_capabilities_registry_serializes_as_json_object" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 79:12 warning Method name "ProfileGeneratorTest::payment_handlers_key_is_always_present_even_when_empty" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 93:12 warning Method name "ProfileGeneratorTest::catalog_is_split_into_granular_search_and_lookup_capabilities" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 126:12 warning Method name "ProfileGeneratorTest::catalog_capabilities_can_be_declared_independently" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 136:12 warning Method name "ProfileGeneratorTest::identity_linking_uses_common_namespace_not_shopping" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 146:12 warning Method name "ProfileGeneratorTest::identity_linking_includes_scopes_config_when_configured" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 166:12 warning Method name "ProfileGeneratorTest::identity_linking_omits_config_when_no_scopes" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 175:12 warning Method name "ProfileGeneratorTest::fulfillment_extension_declares_checkout_parent" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 188:12 warning Method name "ProfileGeneratorTest::fulfillment_extension_is_pruned_when_checkout_disabled" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 202:12 warning Method name "ProfileGeneratorTest::discount_extension_uses_string_extends_for_single_parent" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 214:12 warning Method name "ProfileGeneratorTest::discount_extension_uses_array_extends_for_multiple_parents" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 226:12 warning Method name "ProfileGeneratorTest::discount_extension_is_pruned_when_no_parent_enabled" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 237:12 warning Method name "ProfileGeneratorTest::profile_includes_supported_versions_when_configured" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 246:12 warning Method name "ProfileGeneratorTest::profile_omits_supported_versions_when_empty" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 254:12 warning Method name "ProfileGeneratorTest::profile_includes_payment_handlers_when_configured" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 270:12 warning Method name "ProfileGeneratorTest::profile_publishes_keys_in_the_canonical_top_level_array" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 291:12 warning Method name "ProfileGeneratorTest::profile_omits_keys_array_when_none_configured" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 300:12 warning Method name "ProfileGeneratorTest::full_profile_is_json_encodable_under_strict_mode" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 325:12 warning Method name "ProfileGeneratorTest::mcp_endpoint_adds_mcp_binding_alongside_rest" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 340:12 warning Method name "ProfileGeneratorTest::mcp_binding_alone_is_emitted_when_rest_endpoint_is_blank" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 354:12 warning Method name "ProfileGeneratorTest::no_mcp_binding_without_configured_mcp_endpoint" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 368:12 warning Method name "ProfileGeneratorTest::malformed_provider_fragments_are_dropped_defensively" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) Test/Unit/Controller/WellKnown/UcpTest.php 27:12 warning Method name "UcpTest::options_request_returns_204_preflight_with_cors_headers" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 43:12 warning Method name "UcpTest::options_preflight_does_not_leak_enabled_state" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 55:12 warning Method name "UcpTest::get_returns_404_no_store_when_module_disabled" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 68:12 warning Method name "UcpTest::get_returns_200_json_with_spec_required_headers" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps) 92:12 warning Method name "UcpTest::get_returns_500_no_store_when_profile_generation_throws" is not in camel caps format (PSR1.Methods.CamelCapsMethodName.NotCamelCaps)