Skip to content

Instantly share code, notes, and snippets.

@Luc45
Created March 2, 2025 12:07
Show Gist options
  • Save Luc45/7d4d608d74b53d50ab1b2c0246d66bd8 to your computer and use it in GitHub Desktop.
Save Luc45/7d4d608d74b53d50ab1b2c0246d66bd8 to your computer and use it in GitHub Desktop.
stubz-php-generator-stubs-diff.json
{
"summary_ae3771eaadbc926229ec17f11edc04b1_cc4dfbb6e622799f96c5f17f7f0ad229": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting and the handling of the default parameter value for the `get` method.",
"differences": [
{
"description": "The 'php-stubs-generator' version uses \\false as the default value for the $default parameter in the get method, while the 'Stubz' version uses false without the backslash."
},
{
"description": "There is a slight difference in indentation and spacing between the two stub files. The 'php-stubs-generator' version has more consistent spacing around braces and after commas."
}
],
"relPath": "includes/admin/helper/class-wc-helper-options.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/admin/helper/class-wc-helper-options.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/admin/helper/class-wc-helper-options.php"
},
"summary_07712acc072449938483da92a1981346_7fc2ab283abe8715febd9783860e2a59": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences primarily in code formatting. Both files define the same classes, methods, and properties.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, there is a phpcs directive comment (// phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound, Generic.Commenting.Todo.CommentFound) that is not present in the 'Stubz' stub file."
},
{
"description": "There are minor differences in code formatting, such as varying placement of curly braces and indentation levels, which do not affect functionality."
}
],
"relPath": "includes/admin/settings/class-wc-settings-advanced.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/admin/settings/class-wc-settings-advanced.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/admin/settings/class-wc-settings-advanced.php"
},
"summary_2ea071f347c1db06203bdd7946202c2d_f254d274cc10ca22332c9cef6bcc9930": {
"summary": "The stub file generated by 'php-stubs-generator' includes an additional class property '$font', and a method 'sanitize_email_header_image' that is not present in the stub file generated by 'Stubz'. Conversely, the 'Stubz' stub file has a missing method 'get_custom_fonts' compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The class property '$font' of type string[] is defined in the stub file from 'php-stubs-generator' but not present in the stub file from 'Stubz'."
},
{
"description": "The method 'get_custom_fonts' is defined in the stub file from 'php-stubs-generator' but not present in the stub file from 'Stubz'."
},
{
"description": "The method 'sanitize_email_header_image' is defined in the stub file from 'Stubz' but not present in the stub file from 'php-stubs-generator'."
}
],
"relPath": "includes/admin/settings/class-wc-settings-emails.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/admin/settings/class-wc-settings-emails.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"
},
"summary_bb78329994c51c850e69e878db8f649c_0166e240f716a9b63bf75001cf30c8bb": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical in terms of class structure, methods, and docblocks. The only difference is the indentation style within the methods.",
"differences": [
{
"description": "Indentation style differs between the two generators. 'php-stubs-generator' uses consistent indentation throughout the file, while 'Stubz' has inconsistent indentation within the methods."
}
],
"relPath": "includes/admin/settings/class-wc-settings-site-visibility.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/admin/settings/class-wc-settings-site-visibility.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/admin/settings/class-wc-settings-site-visibility.php"
},
"summary_dc7964a44d2519999d8a11679f62ee9b_ff7ee6217a341c814a34f06fb2b33217": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are identical in terms of class definition, methods, and docblocks. The only difference is the presence of a PHP_CodeSniffer disable directive in the 'php-stubs-generator' version.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a PHP_CodeSniffer disable directive (`//phpcs:disable Squiz.Classes.ClassFileName.NoMatch, Squiz.Classes.ValidClassName.NotCamelCaps`) which is absent in the 'Stubz' version."
}
],
"relPath": "includes/blocks/class-wc-brands-block-templates.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/blocks/class-wc-brands-block-templates.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/blocks/class-wc-brands-block-templates.php"
},
"summary_734cde7c7ca4083d0ffd883768741564_342fb384d0b281dddf6610ca7d55811e": {
"summary": "The 'Stubz' generated stub file includes an additional method `sort_fees_callback` that is not present in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file contains a protected method `sort_fees_callback`, which sorts fees by amount. This method is missing in the 'php-stubs-generator' stub file."
}
],
"relPath": "includes/class-wc-cart-fees.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-cart-fees.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-cart-fees.php"
},
"summary_a4ec610a6b237ecdf9b283b9e81f5569_7dc45f1e174e0614f6e11c48bb9226d2": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the WC_Cart_Session class are mostly similar, but there is one notable difference: 'Stubz' includes a protected property '$cart', which is not present in the 'php-stubs-generator' version.",
"differences": [
{
"description": "'Stubz' includes a protected property '$cart' of type WC_Cart, which is not present in the stub file generated by 'php-stubs-generator'."
}
],
"relPath": "includes/class-wc-cart-session.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-cart-session.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-cart-session.php"
},
"summary_0f8db263969077cb8a95e165e6058e26_2abb00943235313a1b220477b9dbbd0f": {
"summary": "Both stub files for the WC_Customer_Download_Log class are similar, with minor differences in formatting and comments. There are no missing classes, methods, or constants between the two generators.",
"differences": [
{
"description": "The 'php-stubs-generator' uses '\\null' while 'Stubz' uses 'null'."
},
{
"description": "'php-stubs-generator' includes a comment block for getters and setters which is not present in 'Stubz'."
}
],
"relPath": "includes/class-wc-customer-download-log.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-customer-download-log.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-customer-download-log.php"
},
"summary_c6778d2df99a422996ea76f48e85dc4f_86832f9802206f74a1f48ce36f81a61b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class WC_Download_Handler are mostly identical, with only minor differences in code formatting. The constant WC_CHUNK_SIZE is present in the 'Stubz' stub file but not in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The constant WC_CHUNK_SIZE is missing in the 'php-stubs-generator' stub file."
}
],
"relPath": "includes/class-wc-download-handler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-download-handler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-download-handler.php"
},
"summary_04e8425cb779a74025466a87d126ce38_49173f2ed45b33a6d99ac1ce2e27a002": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar, with the primary difference being in the formatting of the docblocks and method definitions. Both files define the same class `WC_Order_Item_Coupon` that extends `\tWC_Order_Item` and includes the same methods and properties.",
"differences": [
{
"description": "The 'php-stubs-generator' file uses consistent spacing within the docblock comments, while the 'Stubz' file has inconsistent spacing."
},
{
"description": "In the 'php-stubs-generator' file, the `#[\\ReturnTypeWillChange]` attribute is used with backslashes to specify the namespace, whereas in the 'Stubz' file, it is used without backslashes."
},
{
"description": "The 'php-stubs-generator' file includes a section labeled 'Getters' with comments separating different getter methods, while the 'Stubz' file does not have these separators."
}
],
"relPath": "includes/class-wc-order-item-coupon.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-order-item-coupon.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-order-item-coupon.php"
},
"summary_ef9f8f93beb2b65e5ee022801232ae17_8fb667e8ca2f147d255c5c5c6f1ffe4f": {
"summary": "The two stub files for the WC_Order_Item_Meta class are nearly identical. The main difference is that one uses a backslash before null and boolean values while the other does not.",
"differences": [
{
"description": "In 'php-stubs-generator', null and boolean values are prefixed with a backslash (e.g., \\null, \\false), while in 'Stubz', they are not."
}
],
"relPath": "includes/class-wc-order-item-meta.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-order-item-meta.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-order-item-meta.php"
},
"summary_6a180170c0f56941881ae95923f7b908_65b69418edc6f04e62f13386e00b36a4": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar, with only minor differences in formatting and comments. There are no missing classes, extends/implements differences, methods, constants, or docblocks between the two stubs.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a comment block separating setters and getters, which is absent in the 'Stubz' version."
},
{
"description": "The 'php-stubs-generator' version uses '\\ReturnTypeWillChange' with backslashes, while the 'Stubz' version uses 'ReturnTypeWillChange' without them."
}
],
"relPath": "includes/class-wc-product-attribute.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-product-attribute.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-product-attribute.php"
},
"summary_c637c9b94796015dc564d084d86f40a6_2564d3451bf47f63ed841c81aa268ad9": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the WC_Product_Grouped class are mostly identical. However, there are some differences in formatting and structure.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the docblock for the 'extra_data' property has a space after the opening comment tag (\"). In the 'Stubz' stub, this space is missing."
},
{
"description": "The 'php-stubs-generator' stub includes sections for Getters and Setters with comments above them. The 'Stubz' stub does not include these section headers or comments."
}
],
"relPath": "includes/class-wc-product-grouped.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-product-grouped.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-product-grouped.php"
},
"summary_2c2d28e299b57004c4d0ea18b682487e_16e7204f0c4c7b5d1730c8ebfcc3c568": {
"summary": "The 'Stubz' generated stub file includes additional properties and methods related to shipping rate description and delivery time that are not present in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'data' array in 'Stubz' includes 'description' and 'delivery_time' keys, which are not present in 'php-stubs-generator'."
},
{
"description": "'Stubz' has additional constructor parameters for '$description' and '$delivery_time', which are not present in 'php-stubs-generator'."
},
{
"description": "'Stubz' includes setter methods 'set_description' and 'set_delivery_time', which are not present in 'php-stubs-generator'."
},
{
"description": "'Stubz' includes getter methods 'get_description' and 'get_delivery_time', which are not present in 'php-stubs-generator'."
}
],
"relPath": "includes/class-wc-shipping-rate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/class-wc-shipping-rate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/class-wc-shipping-rate.php"
},
"summary_bbd2be1a05e19e3400d4ea65d38a77cb_22b91e9c9d48f1ce4d811d708a33e878": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with minor differences in formatting.",
"differences": [
{
"description": "The method 'register_commands' in the class 'WC_CLI_Tool_Command' has a closing brace on a new line in 'php-stubs-generator', whereas it is on the same line as the last statement in 'Stubz'."
}
],
"relPath": "includes/cli/class-wc-cli-tool-command.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/cli/class-wc-cli-tool-command.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/cli/class-wc-cli-tool-command.php"
},
"summary_08e470c2118ac6077f3147b3889aa40c_4897fc431a7f37a3454adf693e5b14e3": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in code formatting.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a use statement for the trait '\\Automattic\\WooCommerce\\Internal\\CostOfGoodsSold\\CogsAwareTrait', which is missing in the 'Stubz' version."
},
{
"description": "There are slight differences in code formatting, such as indentation and spacing around curly braces, but these do not affect functionality."
}
],
"relPath": "includes/data-stores/abstract-wc-order-item-type-data-store.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php"
},
"summary_9d6cec974e5a7d2b675315730c94c926_e1987a45aed55040b02394f28fdff97f": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' have similar structure but with a notable difference in the class definition. 'Stubz' includes a constant ID, which is missing in the 'php-stubs-generator' version.",
"differences": [
{
"description": "The 'Stubz' stub file includes a constant 'ID' with the value 'bacs', which is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "includes/gateways/bacs/class-wc-gateway-bacs.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php"
},
"summary_afb71a140316d306099fae805e176fc4_2a16b97ef77bceffe2f04847d0e7db23": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures for the WC_Gateway_COD class but differ in a few aspects. 'Stubz' includes an additional constant ID, while 'php-stubs-generator' does not.",
"differences": [
{
"description": "The stub file generated by 'Stubz' includes a public constant ID with the value 'cod', which is missing in the stub file from 'php-stubs-generator'."
}
],
"relPath": "includes/gateways/cod/class-wc-gateway-cod.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php"
},
"summary_d0868d96160c98a84179da90bfb29659_1d8ea4801dc8f752da130e221f844d8d": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for WC_Gateway_Paypal class are mostly identical. However, there is one key difference in the properties defined in each file.",
"differences": [
{
"description": "The 'Stubz' stub includes a constant property 'ID' with a value of 'paypal', which is not present in the 'php-stubs-generator' stub."
}
],
"relPath": "includes/gateways/paypal/class-wc-gateway-paypal.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php"
},
"summary_fabeb410c916e0f590466a12d8b51c81_9fa393f714ee38b0182d1129a2870f6a": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical. Both define the same class with the same methods, parameters, return types, and docblocks. The only minor difference is in how whitespace is handled around method definitions.",
"differences": [
{
"description": "The stub generated by 'php-stubs-generator' uses backslashes (\\) for null value in the update_database method parameter default value, while 'Stubz' does not."
},
{
"description": "There are differences in whitespace handling around method definitions between the two stubs. 'php-stubs-generator' has consistent indentation and spacing, whereas 'Stubz' has varying levels of indentation."
}
],
"relPath": "includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php"
},
"summary_bcb37befb77d5406defe9c66b137585e_5329ee4a10cb01decb48518cc34b270c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in the docblocks and default parameter values.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a default value for the '$level' parameter in the 'add' method (`$level = \\WC_Log_Levels::NOTICE`), while the 'Stubz' version does not specify any default value."
},
{
"description": "The 'php-stubs-generator' version has an additional docblock comment describing the Logger Interface before the interface definition, which is absent in the 'Stubz' version."
}
],
"relPath": "includes/interfaces/class-wc-logger-interface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/interfaces/class-wc-logger-interface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/interfaces/class-wc-logger-interface.php"
},
"summary_fe4d801a50cb1d1f3a88ccf514b1038e_8b27c53560bf570539e60e7807116326": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar, with only minor differences in formatting. Both files define the same classes and methods.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the type for the static property $last_error is specified as \\null, while in the 'Stubz' stub file, it is specified as null."
}
],
"relPath": "includes/libraries/class-wc-eval-math.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/libraries/class-wc-eval-math.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/libraries/class-wc-eval-math.php"
},
"summary_a571028594eb40737331ef05152446fc_47284be2dc1835f1138168a134e7af66": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'WC_Product_Usage' are very similar, with minor differences in formatting and type hinting syntax.",
"differences": [
{
"description": "The method 'get_rules_for_product' in the stub file from 'Stubz' uses a union type hint `WC_Product_Usage_Rule_Set|null` instead of a nullable return type `?\\"
}
],
"relPath": "includes/product-usage/class-wc-product-usage.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/product-usage/class-wc-product-usage.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/product-usage/class-wc-product-usage.php"
},
"summary_ae6daedf511a98503b41b39e31f72e79_d0e9bcc98ef2dc5e45ba312d64bd649f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially the same, with minor differences in code formatting.",
"differences": [
{
"description": "There is a typo in the class property '$default_cass'. It should be '$default_class'."
}
],
"relPath": "includes/queue/class-wc-queue.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/queue/class-wc-queue.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/queue/class-wc-queue.php"
},
"summary_8d62b0ae2b2e5bb27a15a7f4977bc2ae_7e6a1329e5dc799dcdf2bd76cc7d17ce": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' differ in the presence of one additional method and slight variations in docblocks.",
"differences": [
{
"description": "The class 'Experimental_Abtest' from 'Stubz' includes an additional method 'in_treatment_handled_exception' that is not present in the 'php-stubs-generator' stub."
},
{
"description": "The docblock for the 'in_treatment' method in 'Stubz' provides more detailed exception handling information compared to 'php-stubs-generator'."
}
],
"relPath": "includes/react-admin/class-experimental-abtest.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/react-admin/class-experimental-abtest.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/react-admin/class-experimental-abtest.php"
},
"summary_6dbdb73aab26e5218c77e032d44d7ec0_ec409bd2ef847f7a8d3f11ed0f43f4f9": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting.",
"differences": [
{
"description": "In the 'Stubz' stub file, the method definitions for 'register_routes' and 'get_item' are missing a closing curly brace at the end of each method."
}
],
"relPath": "includes/rest-api/Controllers/Version2/class-wc-rest-tax-classes-v2-controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-tax-classes-v2-controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-tax-classes-v2-controller.php"
},
"summary_aca994cca60cd782b88b05d95206e776_28658f01e3910f1d24620182303ace67": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting.",
"differences": [
{
"description": "The closing brace for the method prepare_objects_query() is indented differently between the two stubs."
}
],
"relPath": "includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php"
},
"summary_6f09fcf79d70775e0923a15a86a66d56_bac90e2de6a1e7ccdbd10a886b050d2a": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely identical. However, there are minor differences in code style and formatting that do not affect the functionality.",
"differences": [
{
"description": "In the 'prepare_object_for_database' method of the WC_REST_Order_Refunds_Controller class, the default value for the $creating parameter is '\\false' in 'php-stubs-generator' and 'false' in 'Stubz'."
},
{
"description": "The closing braces for both methods ('prepare_object_for_database' and 'get_item_schema') have inconsistent indentation. In 'php-stubs-generator', they are indented, while in 'Stubz', they are not."
}
],
"relPath": "includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php"
},
"summary_a34d7b6866a8b1e8c47871088bab182a_4c19028812a6cbb54c484a9950bbad4f": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the WC_REST_Product_Variations_Controller class have differences in methods and traits.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a trait '\\Automattic\\WooCommerce\\Internal\\CostOfGoodsSold\\CogsAwareRestControllerTrait', which is not present in the 'Stubz' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'get_objects($query_args)', which is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'exclude_product_variation_statuses($where)', which is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"
},
"summary_f06c48c7913a33bbd8c1b577f152c85d_0d3fa44dac04ad7e7033305ab74b289d": {
"summary": "Both stub files are nearly identical, with only minor differences in code formatting.",
"differences": [
{
"description": "The 'get_default_api_version' method in the 'php-stubs-generator' stub has a missing closing brace for the method body."
},
{
"description": "The 'get_default_api_version' method in the 'Stubz' stub has an extra opening brace before the method body."
}
],
"relPath": "includes/rest-api/Controllers/Version3/class-wc-rest-webhooks-controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-webhooks-controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-webhooks-controller.php"
},
"summary_bd911a75415b34f493db2505344d2e60_4199a09732fd836e49d7e2f0d19f63f0": {
"summary": "The stub file generated by 'php-stubs-generator' includes a trait usage and docblocks, while the stub file generated by 'Stubz' lacks these elements.",
"differences": [
{
"description": "'php-stubs-generator' uses the SingletonTrait in the Server class."
},
{
"description": "'php-stubs-generator' includes docblocks for all methods and properties."
},
{
"description": "'Stubz' does not include any traits or docblocks in the Server class."
}
],
"relPath": "includes/rest-api/Server.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Server.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Server.php"
},
"summary_e159562ec0975502065e7baaf60aa0d7_ef0dd4d7952e4c2199a2ced7008784ee": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in the implementation of the SingletonTrait.",
"differences": [
{
"description": "'php-stubs-generator' includes a private method '__clone()' to prevent cloning, while 'Stubz' does not."
}
],
"relPath": "includes/rest-api/Utilities/SingletonTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/rest-api/Utilities/SingletonTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/rest-api/Utilities/SingletonTrait.php"
},
"summary_6cada2005327e533269d91b1d869bc14_d4a6f469a4f2cc08050db05ad18a2dda": {
"summary": "The 'Stubz' stub file includes an additional method 'add_request_timestamp_and_nocache' compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file contains the method 'add_request_timestamp_and_nocache', which is not present in the 'php-stubs-generator' stub file. This method adds a request timestamp and no cache parameter to a pixel URL."
}
],
"relPath": "includes/tracks/class-wc-tracks-client.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/tracks/class-wc-tracks-client.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/tracks/class-wc-tracks-client.php"
},
"summary_107ad51fb5004dd3cdd742587ee7aa1f_1d081270bcd0623a2e27bc62bf14450f": {
"summary": "The stub file generated by 'php-stubs-generator' is missing the method `track_woocommerce_allow_tracking_toggled` that is present in the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The method `track_woocommerce_allow_tracking_toggled` is missing in the stub file generated by 'php-stubs-generator'."
}
],
"relPath": "includes/tracks/class-wc-tracks.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/tracks/class-wc-tracks.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/tracks/class-wc-tracks.php"
},
"summary_2f655da7877cb65886c64090a18205ca_3336081e55255edf0d36b824ae9eea28": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in formatting and spacing. There are no significant differences in classes, extends/implements, methods, constants, or docblocks.",
"differences": [
{
"description": "In the 'Stubz' stub file, there is an extra space before and after the array values within the $toggled_options property."
},
{
"description": "There are slight differences in the spacing of method definitions, with 'php-stubs-generator' having methods indented to the next line and 'Stubz' keeping them on the same line."
}
],
"relPath": "includes/tracks/events/class-wc-settings-tracking.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/tracks/events/class-wc-settings-tracking.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/tracks/events/class-wc-settings-tracking.php"
},
"summary_7f25d5946b7a7ef4c192b933fec6e92d_c9c1326f4d8cc3a91410b155344d6cb3": {
"summary": "Both stub files define the same class, methods, and return types. The main difference is in the way the return type for the `get_state` method is specified.",
"differences": [
{
"description": "The 'php-stubs-generator' uses a backslash before the return type in the `get_state` method: `?\\WC_WCCOM_Site_Installation_State`. The 'Stubz' generator does not use a backslash: `WC_WCCOM_Site_Installation_State|null`."
}
],
"relPath": "includes/wccom-site/installation/class-wc-wccom-site-installation-state-storage.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/wccom-site/installation/class-wc-wccom-site-installation-state-storage.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/wccom-site/installation/class-wc-wccom-site-installation-state-storage.php"
},
"summary_83c0e11896e4579cdcb843ed91d6f85f_b7ee4fd5308ac2c56241139f8c13e929": {
"summary": "The stub file generated by 'Stubz' includes an additional method 'maybe_connect_theme' that is not present in the stub file generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The stub file from 'Stubz' includes a protected method 'maybe_connect_theme' which is missing in the stub file from 'php-stubs-generator'."
}
],
"relPath": "includes/wccom-site/installation/installation-steps/class-wc-wccom-site-installation-step-move-product.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/wccom-site/installation/installation-steps/class-wc-wccom-site-installation-step-move-product.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/wccom-site/installation/installation-steps/class-wc-wccom-site-installation-step-move-product.php"
},
"summary_62dad8e6bb95c7d6ce330bc986e51f59_0d8dca5a921756b4d00b185429230319": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with the same constants defined for error codes. However, there is a minor difference in the format of the ERROR_MESSAGES and HTTP_CODES arrays.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the ERROR_MESSAGES and HTTP_CODES arrays use self::CONSTANT_NAME to reference the constants. In contrast, the 'Stubz' stub file directly uses the string values of the constants in these arrays."
}
],
"relPath": "includes/wccom-site/rest-api/class-wc-rest-wccom-site-installer-error-codes.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/wccom-site/rest-api/class-wc-rest-wccom-site-installer-error-codes.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/wccom-site/rest-api/class-wc-rest-wccom-site-installer-error-codes.php"
},
"summary_8b1f9282bd92159e984832ee1a4cd02c_b27d78415d2497b56eaa742020b9b9d6": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the WC_Widget_Product_Tag_Cloud class are similar, but there are some differences in method handling and docblocks.",
"differences": [
{
"description": "The 'php-stubs-generator' includes deprecated methods '_get_current_taxonomy' and '_topic_count_text' within a block that ignores PSR2 standards violations related to underscores in method declarations. The 'Stubz' generator does not include this block and handles these methods without any special treatment for coding standards."
},
{
"description": "The formatting of the methods (i.e., the placement of curly braces) differs slightly between the two generators, with 'php-stubs-generator' having each method on a single line following its declaration and 'Stubz' aligning the opening brace with the method name."
}
],
"relPath": "includes/widgets/class-wc-widget-product-tag-cloud.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/includes/widgets/class-wc-widget-product-tag-cloud.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/includes/widgets/class-wc-widget-product-tag-cloud.php"
},
"summary_779f9e4f3932548a3827961f4e9590c0_2d977a19af893808ef44186edc967fbf": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with only minor differences in syntax and types.",
"differences": [
{
"description": "The second parameter of the reflectArguments method is typed as array in 'php-stubs-generator', while it is explicitly declared as array() in 'Stubz'."
},
{
"description": "The docblock for the reflectArguments method uses a different format for the @param tag. 'php-stubs-generator' uses a single space between the parameter name and its type, while 'Stubz' uses two spaces."
}
],
"relPath": "lib/packages/League/Container/Argument/ArgumentResolverInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/lib/packages/League/Container/Argument/ArgumentResolverInterface.php"
},
"summary_c923bd013575da7c61687b6576e8c13a_d4255bb29158dd4a7b05864630456e4b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class DefinitionAggregate in the namespace Automattic\\WooCommerce\\Vendor\\League\\Container\\Definition are largely identical. However, there are a few minor differences in syntax and formatting.",
"differences": [
{
"description": "The default value of the $definitions parameter in the __construct method is declared as [] in 'php-stubs-generator' and array() in 'Stubz'."
},
{
"description": "In the return types of methods add, getDefinition, resolveTagged, and getIterator, 'php-stubs-generator' uses fully qualified class names (e.g., Automattic\\WooCommerce\\Vendor\\League\\Container\\Definition\\DefinitionInterface) while 'Stubz' uses short names (e.g., DefinitionInterface)."
},
{
"description": "The closing brace of the __construct method is not properly indented in 'php-stubs-generator', whereas it is correctly indented in 'Stubz'."
}
],
"relPath": "lib/packages/League/Container/Definition/DefinitionAggregate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php"
},
"summary_2bc8f60158eaafb98cbcf86133087155_7c3c16c26a6ed52edbab8732147ad9b1": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are largely identical, with minor differences in syntax and formatting. Both files define the same class, interfaces implemented, properties, methods, and docblocks.",
"differences": [
{
"description": "The 'php-stubs-generator' file uses short array syntax `[]` while the 'Stubz' file uses long array syntax `array()` for the `$methods` and `$properties` properties."
},
{
"description": "The method parameter types in the 'php-stubs-generator' file are written as `callable|null`, whereas in the 'Stubz' file, they are written as `callable|null` with spaces around the pipe: `callable | null`."
},
{
"description": "There is a difference in indentation and spacing within method definitions. The 'php-stubs-generator' file has consistent indentation throughout, while the 'Stubz' file has varying levels of indentation for method bodies and closing braces."
}
],
"relPath": "lib/packages/League/Container/Inflector/Inflector.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/lib/packages/League/Container/Inflector/Inflector.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/lib/packages/League/Container/Inflector/Inflector.php"
},
"summary_5408eb58b0c20c389f043fdb2e2a3638_6dc5c706a9cfdc31a882495cde68fe93": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class Automattic\\WooCommerce\\Vendor\\League\\Container\\Inflector\\InflectorAggregate have similar structures but with some minor differences.",
"differences": [
{
"description": "The type hinting for the $callback parameter in the add method differs. 'php-stubs-generator' uses '?callable' while 'Stubz' uses 'callable|null'."
},
{
"description": "The return type of the add method in 'php-stubs-generator' includes the full namespace, whereas 'Stubz' omits it ('Automattic\\WooCommerce\\Vendor\\League\\Container\\Inflector\\Inflector')."
},
{
"description": "In 'Stubz', the $inflectors property is initialized with array() instead of an empty array syntax [] in 'php-stubs-generator'."
}
],
"relPath": "lib/packages/League/Container/Inflector/InflectorAggregate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/lib/packages/League/Container/Inflector/InflectorAggregate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/lib/packages/League/Container/Inflector/InflectorAggregate.php"
},
"summary_627dc632c5e77ba32fa3781ddeb7a650_352a51279b5de4c098a06cadf4da4a41": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in syntax.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, arrays are declared using short array syntax '[]', while in the 'Stubz' stub file, arrays are declared using the older syntax 'array()'."
},
{
"description": "The return type of the methods `add`, `provides`, and `getIterator` in the 'php-stubs-generator' stub file includes the full namespace path. In contrast, the 'Stubz' stub file omits the namespace prefix from these method's return types."
}
],
"relPath": "lib/packages/League/Container/ServiceProvider/ServiceProviderAggregate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/lib/packages/League/Container/ServiceProvider/ServiceProviderAggregate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/lib/packages/League/Container/ServiceProvider/ServiceProviderAggregate.php"
},
"summary_60c16c7c0a240e3bfda570bbcc840169_3f2a2d560c6b90984bb8929dc815f3f1": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially the same, with minor differences in phpcs disable comments.",
"differences": [
{
"description": "The 'php-stubs-generator' includes additional phpcs disable comments before each function definition."
}
],
"relPath": "packages/action-scheduler/action-scheduler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/action-scheduler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/action-scheduler.php"
},
"summary_fe919f20b615860c76d893293bb398bb_71ffa6ef7c072e0c90c6cb6f258e7c71": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the ActionScheduler_DateTime class are largely similar, but there are some minor differences in method attributes and docblocks.",
"differences": [
{
"description": "The 'getTimestamp', 'setUtcOffset', 'getOffset', 'setTimezone', and 'getOffsetTimestamp' methods in the 'php-stubs-generator' stub have a missing closing brace for the function body, whereas the 'Stubz' stub includes it."
},
{
"description": "The 'php-stubs-generator' stub uses the fully qualified attribute '\\ReturnTypeWillChange', while the 'Stubz' stub uses the short form 'ReturnTypeWillChange'."
}
],
"relPath": "packages/action-scheduler/classes/ActionScheduler_DateTime.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/ActionScheduler_DateTime.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_DateTime.php"
},
"summary_564f8f911bac5c27614aa98f8145e191_bb7feee5a5f3358d4eada5d04933c56b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class ActionScheduler_LogEntry are largely identical, with only minor differences in formatting.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the namespace is declared as '\\\\Datetime', while in the 'Stubz' stub, it is declared as 'null'. However, this difference does not affect the functionality of the class."
},
{
"description": "The indentation and spacing within the methods and constructor are slightly different between the two stubs. For example, the opening brace '{' for methods in 'php-stubs-generator' is on a new line, whereas in 'Stubz', it is on the same line as the method declaration."
}
],
"relPath": "packages/action-scheduler/classes/ActionScheduler_LogEntry.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/ActionScheduler_LogEntry.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_LogEntry.php"
},
"summary_99421b85b66ab017302c2413b15a4379_e055e6904468e242d1df29017e54bad7": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class ActionScheduler_WPCommentCleaner are nearly identical. The only difference is in the initialization of the static property $wp_comment_logger, where 'php-stubs-generator' uses \\null while 'Stubz' uses null.",
"differences": [
{
"description": "The initialization of the static property $wp_comment_logger differs between the two stub files. 'php-stubs-generator' initializes it with \\null, while 'Stubz' initializes it with null."
}
],
"relPath": "packages/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php"
},
"summary_780395d7f0cd3e33f42c1e71a054569d_7bf7255cad06e63ea0208315f6f21081": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely identical, with minor differences in formatting and comments. Both stubs define the same class structure and methods.",
"differences": [
{
"description": "The type hinting for $date parameter in __construct method is inconsistent: 'php-stubs-generator' uses '\\DateTime', while 'Stubz' uses 'DateTime'."
},
{
"description": "There are minor differences in the formatting of methods and properties, such as the placement of curly braces and the spacing around type hints."
}
],
"relPath": "packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php"
},
"summary_e32ad0710082392757d21c42883b9ba5_d429e447bed4edc0daa6752028e0c6d9": {
"summary": "The stub file generated by 'php-stubs-generator' includes a default value for the static property $lock_duration, while the stub file generated by 'Stubz' does not.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file defines a default value of '\\MINUTE_IN_SECONDS' for the static property $lock_duration, whereas the 'Stubz' stub file does not provide any default value."
}
],
"relPath": "packages/action-scheduler/classes/abstracts/ActionScheduler_Lock.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Lock.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Lock.php"
},
"summary_c57443c24f417e355d3133b496fba9c3_620c6295f4af58075314420a54167c49": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with only minor differences in syntax and formatting.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the namespace for the `ActionScheduler_Schedule` class is referenced as `\\ActionScheduler_Schedule`. In the 'Stubz' stub file, it is referenced as `ActionScheduler_Schedule|null` without a leading backslash."
},
{
"description": "In the 'php-stubs-generator' stub file, the `null` keyword is used with a backslash prefix (`\\null`). In the 'Stubz' stub file, it is used without a backslash (`null`)."
}
],
"relPath": "packages/action-scheduler/classes/actions/ActionScheduler_NullAction.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_NullAction.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_NullAction.php"
},
"summary_10524e0dd8f2048c6fa6137fc4365870_792b303e949ba30c2ed1d12a66ee5e45": {
"summary": "The two stub files for the ActionScheduler_DBLogger class are largely identical in terms of methods, parameters, and return types. The main difference is the formatting of the DateTime type hint within the log method.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the DateTime type hint in the log method uses a backslash before DateTime (\\DateTime), while 'Stubz' omits it."
}
],
"relPath": "packages/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php"
},
"summary_7be911debbdd4b9472e79e55bbf50ade_b606ffb0ec7a17346482482040af8cb8": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have minor differences in type hinting for the constructor parameters.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the namespace is not included before the class names in the constructor method signature. For example, '\\ActionScheduler_Store' should be used instead of just 'ActionScheduler_Store'."
},
{
"description": "The methods and properties have identical signatures and docblocks in both files."
}
],
"relPath": "packages/action-scheduler/classes/migration/ActionMigrator.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/migration/ActionMigrator.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionMigrator.php"
},
"summary_c2a0c313127db70c11db7e0cf5fff914_7aec22b3df50004b713ecfbd6aa6c04c": {
"summary": "The two stub files for the ActionScheduler_CanceledSchedule class are largely similar, but there are minor differences in code formatting and type declarations.",
"differences": [
{
"description": "In the 'php-stubs-generator' file, the parameter types for methods like calculate_next(), get_next() are explicitly specified as \\DateTime. In the 'Stubz' file, these types are specified without the leading backslash (DateTime)."
},
{
"description": "The method implementations in both files are empty and only contain the opening curly brace '{', indicating that the actual implementation is missing."
}
],
"relPath": "packages/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php"
},
"summary_6e6e59d0b2e2ccf9f2434adbfebb5a1a_c1ced7a13d69358eb35c83a2e2c10f38": {
"summary": "Both stub files define a class ActionScheduler_NullSchedule that extends ActionScheduler_SimpleSchedule and includes the same properties and methods. The main difference is in the syntax for the default value of the $date parameter in the constructor.",
"differences": [
{
"description": "The php-stubs-generator uses `?\null` as the default value type hint for the $date parameter in the __construct method, while Stubz uses `DateTime|null`."
},
{
"description": "There are minor differences in formatting, such as indentation and spacing around braces, but these do not affect functionality."
}
],
"relPath": "packages/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php"
},
"summary_303680676e2f489bc3901c1ce71180b3_6882a384c49ec00b362c486cba9e2875": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, but there is a minor difference in the method parameter type declaration.",
"differences": [
{
"description": "In the 'Stubz' stub file, the method parameter `$after` in the `next` method is declared with a more modern syntax: `DateTime|null`. In contrast, the 'php-stubs-generator' stub file uses the older syntax: `?\n```json\n{\n \"summary\": \"The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, but there is a minor difference in the method parameter type declaration.\",\n \"differences\": [\n {\n \"description\": \"In the 'Stubz' stub file, the method parameter `$after` in the `next` method is declared with a more modern syntax: `DateTime|null`. In contrast, the 'php-stubs-generator' stub file uses the older syntax: `?\\DateTime $after = null`.\"\n }\n ]\n}\n```"
}
],
"relPath": "packages/action-scheduler/classes/schedules/ActionScheduler_Schedule.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/classes/schedules/ActionScheduler_Schedule.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/classes/schedules/ActionScheduler_Schedule.php"
},
"summary_c4bc42de1123c5f719bea6ebb47a6a2d_05f995eaaae88616eb05f9e89667bca7": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are a few differences in syntax and types.",
"differences": [
{
"description": "In the 'Stubz' stub file, the type hint for the '$after' parameter in the 'next' method uses a union type (DateTime|null), while the 'php-stubs-generator' stub file does not specify the nullability of the DateTime type."
},
{
"description": "The closing brace for the 'next' method is indented differently between the two stub files. In 'Stubz', it is indented to align with the opening brace, while in 'php-stubs-generator', it is aligned with the method signature."
}
],
"relPath": "packages/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php"
},
"summary_245da6a37fb9f8efc5746e01ed96ea18_0d00a92ce1e0b7a274015d53683ba5a2": {
"summary": "The stub file generated by 'php-stubs-generator' contains a comprehensive set of docblocks and function signatures for Action Scheduler functions, while the stub file generated by 'Stubz' has some minor differences in parameter types and documentation.",
"differences": [
{
"description": "The docblock in 'php-stubs-generator' for `wc_get_scheduled_actions` specifies that `$return_format` can be OBJECT, ARRAY_A, or ids. The stub from 'Stubz' does not explicitly list these options."
},
{
"description": "In the function signature of `wc_get_scheduled_actions` in 'php-stubs-generator', the default value for `$return_format` is specified as \\OBJECT. In 'Stubz', it is listed without a default value, which might imply that no default is intended or provided."
}
],
"relPath": "packages/action-scheduler/deprecated/functions.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/deprecated/functions.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/deprecated/functions.php"
},
"summary_856eee7c8eb3e2d8c835248863f4c0e4_800ae9da8fef42ccb30de7ad54581898": {
"summary": "The two stub files for the CronExpression_DayOfMonthField class are nearly identical. The only differences observed are minor code formatting changes such as spacing and line breaks.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the DateTime and bool types in method signatures are fully qualified with a backslash (\\DateTime, \\false). In contrast, the 'Stubz' stub omits these backslashes."
},
{
"description": "The method bodies in both stubs are empty and do not contain any implementation code. This is consistent between the two generators."
}
],
"relPath": "packages/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php"
},
"summary_a432baf15ed3a6deecf09cf3597b5035_970f9bc9a496a4ade4ab058f8ab615ce": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical in terms of class definition, extends/implements, methods, constants, and docblocks. The only differences observed are purely code style related, such as the spacing around curly braces and the absence of a semicolon at the end of method definitions.",
"differences": [
{
"description": "In 'php-stubs-generator', there is no semicolon at the end of each method definition (e.g., public function isSatisfiedBy(DateTime $date, $value)). In contrast, 'Stubz' includes a semicolon."
},
{
"description": "The spacing around curly braces for class and method definitions differs between the two stub files. 'php-stubs-generator' uses different spacing compared to 'Stubz'."
}
],
"relPath": "packages/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/packages/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/packages/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php"
},
"summary_9ce7f40c24d9c13ae478ab06a7c36877_d31a862c67b87376c7f43b82d15512c4": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class Automattic\\WooCommerce\\Admin\\API\\AI\\Product are nearly identical, with only minor differences in formatting.",
"differences": [
{
"description": "There is a difference in indentation within the method definitions. 'php-stubs-generator' uses consistent indentation for opening curly braces of methods, while 'Stubz' has inconsistent indentation."
}
],
"relPath": "src/Admin/API/AI/Product.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/AI/Product.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/AI/Product.php"
},
"summary_8e703f71e71d66e3393525dd927b5746_f1ea20c9cb6f15cf01bd6c8881596c3a": {
"summary": "Both stub files are identical in terms of classes, extends/implements, methods, constants, and docblocks. The only difference is the presence of curly braces on method definitions, which does not affect functionality.",
"differences": [
{
"description": "Method definitions in 'php-stubs-generator' have curly braces while those in 'Stubz' do not."
}
],
"relPath": "src/Admin/API/Coupons.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Coupons.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Coupons.php"
},
"summary_50f05678c1060c5f142958a58d6eae5d_5be37738b9c57bf2dc7cdb7c072e44b4": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in code formatting. Both stubs define the same class structure, methods, properties, and docblocks.",
"differences": [
{
"description": "The method definitions in 'Stubz' lack curly braces and are not indented properly."
}
],
"relPath": "src/Admin/API/Notice.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Notice.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Notice.php"
},
"summary_339b7772ce916ec1ec7759e7c47ff123_9a8a9f0b2caba4a5fd4f1f1847c5569c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are identical in terms of classes, extends/implements, methods, constants, and docblocks. The only difference is the presence of missing method bodies in both stubs.",
"differences": [
{
"description": "The method 'register_routes()' is defined without a body in both stub files."
},
{
"description": "The method 'get_permission_check($request)' is defined without a body in both stub files."
},
{
"description": "The method 'get_suggestions($request)' is defined without a body in both stub files."
},
{
"description": "The method 'dismiss_payment_gateway_suggestion()' is defined without a body in both stub files."
},
{
"description": "The method 'get_item_schema()' is defined without a body in both stub files."
}
],
"relPath": "src/Admin/API/PaymentGatewaySuggestions.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php"
},
"summary_6730e2901f22614b9a70a9c708a0587f_79782d05241c59e2ed16fdc302b67da7": {
"summary": "The stub file generated by 'php-stubs-generator' includes a trait that is missing in the stub file generated by 'Stubz'. Additionally, there are minor code style differences such as the placement of opening curly braces for method definitions.",
"differences": [
{
"description": "The 'ProductAttributeTerms' class in 'php-stubs-generator' uses the 'CustomAttributeTraits' trait, which is not present in the 'Stubz' version."
},
{
"description": "In 'php-stubs-generator', the opening curly braces for method definitions are on the same line as the method signature. In 'Stubz', the opening curly braces are on a new line."
}
],
"relPath": "src/Admin/API/ProductAttributeTerms.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/ProductAttributeTerms.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/ProductAttributeTerms.php"
},
"summary_977d291b162229716736c03215916a9f_b58782b65f5337e331d1cf2dc3789d4f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in terms of class traits, methods implementation details, and code formatting.",
"differences": [
{
"description": "The 'php-stubs-generator' file includes a trait usage with `use \\Automattic\\WooCommerce\\Admin\\API\\CustomAttributeTraits;`, while the 'Stubz' file does not include any traits."
},
{
"description": "In the 'php-stubs-generator' file, method implementations are provided as empty methods (e.g., `public function register_routes() {}`). In contrast, the 'Stubz' file also has method implementations but they are just opening curly braces with no code inside (e.g., `public function register_routes(){}`)."
},
{
"description": "The 'php-stubs-generator' file has a docblock for the `$namespace` property (`/** @var string */ protected $namespace = 'wc-analytics';`), which is missing in the 'Stubz' file."
}
],
"relPath": "src/Admin/API/ProductAttributes.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/ProductAttributes.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/ProductAttributes.php"
},
"summary_4c7aef5d66a3700f600babf0ad742af7_9a183a8472a65a06777e0ee9a86043b1": {
"summary": "The 'Stubz' generated stub file includes additional protected methods and a property that are not present in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file has an additional protected property '$namespace' initialized to 'wc-analytics', which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'set_last_order_date($results = array())' that is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'get_low_in_stock_products($page = 1, $per_page = 1, $status)' that is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'is_using_sitewide_stock_threshold_only()' that is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'transform_post_to_api_response($query_result)' that is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'get_query($sitewide_only = false)' that is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a method 'get_count_query($sitewide_only = false)' that is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Admin/API/ProductsLowInStock.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/ProductsLowInStock.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/ProductsLowInStock.php"
},
"summary_819b107a952d09e434ad21a1cbc94bc6_717cf9752135cade07e01ba560cfd769": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, but there is a difference in the use of traits.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a trait '\\Automattic\\WooCommerce\\Admin\\API\\Reports\\OrderAwareControllerTrait', while 'Stubz' does not include this trait."
}
],
"relPath": "src/Admin/API/Reports/Categories/Controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Categories/Controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php"
},
"summary_91a6817746d4e1af1efa5243f5f222ac_4aa62d328d2b35a4cd0ace65a3343afc": {
"summary": "The 'php-stubs-generator' stub file includes an additional trait used by the Controller class, while the 'Stubz' stub file does not mention this trait. The methods in both files are identical, but the formatting of method bodies differs slightly.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes the use of the OrderAwareControllerTrait, which is not present in the 'Stubz' stub file."
},
{
"description": "Method bodies in the 'Stubz' stub file are missing closing braces for their function definitions, whereas they are correctly formatted with closing braces in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Admin/API/Reports/Controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Controller.php"
},
"summary_a60b58b6fd2a304a2a84c6897129cb77_d20bb99931f484ed586259abf9ac4da5": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures but there are some differences in the implementation details. Specifically, the methods in 'php-stubs-generator' are documented with placeholder comments indicating that they need to be implemented, while 'Stubz' has empty method bodies without any documentation.",
"differences": [
{
"description": "In 'php-stubs-generator', the methods have placeholder comments indicating that they need to be implemented. For example, in `assign_report_columns()`, there is a comment `// Assign report columns once full table name has been assigned.` In contrast, in 'Stubz', the method body is empty without any comments."
},
{
"description": "In 'php-stubs-generator', the methods have detailed docblocks that describe their purpose, parameters, and return values. For example, `get_noncached_stats_data()` has a comprehensive docblock explaining its functionality. In 'Stubz', these docblocks are missing, leaving only method signatures."
},
{
"description": "In 'php-stubs-generator', the properties `$column_types`, `$report_columns`, `$context`, and `$cache_key` are defined with detailed comments explaining their purpose. In 'Stubz', the comments are still present but less descriptive, simply stating the property name and its type."
}
],
"relPath": "src/Admin/API/Reports/Coupons/Stats/DataStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php"
},
"summary_2c082cd3fbf8c8b9fcc91b528ec1c26e_be827af08610090e4711eac8f07250e1": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures but differ in some details, primarily related to the use of traits and formatting.",
"differences": [
{
"description": "The class 'DataStore' from 'php-stubs-generator' uses a trait 'StatsDataStoreTrait', which is not present in the 'Stubz' version."
},
{
"description": "The methods in 'php-stubs-generator' have empty method bodies enclosed within curly braces `{}` with an indented closing brace, while 'Stubz' has all method bodies on a single line without indentation."
}
],
"relPath": "src/Admin/API/Reports/Downloads/Stats/DataStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php"
},
"summary_a7650b27ae2d6138ccde2d662d1f7a66_cc0237b9426fade07b41ca8d8f7663c1": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are identical in terms of class, methods, docblocks, and properties. The only difference is the formatting of the code blocks.",
"differences": [
{
"description": "The method implementations are not present in both stubs."
}
],
"relPath": "src/Admin/API/Reports/Export/Controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Export/Controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Export/Controller.php"
},
"summary_c41151a70e8c8708fa7c2be6ff089609_2cb2f9f2689e1905c50621b099a0b812": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures but differ in several aspects, including method implementations and the use of traits.",
"differences": [
{
"description": "The 'php-stubs-generator' stub includes a trait usage: `use \\Automattic\\WooCommerce\\Internal\\Traits\\OrderAttributionMeta;`, which is absent in the 'Stubz' stub."
},
{
"description": "Method implementations are present in the 'php-stubs-generator' stub but not in the 'Stubz' stub. For example, methods like `__construct`, `assign_report_columns`, etc., have empty method bodies in 'php-stubs-generator' but are missing entirely in 'Stubz'."
},
{
"description": "The order of properties and methods differs between the two stubs. While this is allowed and does not affect functionality, it might impact code readability or static analysis tools."
}
],
"relPath": "src/Admin/API/Reports/Orders/DataStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Orders/DataStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php"
},
"summary_ec82ed3ba4550dfd553225894ae25486_b61e1c25005c2dd26b78f3c2f6c0fddd": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar, with minor differences in code formatting. Both define a class 'DataStore' that extends '\nAutomattic\\WooCommerce\\Admin\\API\\Reports\\Products\\DataStore' and implements '\nAutomattic\\WooCommerce\\Admin\\API\\Reports\\DataStoreInterface'. The methods and properties defined are the same in both files.",
"differences": [
{
"description": "The class 'DataStore' uses a trait '\\Automattic\\WooCommerce\\Admin\\API\\Reports\\StatsDataStoreTrait' in the 'php-stubs-generator' stub, but this trait is missing from the 'Stubz' stub."
},
{
"description": "The methods in both stubs have different code formatting. For example, the method bodies in 'php-stubs-generator' are enclosed within curly braces on separate lines, while in 'Stubz', they are immediately after the method declarations without any spaces or new lines."
}
],
"relPath": "src/Admin/API/Reports/Products/Stats/DataStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php"
},
"summary_45567f621109d19431b3f9076d77183c_24fa807eef7a8d8b408ae9247e46b8a5": {
"summary": "The stub file generated by 'php-stubs-generator' includes additional traits and methods compared to the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a trait named `OrderAwareControllerTrait`, which is missing in the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' stub file includes a trait named `ExportableTraits`, which is missing in the 'Stubz' stub file."
}
],
"relPath": "src/Admin/API/Reports/Variations/Controller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Variations/Controller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php"
},
"summary_f7deb538ad8d41098dd364103cf47d0c_2475f1d4d2ad0e55647a1bb2a098113a": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the class DataStore in the namespace Automattic\\WooCommerce\\Admin\\API\\Reports\\Variations\\Stats have similar structures, but there are some minor differences in code style and formatting.",
"differences": [
{
"description": "The 'php-stubs-generator' version uses the StatsDataStoreTrait in the class definition."
},
{
"description": "The methods in the 'php-stubs-generator' version have more detailed docblocks, including type hints for method parameters and return types where applicable."
},
{
"description": "The method implementations in both versions end with a single closing brace, but 'php-stubs-generator' has an extra space before the opening brace of each method."
}
],
"relPath": "src/Admin/API/Reports/Variations/Stats/DataStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php"
},
"summary_682816b7fe7f5715fca912e964d4b3b4_922ca5e4ce5ef9e521eb2c17eb1d48af": {
"summary": "The two stub files are largely identical, with no significant differences in class definitions, extends/implements clauses, methods, constants, or docblocks. The minor difference is purely a code style variation in the closing brace of the `batch_items` method.",
"differences": [
{
"description": "The closing brace of the `batch_items` method is placed on a new line in the 'php-stubs-generator' stub file, whereas it is placed immediately after the method content in the 'Stubz' stub file."
}
],
"relPath": "src/Admin/API/SettingOptions.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/API/SettingOptions.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/API/SettingOptions.php"
},
"summary_029b6799f287fb4e8456885b68f05363_36d4d1286e4326ff4956e864d366a046": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in method signatures and return types.",
"differences": [
{
"description": "In the 'get_root_template' method, 'php-stubs-generator' uses '&get_root_template(): \\Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockTemplateInterface;' while 'Stubz' uses 'get_root_template(): Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockTemplateInterface;'. The '&' symbol in 'php-stubs-generator' indicates that the method returns a reference."
},
{
"description": "In the 'get_block' method, 'php-stubs-generator' uses 'public function get_block(string $block_id): ?\\Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface;' while 'Stubz' uses 'public function get_block(string $block_id): Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface|null;'. The '?' symbol in 'php-stubs-generator' indicates a nullable return type, which is equivalent to '|null' in 'Stubz'."
}
],
"relPath": "src/Admin/BlockTemplates/ContainerInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/BlockTemplates/ContainerInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/BlockTemplates/ContainerInterface.php"
},
"summary_43f001ad3291a94055654599c89284fb_0fa309141ba19481a2955274c8861d19": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in constants.",
"differences": [
{
"description": "The constant 'WC_ADMIN_PACKAGE_EXISTS' is present in the 'Stubz' stub file but missing in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Admin/Composer/Package.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Composer/Package.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Composer/Package.php"
},
"summary_587885e72c00dd67a9e1368675144967_732972246c94cb47e354bbfc204aa57d": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly identical for the class DeprecatedClassFacade. The only difference is that 'php-stubs-generator' includes a phpcs disable comment at the top of the file, which 'Stubz' does not include.",
"differences": [
{
"description": "The stub from 'php-stubs-generator' includes a phpcs disable comment (`// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped`) at the top of the file. The stub from 'Stubz' does not include this comment."
}
],
"relPath": "src/Admin/DeprecatedClassFacade.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/DeprecatedClassFacade.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/DeprecatedClassFacade.php"
},
"summary_45906317e9a0551e472564116cdc4132_fc3eb2f3c164ebfa8d4d6ec0926ce631": {
"summary": "The stub file generated by 'Stubz' includes additional methods compared to the one generated by 'php-stubs-generator'. The order of interfaces implemented differs between the two generators.",
"differences": [
{
"description": "The 'Stubz' generator includes an additional method 'get_label()' which is missing in the 'php-stubs-generator' version."
},
{
"description": "The 'Stubz' generator includes an additional method 'get_description()' which is missing in the 'php-stubs-generator' version."
},
{
"description": "The order of interfaces implemented by the class differs. 'php-stubs-generator' lists 'StepExporter' first followed by 'HasAlias', while 'Stubz' lists them in reverse order."
}
],
"relPath": "src/Admin/Features/Blueprint/Exporters/ExportWCCoreProfilerOptions.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCCoreProfilerOptions.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCCoreProfilerOptions.php"
},
"summary_a8b4ea5a6d06352f6953bcc64cb4259f_8e2d90913e0d8558834654f94ffc3dcc": {
"summary": "The stub file generated by 'Stubz' contains additional methods that are not present in the stub file generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The method 'get_label()' is defined in the stub file from 'Stubz' but missing in the stub file from 'php-stubs-generator'."
},
{
"description": "The method 'get_description()' is defined in the stub file from 'Stubz' but missing in the stub file from 'php-stubs-generator'."
}
],
"relPath": "src/Admin/Features/Blueprint/Exporters/ExportWCPaymentGateways.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCPaymentGateways.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCPaymentGateways.php"
},
"summary_9cd2d328bec7a39f8c30cc8ca6f55311_539a5fe63f5da9f97dadace2450e604a": {
"summary": "The 'Stubz' generated stub file has additional methods 'get_label' and 'get_description' compared to the 'php-stubs-generator' generated stub file. The order of interfaces implemented by the class also differs between the two generators.",
"differences": [
{
"description": "The 'Stubz' generator includes the method 'get_label' which is not present in the 'php-stubs-generator' stub."
},
{
"description": "The 'Stubz' generator includes the method 'get_description' which is not present in the 'php-stubs-generator' stub."
},
{
"description": "The order of interfaces implemented by the class differs. In 'php-stubs-generator', the class implements \\Automattic\\WooCommerce\\Blueprint\\Exporters\\StepExporter, \\Automattic\\WooCommerce\\Blueprint\\Exporters\\HasAlias. In 'Stubz', the order is reversed: \\Automattic\\WooCommerce\\Blueprint\\Exporters\\HasAlias, \\Automattic\\WooCommerce\\Blueprint\\Exporters\\StepExporter."
}
],
"relPath": "src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php"
},
"summary_c35d495994dd3808c33e97452b5b0d61_41da0f8d2d1e8a8c5b82c39dfa2e55d1": {
"summary": "The stub file generated by 'Stubz' includes additional methods compared to the one generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The method 'get_label' is present in the stub file from 'Stubz' but missing in the stub file from 'php-stubs-generator'."
},
{
"description": "The method 'get_description' is present in the stub file from 'Stubz' but missing in the stub file from 'php-stubs-generator'."
}
],
"relPath": "src/Admin/Features/Blueprint/Exporters/ExportWCShipping.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCShipping.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCShipping.php"
},
"summary_d701d139b74c1b52f3626925d55edb36_8b45f037d7e54e4cace66c2917e1fe3e": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' differ in the implementation of the ExportWCTaskOptions class. The primary differences are the interfaces implemented, method signatures, and additional methods.",
"differences": [
{
"description": "The order of interfaces implemented differs: 'php-stubs-generator' implements StepExporter first followed by HasAlias, while 'Stubz' does the opposite."
},
{
"description": "The use statement for 'Automattic\\WooCommerce\\Blueprint\\UseWPFunctions' is missing in the 'Stubz' stub file."
},
{
"description": "'Stubz' includes additional methods get_label() and get_description(), which are not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Admin/Features/Blueprint/Exporters/ExportWCTaskOptions.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCTaskOptions.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCTaskOptions.php"
},
"summary_0d4d3351be8ebea151c4ee2808ef5430_edff16c535d579b41b2513734007eb77": {
"summary": "The stub file generated by 'Stubz' includes additional methods compared to the one generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The 'get_label()' method is present in the 'Stubz' stub file but missing from the 'php-stubs-generator' stub file."
},
{
"description": "The 'get_description()' method is present in the 'Stubz' stub file but missing from the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Admin/Features/Blueprint/Exporters/ExportWCTaxRates.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCTaxRates.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCTaxRates.php"
},
"summary_c77326f3b90bfc98b851ba2d56c009bc_f1c4c3a666f1c26de4ed79afb76982b1": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting and the inclusion of a trait.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a trait `use Automattic\\WooCommerce\\Blueprint\\UseWPFunctions;`, which is not present in the 'Stubz' stub."
},
{
"description": "There are minor differences in formatting, such as indentation and closing braces position, but these do not affect functionality."
}
],
"relPath": "src/Admin/Features/Blueprint/Importers/ImportSetWCPaymentGateways.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Importers/ImportSetWCPaymentGateways.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Importers/ImportSetWCPaymentGateways.php"
},
"summary_5c439e4f52bc7176a3db1662767a38c6_c09907a4a943c75a7cbe7b7799fb639c": {
"summary": "The stub file generated by 'php-stubs-generator' includes a trait and additional methods that are missing in the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The class 'ImportSetWCShipping' from 'php-stubs-generator' uses the trait '\\Automattic\\WooCommerce\\Blueprint\\UseWPFunctions', which is not present in the 'Stubz' version."
},
{
"description": "The method 'get_step_class()' in the 'php-stubs-generator' version has a return type hint '\\string', whereas in the 'Stubz' version, it only returns 'string'."
}
],
"relPath": "src/Admin/Features/Blueprint/Importers/ImportSetWCShipping.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Importers/ImportSetWCShipping.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Importers/ImportSetWCShipping.php"
},
"summary_7dc22949a9104d1f15e8ed40e8e82c79_18fe1abaa203cd305a26e4c556c2a1a2": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files have several differences in methods, docblocks, and the absence of certain methods. The 'php-stubs-generator' has an additional method 'add_upload_nonce_to_settings', while 'Stubz' lacks this method. Similarly, 'php-stubs-generator' does not include the methods 'get_woo_exporters', 'get_step_groups_for_js', and 'add_js_vars', which are present in 'Stubz'.",
"differences": [
{
"description": "Method 'add_upload_nonce_to_settings' is present in 'php-stubs-generator' but missing in 'Stubz'."
},
{
"description": "Method 'get_woo_exporters' is present in 'Stubz' but missing in 'php-stubs-generator'."
},
{
"description": "Method 'get_step_groups_for_js' is present in 'Stubz' but missing in 'php-stubs-generator'."
},
{
"description": "Method 'add_js_vars' is present in 'Stubz' but missing in 'php-stubs-generator'."
}
],
"relPath": "src/Admin/Features/Blueprint/Init.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/Init.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php"
},
"summary_7f9d60597de6e7f81e3ce387a413b192_97e7d33cdd32a86289208659f7379194": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have differences in class properties, methods, and their implementations.",
"differences": [
{
"description": "Namespace value differs. 'php-stubs-generator' has '$namespace = 'blueprint';', while 'Stubz' has '$namespace = 'wc-admin';'."
},
{
"description": "'Stubz' includes additional methods: queue(), process(WP_REST_Request $request), get_queue_response_schema(), and get_process_response_schema() which are not present in 'php-stubs-generator'."
}
],
"relPath": "src/Admin/Features/Blueprint/RestApi.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/Blueprint/RestApi.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php"
},
"summary_564b309d96fda510c552f0bdce4b1a8f_d6585c77d4a184c4acf5df8fe27d22a9": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' differ in the presence of one method.",
"differences": [
{
"description": "'Stubz' includes an additional method `maybe_track_template_change` that is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Admin/Features/LaunchYourStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/LaunchYourStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php"
},
"summary_66a4e2a732aa0be87b0138bba7ed702e_3f758e48cca55add7dbc1073f8d22a0e": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical, with no significant differences in classes, extends/implements, methods, constants, or docblocks. The only notable difference is the code formatting regarding the method bodies, which is purely a matter of style and does not affect functionality.",
"differences": [
{
"description": "The method bodies for `get_instance()` and `get_data_sources()` are not implemented in both stub files. This is consistent between the two generators."
},
{
"description": "There are minor code style differences in the formatting of the method bodies, but these do not affect the functionality of the code."
}
],
"relPath": "src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php"
},
"summary_35ae90e80c0cc5c8dfbacab4f1de82b7_471c723b19141f907ea7f0d199b60808": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' for the class ProductFormsController are largely identical, with minor differences in formatting. The methods and their parameters are consistent between both generators.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the method parameter type for 'WP_Upgrader' in 'migrate_templates_when_plugin_updated' is fully qualified with a backslash (\\WP_Upgrader), while 'Stubz' uses a relative namespace reference (WP_Upgrader)."
},
{
"description": "There are slight differences in the formatting of method body braces and alignment, but these do not affect functionality."
}
],
"relPath": "src/Admin/Features/ProductBlockEditor/ProductFormsController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/ProductBlockEditor/ProductFormsController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/ProductFormsController.php"
},
"summary_9b4c67f0b5d59706a3bb2110c20a722f_a90812f36892364b81e1d0370b0dc2d3": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the GroupInterface are mostly identical, with only a minor difference in the fully qualified class name of the return type in the add_section method.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the add_section method returns \\Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\SectionInterface. In contrast, the 'Stubz' stub file returns Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\SectionInterface without a leading backslash."
}
],
"relPath": "src/Admin/Features/ProductBlockEditor/ProductTemplates/GroupInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/GroupInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/GroupInterface.php"
},
"summary_5486625fde7513be2c7e29e39aba5577_c75b1b4bc818678b1edf4f16fa9ca880": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have minor differences in return type declarations for the methods of the ProductFormTemplateInterface. The 'php-stubs-generator' uses a shorter syntax for null types, while 'Stubz' provides the fully qualified namespace path.",
"differences": [
{
"description": "In the 'get_group_by_id' method, 'php-stubs-generator' returns 'GroupInterface|null', whereas 'Stubz' returns 'Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\GroupInterface|null'."
},
{
"description": "In the 'get_section_by_id' method, 'php-stubs-generator' returns 'SectionInterface|null', whereas 'Stubz' returns 'Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\SectionInterface|null'."
},
{
"description": "In the 'get_subsection_by_id' method, 'php-stubs-generator' returns 'SubsectionInterface|null', whereas 'Stubz' returns 'Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\SubsectionInterface|null'."
},
{
"description": "In the 'get_block_by_id' method, 'php-stubs-generator' returns 'BlockInterface|null', whereas 'Stubz' returns 'Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface|null'."
}
],
"relPath": "src/Admin/Features/ProductBlockEditor/ProductTemplates/ProductFormTemplateInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/ProductFormTemplateInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/ProductFormTemplateInterface.php"
},
"summary_5f6a8c189f9fae04e99925acabc33d83_07abc0208311dbf3811281e37d7a1cbb": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have differences in the return type of the `add_block` method.",
"differences": [
{
"description": "In the stub file from 'php-stubs-generator', the `add_block` method returns `\\Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface`. In contrast, the stub file from 'Stubz' returns `Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface` without a leading backslash."
}
],
"relPath": "src/Admin/Features/ProductBlockEditor/ProductTemplates/SubsectionInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/SubsectionInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/SubsectionInterface.php"
},
"summary_c649d54c1e2fc539d1b254f6df384c9b_6eb19525670abd50bb948b25f74c67b4": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'Automattic\\WooCommerce\\Admin\\Marketing\\MarketingChannels' are similar. The main difference is in the formatting of the method definitions.",
"differences": [
{
"description": "In the 'Stubz' stub file, the method definitions have inconsistent spacing and lack closing braces on the same line as the method signature."
}
],
"relPath": "src/Admin/Marketing/MarketingChannels.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Marketing/MarketingChannels.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Marketing/MarketingChannels.php"
},
"summary_dd70430f8c3e4f80c648f2a3ab9fb453_956a7992098dcd868464439b4eed6e8e": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, but there are some differences in the method signatures for 'get_notes', 'get_notes_count', and 'get_notes_where_clauses'.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the default value for the '$context' parameter in the 'get_notes' method is set to 'self::WC_ADMIN_NOTE_OPER_GLOBAL'. In the 'Stubz' stub file, this default value is missing."
},
{
"description": "Similarly, in the 'php-stubs-generator' stub file, the default value for the '$context' parameter in the 'get_notes_count' method is also set to 'self::WC_ADMIN_NOTE_OPER_GLOBAL'. However, in the 'Stubz' stub file, this default value is missing."
},
{
"description": "In the 'php-stubs-generator' stub file, the default value for the '$context' parameter in the 'get_notes_where_clauses' method is set to 'self::WC_ADMIN_NOTE_OPER_GLOBAL'. But in the 'Stubz' stub file, this default value is missing."
}
],
"relPath": "src/Admin/Notes/DataStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Notes/DataStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Notes/DataStore.php"
},
"summary_a536c4d67338a6638062db20e8344614_49c668478004223d7f52860a51be9edd": {
"summary": "The 'php-stubs-generator' stub file contains additional methods and docblocks compared to the 'Stubz' stub file.",
"differences": [
{
"description": "The method 'wc_admin_active_for' with parameters '$seconds' is present in the 'php-stubs-generator' stub file but missing in the 'Stubz' stub file."
},
{
"description": "The method 'is_wc_admin_active_in_date_range' with parameters '$range', '$custom_start' is present in the 'php-stubs-generator' stub file but missing in the 'Stubz' stub file."
},
{
"description": "The private method 'update_note_field_if_changed' with parameters '$note1', '$note2', '$field_name' is present in the 'php-stubs-generator' stub file but missing in the 'Stubz' stub file."
},
{
"description": "The private method 'possibly_convert_object_to_array' with parameter '$obj' is present in the 'php-stubs-generator' stub file but missing in the 'Stubz' stub file."
}
],
"relPath": "src/Admin/Notes/NoteTraits.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/Notes/NoteTraits.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/Notes/NoteTraits.php"
},
"summary_1492df67c355fc85614718ea72fd06c6_c83abddb48f48b4faeaaaa3d723148c5": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in the type hinting syntax for nullable types.",
"differences": [
{
"description": "In the method 'transform', the parameter '$arguments' is typed as '\\stdClass|null' in 'php-stubs-generator' and 'stdClass|null' in 'Stubz'."
},
{
"description": "In the method 'validate', the parameter '$arguments' is typed as '\\stdClass|null' in 'php-stubs-generator' and 'stdClass|null' in 'Stubz'."
}
],
"relPath": "src/Admin/RemoteInboxNotifications/TransformerInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteInboxNotifications/TransformerInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteInboxNotifications/TransformerInterface.php"
},
"summary_70cfcf62890739e3886ea117f549c35c_2c51a2499c49c13f53241c90ec32561a": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in type hinting syntax. Both define the same class, interface implementation, methods, parameters, and return types.",
"differences": [
{
"description": "In the 'transform' method of the 'ArrayColumn' class, the second parameter type hint for '$arguments' is defined as '\\stdClass|null' in 'php-stubs-generator', while in 'Stubz', it is defined as 'stdClass|null'."
},
{
"description": "In the 'validate' method of the 'ArrayColumn' class, the first parameter type hint for '$arguments' is defined as '\\stdClass|null' in 'php-stubs-generator', while in 'Stubz', it is defined as 'stdClass|null'."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayColumn.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayColumn.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayColumn.php"
},
"summary_307f2a7bdb9959c352c95eb28fc4b6c9_d0401f70e3aa0b566a7f051aca8c5e47": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are similar, but there are some differences in the type declarations and method implementation styles.",
"differences": [
{
"description": "In the 'transform' method of 'php-stubs-generator', the $arguments parameter is declared as '\\stdClass'. In 'Stubz', it is declared as 'stdClass|null'."
},
{
"description": "In the 'validate' method of 'php-stubs-generator', the $arguments parameter is declared as '\\stdClass'. In 'Stubz', it is declared as 'stdClass|null'."
},
{
"description": "The method implementations in 'php-stubs-generator' are empty. In 'Stubz', they also appear to be empty but with a different style of closing brace alignment."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayFlatten.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayFlatten.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayFlatten.php"
},
"summary_df134c9952e0eaf0594c4ebfcccb2ee8_dcf705a9051719a790fbd453d513b9e6": {
"summary": "Both stub files define the same class and methods, but there are minor differences in type declarations and formatting.",
"differences": [
{
"description": "In 'php-stubs-generator', the default value for $arguments parameter in the transform method is null, while in 'Stubz' it is stdClass|null."
},
{
"description": "In 'php-stubs-generator', the default value for $default_value parameter in the transform method is array(), while in 'Stubz' it is not explicitly defined."
},
{
"description": "In 'php-stubs-generator', the default value for $arguments parameter in the validate method is null, while in 'Stubz' it is stdClass|null."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayKeys.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayKeys.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayKeys.php"
},
"summary_6902af8197259de1f64bab832fc14928_a84a039c4191ff9aeef566c95dce31be": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in code style and formatting.",
"differences": [
{
"description": "In the 'transform' method of the 'ArrayValues' class, 'Stubz' uses a more concise syntax for nullable types (stdClass|null) compared to 'php-stubs-generator'."
},
{
"description": "In the 'validate' method of the 'ArrayValues' class, 'Stubz' also uses a more concise syntax for nullable types (stdClass|null) compared to 'php-stubs-generator'."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayValues.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayValues.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/ArrayValues.php"
},
"summary_5b563de27baf298fffc0440ccc9b20ab_7775c99c76e08079b022f9a5fe337fcf": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in syntax and formatting.",
"differences": [
{
"description": "In the 'transform' method of the 'Count' class, 'Stubz' uses the null coalescing operator (|) for type hinting on the $arguments parameter, while 'php-stubs-generator' does not."
},
{
"description": "In the 'validate' method of the 'Count' class, 'Stubz' uses the null coalescing operator (|) for type hinting on the $arguments parameter, while 'php-stubs-generator' does not."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/Count.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/Count.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/Count.php"
},
"summary_46fb6594a3daebb2d9cca8dc07f4187d_4776f615b424cf97ff34f9b6ca76f7dc": {
"summary": "Both stub files are similar but have some minor differences in method signatures and docblocks.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the method signature for `transform`, `get`, and `validate` uses `stdClass|null`. In the 'Stubz' stub, it uses `stdClass|null` with a space before the pipe (`|`)."
},
{
"description": "The closing brace of each method in the 'php-stubs-generator' stub is aligned to the same column as the opening brace. In the 'Stubz' stub, the closing brace is indented."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/DotNotation.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/DotNotation.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/DotNotation.php"
},
"summary_242b6dde505863dc00eca458447fc2e4_2045c7499ebb8565875eb446526ce362": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in syntax and method signature type hinting.",
"differences": [
{
"description": "In the 'transform' method of the 'PrepareUrl' class, 'Stubz' uses a more explicit type hint for '$arguments' as 'stdClass|null', while 'php-stubs-generator' only specifies '\\stdClass'."
},
{
"description": "In the 'validate' method of the 'PrepareUrl' class, 'Stubz' uses a more explicit type hint for '$arguments' as 'stdClass|null', while 'php-stubs-generator' only specifies '\\stdClass'."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/PrepareUrl.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/PrepareUrl.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/PrepareUrl.php"
},
"summary_2439f33591bcdc2a51a951c2f968e166_cbf1f2f4c869534b1e29e1b44e95c7c7": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely identical, with only minor differences in the type declarations for the method parameters.",
"differences": [
{
"description": "In the 'transform' method of the TransformerInterface, 'php-stubs-generator' uses '\\stdClass $arguments = null', while 'Stubz' uses 'stdClass|null $arguments = null'."
},
{
"description": "In the 'validate' method of the TransformerInterface, 'php-stubs-generator' uses '\\stdClass $arguments = null', while 'Stubz' uses 'stdClass|null $arguments = null'."
}
],
"relPath": "src/Admin/RemoteSpecs/RuleProcessors/Transformers/TransformerInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/TransformerInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/Transformers/TransformerInterface.php"
},
"summary_8194582361458d5a5d176f9d5f1a9114_8b1ddf3e2d72089c102e1496b7406437": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar but have some minor differences in structure and comments.",
"differences": [
{
"description": "In the stub file from 'php-stubs-generator', there is a trait 'SchedulerTraits' used with an alias, which is missing in the stub file from 'Stubz'."
},
{
"description": "The method docblocks are slightly different in terms of spacing and formatting between the two generators."
}
],
"relPath": "src/Admin/ReportExporter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/ReportExporter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/ReportExporter.php"
},
"summary_fdfa21b37aa8875ddd44f8ac5deea5ca_c065b6e80007bc733c70dffd5950f196": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the WCAdminHelper class are essentially identical. Both define the same class with the same constants, methods, and docblocks. The only minor difference is that 'php-stubs-generator' includes an additional constant (WC_ADMIN_STORE_AGE_RANGES) which 'Stubz' does not have.",
"differences": [
{
"description": "'php-stubs-generator' includes a constant WC_ADMIN_STORE_AGE_RANGES that 'Stubz' does not define."
}
],
"relPath": "src/Admin/WCAdminHelper.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Admin/WCAdminHelper.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Admin/WCAdminHelper.php"
},
"summary_4d362e1169cf763bdd122bf5cf2be4f7_63bcab199fa85e00cf4013f197ef7790": {
"summary": "There are several differences between the stub files generated by 'php-stubs-generator' and 'Stubz'. These include additional methods, changes in method visibility, and differences in parameter types.",
"differences": [
{
"description": "The 'init' method is present in the stub file from 'Stubz', but it is not present in the stub file from 'php-stubs-generator'."
},
{
"description": "The 'get_file_version' method is present in the stub file from 'Stubz', but it is not present in the stub file from 'php-stubs-generator'."
},
{
"description": "The 'register_style' method is present in the stub file from 'Stubz', but it is not present in the stub file from 'php-stubs-generator'. The parameters for this method are also different."
},
{
"description": "The constructor parameter type hinting differs between the two stub files. In 'php-stubs-generator', the parameter is typed as '\\Automattic\\WooCommerce\\Blocks\\Assets\\Api', while in 'Stubz', it is typed as 'Automattic\\WooCommerce\\Blocks\\Assets\\Api'."
}
],
"relPath": "src/Blocks/AssetsController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/AssetsController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/AssetsController.php"
},
"summary_7101ad65061996e57faa1c21db59de33_75922276ab48146cd51b075dea1d8949": {
"summary": "The two stub files for the BlockPatterns class are mostly identical, with minor differences in formatting and representation of constants.",
"differences": [
{
"description": "The 'CATEGORIES_PREFIXES' constant array is represented differently. In the 'php-stubs-generator' file, it uses square brackets [], while in the 'Stubz' file, it uses parentheses () for the array."
},
{
"description": "There are minor differences in spacing and formatting of method definitions and constructors between the two files, but these do not affect functionality."
}
],
"relPath": "src/Blocks/BlockPatterns.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockPatterns.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockPatterns.php"
},
"summary_55992404828484e13baf41867b422ce0_f525ecc7505facfeccf6e16ab1d6c5b6": {
"summary": "Both stub files define the same class, extends the same parent class, and have the same properties, methods, and docblocks. The only difference is a minor code style issue with missing closing braces for method definitions in the 'Stubz' file.",
"differences": [
{
"description": "In the 'Stubz' stub file, the closing braces for the `initialize` and `register_style_variations` methods are missing."
}
],
"relPath": "src/Blocks/BlockTypes/CheckoutActionsBlock.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/CheckoutActionsBlock.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/CheckoutActionsBlock.php"
},
"summary_92cb0371fb05d10b9bb425b9034b015a_cbbbeccc7917283b004c98594ac1dddd": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in code style. There are no missing classes, extends/implements differences, methods, constants, or docblocks between the two.",
"differences": [
{
"description": "In the method parameters, 'php-stubs-generator' uses short array syntax ([]) while 'Stubz' uses long array syntax (array())."
},
{
"description": "There are slight differences in whitespace and indentation which do not affect functionality."
}
],
"relPath": "src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php"
},
"summary_3f29c928fcdcc8066fba15c24e404f3f_cbd55870ddfb34e026d58dce849904e4": {
"summary": "Both stub files are identical except for minor differences in code formatting (spaces vs. tabs) and array syntax (array() vs. []). There are no missing classes, extends/implements differences, methods, constants, or docblocks.",
"differences": [
{
"description": "The stub file from 'php-stubs-generator' uses spaces for indentation, while the stub file from 'Stubz' uses tabs."
},
{
"description": "The stub file from 'php-stubs-generator' uses array() syntax for arrays in the render_content method parameters, while the stub file from 'Stubz' uses the shorthand [] syntax."
}
],
"relPath": "src/Blocks/BlockTypes/OrderConfirmation/ShippingWrapper.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/ShippingWrapper.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/ShippingWrapper.php"
},
"summary_c49adb8d1f945836ffef1257883a3e1e_b5cd7040407c11e2a854fa1ebe92d5b6": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting.",
"differences": [
{
"description": "There is a missing method `render_account_notice` in the 'Stubz' generated stub file."
},
{
"description": "The default parameter value for `$attributes` in the `render_content` method is `array()` in 'Stubz', while it is `[]` in 'php-stubs-generator'."
},
{
"description": "There are minor differences in the formatting of closing braces and comments, which do not affect functionality."
}
],
"relPath": "src/Blocks/BlockTypes/OrderConfirmation/Status.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php"
},
"summary_ebae79158a131b95f7a0042b2ad2e196_b8b88d15e432e003106559e923ccb506": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in the order of properties and methods. Both define the same class `PriceFilter` that extends `AbstractBlock`, includes the same constants and properties, and has the same method signature for `enqueue_data`. The differences do not affect functionality but are purely stylistic.",
"differences": [
{
"description": "The order of the `$block_name` property is different between the two stubs. In 'php-stubs-generator', it appears after the class docblock, while in 'Stubz', it appears before the constants."
},
{
"description": "In 'Stubz', the parameter default value for `$attributes` in the `enqueue_data` method uses `array()` instead of `[]`, which is a minor difference in PHP syntax."
}
],
"relPath": "src/Blocks/BlockTypes/PriceFilter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/PriceFilter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/PriceFilter.php"
},
"summary_c62ce095eca22e647cd7f92dae8a72dc_49b7198ea5181c591be8b5a8a27981ed": {
"summary": "The 'Stubz' generated stub file provides more detailed information about the class, including properties and methods, compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub includes a protected property '$block_name' with a docblock describing it as 'Block name.'"
},
{
"description": "The 'Stubz' stub includes a protected method 'render' with parameters and a return type, along with a docblock describing its purpose."
},
{
"description": "The 'Stubz' stub includes another protected method 'get_block_type_style' with a docblock describing its purpose."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterActive.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterActive.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterActive.php"
},
"summary_4cca27dd13d1b2c4a7befafeddca54c2_314c38afc4ad9d3feeb3a511ad7ae4e7": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the ProductFilterAttribute class have several differences in methods, properties, and docblocks. 'Stubz' includes additional methods and properties that are not present in 'php-stubs-generator'.",
"differences": [
{
"description": "The 'Stubz' stub file includes a protected property '$block_name' with the value 'product-filter-attribute', which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a protected method 'initialize()', which initializes this block type by hooking into WP lifecycle and registering the block with WordPress. This method is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a protected method 'enqueue_data(array $attributes = array())', which enqueues extra data passed through from server to client for the block. This method is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a public method 'prepare_selected_filters($items, $params)', which prepares the active filter items. This method is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a protected method 'render($block_attributes, $content, $block)', which renders the block. This method is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterAttribute.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"
},
"summary_085c31634636982afc0c2ab1b2166a94_09cc7728c0e8ee731b0a64e347dbf403": {
"summary": "The stub file generated by 'Stubz' includes additional properties and methods compared to the one generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The 'Stubz' stub includes a protected property '$block_name' with a value of 'product-filter-checkbox-list', which is missing in the 'php-stubs-generator' stub."
},
{
"description": "The 'Stubz' stub includes a protected method 'render' that takes parameters $attributes, $content, and $block, and returns a string. This method is entirely absent from the 'php-stubs-generator' stub."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterCheckboxList.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"
},
"summary_ccb960fc637047c3c0e8b0b6ae0cf069_e2cf9a77fc678874074f2a600a80db8e": {
"summary": "The 'Stubz' stub file includes additional properties and methods compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file defines a protected property '$block_name' with a value of 'product-filter-chips', which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a protected method 'render' that takes parameters $attributes, $content, and $block, and returns a string. This method is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterChips.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php"
},
"summary_8273047e6316b215124940551be74650_8c70d179013654e8074c97592226e534": {
"summary": "The stub file generated by 'Stubz' includes additional properties and methods compared to the one generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The class `ProductFilterClearButton` in the 'Stubz' stub file has a protected property `$block_name` initialized to `'product-filter-clear-button'`, which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The class `ProductFilterClearButton` in the 'Stubz' stub file includes a method `get_block_type_style()` with a docblock, which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The class `ProductFilterClearButton` in the 'Stubz' stub file includes a method `get_block_type_script($key = null)` with a docblock, which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The class `ProductFilterClearButton` in the 'Stubz' stub file includes a method `render($attributes, $content, $block)` with a docblock, which is missing in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterClearButton.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterClearButton.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterClearButton.php"
},
"summary_cae292725eb603f056a5fc9b7a02a15f_068b6036698f29fb2d3a8c614edaf8fa": {
"summary": "The 'Stubz' stub file includes additional methods and properties compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "'Stubz' has a protected property '$block_name' with a value of 'product-filter-price', which is missing in the 'php-stubs-generator' stub."
},
{
"description": "'Stubz' includes an 'initialize' method, which is not present in the 'php-stubs-generator' stub."
},
{
"description": "'Stubz' includes a 'prepare_selected_filters' method, which is not present in the 'php-stubs-generator' stub."
},
{
"description": "'Stubz' includes a 'render' method, which is not present in the 'php-stubs-generator' stub."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterPrice.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php"
},
"summary_adbcaae85334886dbd809095d9a425f2_49e877c80abb37a11c70daa14d5d3dd9": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'ProductFilterRating' have several differences in terms of properties, methods, and docblocks.",
"differences": [
{
"description": "'Stubz' includes a protected property '$block_name' with a value of 'product-filter-rating', which is missing in 'php-stubs-generator'."
},
{
"description": "'Stubz' has an additional method 'initialize()' that is not present in 'php-stubs-generator'. The docblock indicates it hooks into WP lifecycle and registers the block with WordPress."
},
{
"description": "'Stubz' includes a method 'prepare_selected_filters($items, $params)' which is not present in 'php-stubs-generator'. The docblock explains that it prepares the active filter items."
},
{
"description": "'Stubz' has an additional method 'render($attributes, $content, $block)' that is not present in 'php-stubs-generator'. The docblock indicates it includes and renders the block."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterRating.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php"
},
"summary_3777f06ea2f0ec1468a4e79c2482b486_8cd44f9315c03949ce290a18a20fb673": {
"summary": "The 'Stubz' generated stub file contains additional properties and methods compared to the 'php-stubs-generator' generated stub file.",
"differences": [
{
"description": "The 'Stubz' stub file includes a protected property '$block_name' with a value of 'product-filter-removable-chips', which is missing in the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a protected method 'render' that accepts parameters $attributes, $content, and $block, and returns a string. This method is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterRemovableChips.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterRemovableChips.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRemovableChips.php"
},
"summary_8175c467c5e7e556e742655a7cdf06b2_1f44f1dd2dc252595dc72ed8ddef91b6": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have differences in class properties, methods, and their implementations.",
"differences": [
{
"description": "The 'Stubz' stub includes a protected property '$block_name' with the value 'product-filter-status', which is not present in the 'php-stubs-generator' stub."
},
{
"description": "The 'initialize' method is present in the 'Stubz' stub but not in the 'php-stubs-generator' stub."
},
{
"description": "The 'prepare_selected_filters' method is present in the 'Stubz' stub but not in the 'php-stubs-generator' stub. It has a different purpose compared to 'register_active_filters_data'."
},
{
"description": "The 'enqueue_data' method is present in the 'Stubz' stub but not in the 'php-stubs-generator' stub."
},
{
"description": "The 'render' method is present in the 'Stubz' stub but not in the 'php-stubs-generator' stub."
}
],
"relPath": "src/Blocks/BlockTypes/ProductFilterStatus.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php"
},
"summary_eb5299281a8824c9bbd301b737ad2cdd_5d40e7d9234b40a807a494dafab61bc3": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in the classes, methods, properties, and docblocks.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file does not include a property named '$dialog_context', whereas the 'Stubz' stub file includes this property with a comment describing its purpose."
},
{
"description": "The 'php-stubs-generator' stub file lacks an 'initialize()' method, but the 'Stubz' stub file includes this method along with a docblock explaining its purpose and functionality."
},
{
"description": "The 'php-stubs-generator' stub file is missing a public method named 'inject_dialog_context($context, $block, $parent_block)', which is present in the 'Stubz' stub file. The 'Stubz' version also includes a detailed docblock for this method."
}
],
"relPath": "src/Blocks/BlockTypes/ProductGallery.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductGallery.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductGallery.php"
},
"summary_68b6e530d604c7fffde93f5d46faa780_f07296c3c2ad3f8749938603a7a6d7b1": {
"summary": "Both stub files define the same class with the same methods and properties. However, there are minor differences in the formatting of method implementations.",
"differences": [
{
"description": "The method implementations in the 'Stubz' stub file lack closing braces on the same line as the opening brace for methods `register_block_type_assets`, `get_block_type_uses_context`, and `render`. This is different from the 'php-stubs-generator' stub file where the closing braces are on a new line."
}
],
"relPath": "src/Blocks/BlockTypes/ProductSKU.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductSKU.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductSKU.php"
},
"summary_b9bbed23251b8af1c39ea79bef35fcc6_8261ff117c551cfb530fef56cbf7e32b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the ProductSearch class are essentially identical, with no differences in classes, extends/implements, methods, constants, or docblocks. The only observable difference is in the formatting of the PHP array syntax within the enqueue_data method, where 'array()' is used by 'Stubz' and '[]' is used by 'php-stubs-generator'. This difference does not affect functionality.",
"differences": [
{
"description": "The enqueue_data method uses 'array()' in the 'Stubz' stub file and '[]' in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Blocks/BlockTypes/ProductSearch.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductSearch.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductSearch.php"
},
"summary_72db1d2ada2a384aea05915354d6292a_392c5176ccf9f230b95e76d93ac4fa0d": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the ProductStockIndicator class have some differences in methods and code style. The 'Stubz' file includes an additional method 'enqueue_data' that is not present in the 'php-stubs-generator' file.",
"differences": [
{
"description": "The 'Stubz' file includes the 'enqueue_data' method, which is not present in the 'php-stubs-generator' file. This method appears to be used for enqueuing extra data passed from the server to the client for the block."
}
],
"relPath": "src/Blocks/BlockTypes/ProductStockIndicator.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/ProductStockIndicator.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/ProductStockIndicator.php"
},
"summary_605af688c0f77c4aac6c678297d42f76_d627ff644bd43c1265247d2130e60caa": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the SingleProduct class in WooCommerce Blocks have similar structures but differ slightly in syntax and formatting.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the default value for `$single_product_inner_blocks_names` is declared as an empty array `[]`, while in the 'Stubz' stub, it is declared as `array()`. These are equivalent in PHP."
},
{
"description": "Both stubs have a docblock stating that `initialize` method initializes the block and hooks into the `render_block_context` filter to update the context with correct data. However, the docblocks differ slightly in formatting, with 'php-stubs-generator' using inline comments for descriptions and 'Stubz' using multi-line comments."
},
{
"description": "The method signatures and their respective docblocks are identical in both stubs, indicating that they define the same methods with the same parameters and return types."
},
{
"description": "Both stubs include a method `get_block_type_script` which returns null, indicating that this block type has no frontend script. The docblocks for this method are also identical."
}
],
"relPath": "src/Blocks/BlockTypes/SingleProduct.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/SingleProduct.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/SingleProduct.php"
},
"summary_8dc315ef83e719fe4f5bbbf3997dcc19_2e3f3ba21624de5abeeab3b5069b0e04": {
"summary": "The two stub files are mostly identical, with minor differences in formatting and comments. There are no missing classes or methods between the two.",
"differences": [
{
"description": "In 'php-stubs-generator', the docblock for the $stock_statuses parameter in enqueue_data() method is indented slightly differently."
},
{
"description": "In 'Stubz', the default value for $stock_statuses parameter in enqueue_data() method is written as array(), while in 'php-stubs-generator' it's just []."
}
],
"relPath": "src/Blocks/BlockTypes/StockFilter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypes/StockFilter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypes/StockFilter.php"
},
"summary_bb6f1ec669c0f37409da9e7a437d7672_2340c4da4e063beb60032f438a2f9c11": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the BlockTypesController class have some differences in methods, docblocks, and properties. Specifically, 'Stubz' includes additional methods related to block metadata registration and validation, which are not present in the 'php-stubs-generator' version.",
"differences": [
{
"description": "'Stubz' includes a protected property '$asset_api' with a type annotation, while 'php-stubs-generator' does not explicitly list these properties."
},
{
"description": "'Stubz' includes a protected property '$asset_data_registry' with a type annotation, while 'php-stubs-generator' does not explicitly list these properties."
},
{
"description": "'Stubz' has an additional method 'init()' which is not present in 'php-stubs-generator'."
},
{
"description": "'Stubz' includes the method 'register_block_metadata()' with a detailed docblock, which is not present in 'php-stubs-generator'."
},
{
"description": "'Stubz' includes the static method 'bypass_block_metadata_doing_it_wrong()' with a detailed docblock, which is not present in 'php-stubs-generator'."
},
{
"description": "'Stubz' has additional protected methods 'get_widget_area_block_types()' and 'get_block_types()', which are not present in 'php-stubs-generator'."
}
],
"relPath": "src/Blocks/BlockTypesController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/BlockTypesController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/BlockTypesController.php"
},
"summary_92d758110e770992319404fc76b43c2f_5d3b3d60c7d47478a1d2882043d492b2": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' differ in the presence of constants and method definitions.",
"differences": [
{
"description": "The 'php-stubs-generator' file contains a class `Migration` with four methods: `run_migrations()`, `wc_blocks_update_1030_blockified_product_grid_block()`, `wc_blocks_update_1120_rename_checkout_template()`, and `wc_blocks_update_1120_rename_cart_template()`. The 'Stubz' file also contains the same class and methods."
},
{
"description": "The 'php-stubs-generator' file does not contain any constants. The 'Stubz' file contains two duplicate constants: `WP_POST_REVISIONS` set to `false`. This is an inconsistency as constants should be unique."
}
],
"relPath": "src/Blocks/Migration.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Migration.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Migration.php"
},
"summary_6af11c6e1c558c10dda4e58ff176c9c0_ea00efa3f12369edead2f519075cee00": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical. The only difference is in the formatting of the closing brace for the `register_block_pattern` method.",
"differences": [
{
"description": "The closing brace for the `register_block_pattern` method is on a new line in the 'php-stubs-generator' stub, while it is on the same line as the last parameter's closing parenthesis in the 'Stubz' stub."
}
],
"relPath": "src/Blocks/Patterns/PatternRegistry.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Patterns/PatternRegistry.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Patterns/PatternRegistry.php"
},
"summary_2afc203d891917aebce2a74f35a28472_417ff8e57a33d7a7322f43cfe325f423": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\BankTransfer have some differences.",
"differences": [
{
"description": "The 'Stubz' stub includes a protected property '$name' that is missing in the 'php-stubs-generator' stub."
},
{
"description": "The method signatures and docblocks are identical in both stubs, but there are minor differences in code formatting, such as the placement of curly braces in methods and the use of full namespace paths for the Api class parameter in the constructor."
}
],
"relPath": "src/Blocks/Payments/Integrations/BankTransfer.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Payments/Integrations/BankTransfer.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Payments/Integrations/BankTransfer.php"
},
"summary_432d3f83498dd99f86fdb87b3bb17f23_8d66c808443be687d7f781b82f8b3745": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in their class definitions. The main difference is the presence of a protected property '$name' in the 'Stubz' version, which is missing in the 'php-stubs-generator' version.",
"differences": [
{
"description": "The 'CashOnDelivery' class in the stub generated by 'Stubz' includes a protected property `$name`, which is not present in the stub generated by 'php-stubs-generator'."
}
],
"relPath": "src/Blocks/Payments/Integrations/CashOnDelivery.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Payments/Integrations/CashOnDelivery.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Payments/Integrations/CashOnDelivery.php"
},
"summary_6fa509e1d8a0f03fbda156c6383f3660_243b03bb7378db2c8cdb92b2f0d6fdbd": {
"summary": "The stub file generated by 'Stubz' includes an additional protected property '$name' that is not present in the stub file generated by 'php-stubs-generator'. Other than this, both files are structurally similar.",
"differences": [
{
"description": "The stub file from 'Stubz' includes a protected property '$name', which is missing in the stub file from 'php-stubs-generator'."
}
],
"relPath": "src/Blocks/Payments/Integrations/Cheque.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Payments/Integrations/Cheque.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Payments/Integrations/Cheque.php"
},
"summary_2ae142174b9fe94db798b45c46ec08fa_62293854df86dbf38d81e0206b64bdd7": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with only minor differences in the properties and formatting.",
"differences": [
{
"description": "'Stubz' includes a protected property `$name` which is not present in 'php-stubs-generator'."
},
{
"description": "The constructor method in both stub files have different indentation styles for opening curly braces `{`, with 'Stubz' having them on the same line as the method signature and 'php-stubs-generator' having them on a new line."
}
],
"relPath": "src/Blocks/Payments/Integrations/PayPal.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Payments/Integrations/PayPal.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Payments/Integrations/PayPal.php"
},
"summary_0b420bc4587bc2e6723fc00777b8ea10_81345a6fd23affa424756286bbbeebdf": {
"summary": "The 'Stubz' generated stub file includes an additional protected property '$registry_identifier' in the PaymentMethodRegistry class that is not present in the 'php-stubs-generator' generated stub file.",
"differences": [
{
"description": "The 'Stubz' generated stub file includes a protected property '$registry_identifier' with the value 'payment_method_type' which is not present in the 'php-stubs-generator' generated stub file."
}
],
"relPath": "src/Blocks/Payments/PaymentMethodRegistry.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Payments/PaymentMethodRegistry.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Payments/PaymentMethodRegistry.php"
},
"summary_e9fb82bc885dcb5761bcf2e1b9ee9e49_7c20b98020420245c431437abbcba404": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely identical, with minor differences in method signatures.",
"differences": [
{
"description": "The 'php-stubs-generator' uses a fully qualified namespace for the Closure type hint in the factory method, while 'Stubz' does not."
}
],
"relPath": "src/Blocks/Registry/Container.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Registry/Container.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Registry/Container.php"
},
"summary_2100ffe8ad82375f2fbe7368096bf292_4104631530dc43c2e4caee4046b44fdb": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have no significant differences in terms of classes, extends/implements, methods, constants, or docblocks. The only difference is the way the fully qualified class name is written within the method parameter.",
"differences": [
{
"description": "The method parameter type for Container in 'php-stubs-generator' uses a fully qualified class name with a leading backslash (\\Automattic\\WooCommerce\\Blocks\\Registry\\Container), while 'Stubz' omits the leading backslash."
}
],
"relPath": "src/Blocks/Registry/FactoryType.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Registry/FactoryType.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Registry/FactoryType.php"
},
"summary_e6c751c92f3279581778403e31eafa1f_407641a70dbbbd69a57cf8cb978e2360": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially the same, with minor differences in formatting. No significant differences in classes, extends/implements, methods, constants, or docblocks were found.",
"differences": [
{
"description": "The namespace declaration is formatted slightly differently: 'php-stubs-generator' uses a full namespace path for the Container type hint in the get method, while 'Stubz' omits the leading backslash."
}
],
"relPath": "src/Blocks/Registry/SharedType.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Registry/SharedType.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Registry/SharedType.php"
},
"summary_6aba68d093d02253c517ba5c2cbf9ea2_9371854ff3650072185f129e8617e228": {
"summary": "The stub file generated by 'php-stubs-generator' has a missing class constant assignment for '$fallback_template', while the stub file generated by 'Stubz' does not assign a value to this property.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the '$fallback_template' property is assigned a value of '\\Automattic\\WooCommerce\\Blocks\\Templates\\ProductCatalogTemplate::SLUG'. This assignment is missing in the 'Stubz' stub."
}
],
"relPath": "src/Blocks/Templates/ProductAttributeTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php"
},
"summary_07d0aa4cd1b89c6b7da478e9e4d773a9_617151c46cb469ce62bd3faedf7b906a": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for ProductCategoryTemplate are mostly identical, with only minor differences in code style.",
"differences": [
{
"description": "In the 'Stubz' stub file, the default value for the $fallback_template property is missing."
},
{
"description": "The methods init(), get_template_title(), get_template_description(), and render_block_template() are not implemented with any logic in both stub files. The only difference is that the opening curly brace '{' of these methods is on a new line in the 'Stubz' stub file."
}
],
"relPath": "src/Blocks/Templates/ProductCategoryTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php"
},
"summary_eecdcb2ba4fd94858b983894a29241ec_1c7758413f1ef632ff35fabf14e1426b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some minor differences.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the class constant SLUG is defined with a value ('taxonomy-product_tag'), whereas in the 'Stubz' stub, it is not explicitly initialized."
},
{
"description": "The docblocks for methods (init, get_template_title, get_template_description, render_block_template) are slightly different in terms of formatting and spacing between the opening comment tag and the first line of the comment content. However, this difference does not affect functionality."
}
],
"relPath": "src/Blocks/Templates/ProductTagTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Templates/ProductTagTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Templates/ProductTagTemplate.php"
},
"summary_9d42d1c378522ae27537af0c6d852303_9272fc83f2f347d26fe33447d51354d2": {
"summary": "The two stub files have some differences in the methods they define for the CartCheckoutUtils class.",
"differences": [
{
"description": "Stubz includes 'is_cart_page' method which is missing in php-stubs-generator."
},
{
"description": "Stubz includes 'is_checkout_page' method which is missing in php-stubs-generator."
},
{
"description": "Stubz includes 'has_block_variation' method which is missing in php-stubs-generator."
}
],
"relPath": "src/Blocks/Utils/CartCheckoutUtils.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php"
},
"summary_632035a909a62a10a5575e1d93ef34a6_9812bcb2751a8caad2d2545e992d6e33": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the OrderCache class are mostly similar but have a minor difference in the return type declaration of the validate method.",
"differences": [
{
"description": "The 'php-stubs-generator' uses `protected function validate($object): ?array` while 'Stubz' uses `protected function validate($object): array|null`. The order of types is different, but they are semantically equivalent."
}
],
"relPath": "src/Caches/OrderCache.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Caches/OrderCache.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Caches/OrderCache.php"
},
"summary_5f317af532de53bcb87acfc7a8de4c66_c8ec9c575ef83c5f1a15a6e6efd27fee": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical in terms of classes, methods, constants, docblocks, extends/implements relationships. The only notable difference is that the 'php-stubs-generator' file includes a trait usage (CacheNameSpaceTrait), which is missing from the 'Stubz' file.",
"differences": [
{
"description": "The class WPCacheEngine in the stub generated by 'php-stubs-generator' uses the trait CacheNameSpaceTrait, whereas the same class in the stub generated by 'Stubz' does not use any traits."
}
],
"relPath": "src/Caching/WPCacheEngine.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Caching/WPCacheEngine.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Caching/WPCacheEngine.php"
},
"summary_eb75e2ff789471daeb1b526aad1438ee_1e34c56cf578466f6386d3996b36de13": {
"summary": "The 'Stubz' generated stub file contains an additional method 'is_enabled' that is not present in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file includes a protected method 'is_enabled' which checks if stock reservation is enabled. This method is missing in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Checkout/Helpers/ReserveStock.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Checkout/Helpers/ReserveStock.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Checkout/Helpers/ReserveStock.php"
},
"summary_f0f2417743227a783782f5344304d795_1ff917f439c9dce578927b70e329cec8": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in formatting.",
"differences": [
{
"description": "There is a missing closing brace for the method body of get_schema_config() in both classes."
},
{
"description": "There is a missing closing brace for the method body of get_core_column_mapping() in both classes."
},
{
"description": "There is a missing closing brace for the method body of get_meta_column_config() in both classes."
}
],
"relPath": "src/Database/Migrations/CustomOrderTable/PostToOrderTableMigrator.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Database/Migrations/CustomOrderTable/PostToOrderTableMigrator.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostToOrderTableMigrator.php"
},
"summary_19dcb36cce9870c0cc36c76f5a058cc7_ca3fcf9a9f53dac2b0567725fce2ea53": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting and the presence of a trait usage declaration in 'php-stubs-generator'.",
"differences": [
{
"description": "'php-stubs-generator' includes a use statement for BlockContainerTrait, which is not present in 'Stubz'."
},
{
"description": "Method return types and parameters in 'php-stubs-generator' are more fully qualified with namespaces compared to 'Stubz'. For example, 'Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface' vs. 'BlockInterface'."
}
],
"relPath": "src/Internal/Admin/BlockTemplates/AbstractBlockTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/BlockTemplates/AbstractBlockTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/BlockTemplates/AbstractBlockTemplate.php"
},
"summary_4bdb2b5f7bee9f24e2337381052f1fe1_80d274c924b46db450b5268782868d6f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in method return types and class implementations.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the `add_block` method returns a reference using `&`, while the 'Stubz' stub does not."
},
{
"description": "The 'php-stubs-generator' stub includes a trait `BlockContainerTrait` which is missing in the 'Stubz' stub."
}
],
"relPath": "src/Internal/Admin/BlockTemplates/Block.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/BlockTemplates/Block.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/BlockTemplates/Block.php"
},
"summary_c579a3af2372b981c3ebd2de7aa0cce2_3c25c1722ab6686b9137fbb61ebe7d55": {
"summary": "The 'php-stubs-generator' stub file contains more methods and detailed docblocks compared to the 'Stubz' stub file.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a private method 'is_block_descendant(BlockInterface $block): bool', which is missing in the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' stub file includes a private method 'get_inner_blocks_sorted_by_order(): array', which is missing in the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' stub file includes multiple private methods related to actions (e.g., do_after_add_block_action, do_after_remove_block_action), which are missing in the 'Stubz' stub file."
},
{
"description": "In the 'get_block' method, the return type in the 'php-stubs-generator' stub file is '?BlockInterface', while in the 'Stubz' stub file, it is 'BlockInterface|null'."
}
],
"relPath": "src/Internal/Admin/BlockTemplates/BlockContainerTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/BlockTemplates/BlockContainerTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/BlockTemplates/BlockContainerTrait.php"
},
"summary_d25947a3db128044f71094d66c230385_463c079056654ebf2adf5369d3c9871e": {
"summary": "The 'Stubz' generated stub file is missing several methods and their respective docblocks compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "Missing method `get_formatted_hide_conditions` in the 'Stubz' stub file."
},
{
"description": "Missing method `get_formatted_disable_conditions` in the 'Stubz' stub file."
},
{
"description": "Missing method `format_conditions` in the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Admin/BlockTemplates/BlockFormattedTemplateTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/BlockTemplates/BlockFormattedTemplateTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/BlockTemplates/BlockFormattedTemplateTrait.php"
},
"summary_5e999fd8cfd52075f799967a85c4ae47_5240d33ab3ba5038320221839f43f099": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting.",
"differences": [
{
"description": "The return type of the `add_block` method in 'Stubz' is specified without a leading backslash (Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface), while it includes a leading backslash in 'php-stubs-generator'."
},
{
"description": "There are slight differences in the indentation of the closing curly braces for methods `get_id` and `add_block` between the two stub files."
}
],
"relPath": "src/Internal/Admin/BlockTemplates/BlockTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/BlockTemplates/BlockTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/BlockTemplates/BlockTemplate.php"
},
"summary_9f6595cc0419d5a1b1f32294349fcdc2_3f5951b1c6a8a2a294feab82785152b4": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in the initialization of class properties and method implementations. The 'php-stubs-generator' provides more detailed inline comments for some properties and methods, while 'Stubz' has a slightly different formatting style.",
"differences": [
{
"description": "The $event_types property in 'php-stubs-generator' is initialized with an array of event types and their respective levels and messages. In 'Stubz', it is declared but not initialized."
},
{
"description": "Method implementations are not provided in either stub, so there are no differences in method logic between the two generators."
},
{
"description": "The formatting style differs slightly, such as the placement of curly braces and the inclusion of spaces around operators. However, these are purely stylistic differences and do not affect functionality."
}
],
"relPath": "src/Internal/Admin/BlockTemplates/BlockTemplateLogger.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/BlockTemplates/BlockTemplateLogger.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/BlockTemplates/BlockTemplateLogger.php"
},
"summary_e43b68ae9744d8255b97cefe98c8d04d_c984d65456b905a0c70e9b8b2a687e84": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the Coupons class in WooCommerce have similar structure, but there are some differences in terms of methods and traits.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a trait named 'CouponsMovedTrait', while the 'Stubz' version does not include any traits."
},
{
"description": "Both stub files have identical methods, but the implementation details (code inside the methods) are not shown in either stub and are therefore not comparable."
}
],
"relPath": "src/Internal/Admin/Coupons.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Coupons.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Coupons.php"
},
"summary_0e74badb629aeb336544692eaf836705_799a4d067e19c3edb0a8fe175bb35f34": {
"summary": "The stub file generated by 'Stubz' includes additional constants and methods compared to the one generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The constant 'USER_OBJECT_EMAILS' is present in the 'Stubz' stub file but missing in the 'php-stubs-generator' stub file."
},
{
"description": "The method 'ensure_links_open_in_new_tab' is present in the 'Stubz' stub file but missing in the 'php-stubs-generator' stub file."
},
{
"description": "The method 'get_shipping_method' is present in the 'Stubz' stub file but missing in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Internal/Admin/EmailPreview/EmailPreview.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php"
},
"summary_871b6d2fe2f9dec201f623c280d62999_c54d291f4cdd74b6e9dca0b83374c2d2": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' differ in the presence of a constant.",
"differences": [
{
"description": "The 'Stubz' stub file includes a public constant named 'NONCE_KEY' with a value of 'email-preview-nonce', which is missing from the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Internal/Admin/EmailPreview/EmailPreviewRestController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php"
},
"summary_db9955efea8ffa659c098c515ef8bdeb_a45faf623a5229a717dc38b749ed5087": {
"summary": "The stub file generated by 'Stubz' includes an additional constant not present in the stub file from 'php-stubs-generator'.",
"differences": [
{
"description": "The stub file from 'Stubz' contains an additional constant `WC_ADMIN_VERSION_NUMBER` with a value of `'3.3.0'`, which is missing in the stub file from 'php-stubs-generator'."
}
],
"relPath": "src/Internal/Admin/FeaturePlugin.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/FeaturePlugin.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/FeaturePlugin.php"
},
"summary_568741d54c508e11637bc63ef05d3321_160ba09cca0871cd4c33a101fc309f7f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have differences in constants, docblocks, and method formatting.",
"differences": [
{
"description": "Missing constant 'BYTES_PER_READ' in the class FileExporter from 'php-stubs-generator'."
},
{
"description": "The constant 'BYTES_PER_READ' in the class FileExporter from 'Stubz' is missing a value."
},
{
"description": "Different formatting for methods and constructors between the two stub files (spacing and braces alignment)."
}
],
"relPath": "src/Internal/Admin/Logging/FileV2/FileExporter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Logging/FileV2/FileExporter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileExporter.php"
},
"summary_6e72163508768787131b4c51bf54d2cf_1508aa836177603fecc171aa1e42ad4b": {
"summary": "The 'Stubz' stub file has two missing constants compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a constant for default values for logging settings, which is missing in the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' stub file includes a constant for the prefix of settings keys used in the options table, which is missing in the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Admin/Logging/Settings.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Logging/Settings.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Logging/Settings.php"
},
"summary_f4e395a720c945c536ac64eb56308bdc_2b248a169b7f4c47bccf6a92276f0720": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are largely identical, with the same methods, constants, and structure. However, there is one notable difference in how the `use` statement for the trait is handled.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a `use` statement for the trait `CouponsMovedTrait`, while 'Stubz' does not include this trait usage."
}
],
"relPath": "src/Internal/Admin/Marketing.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Marketing.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Marketing.php"
},
"summary_49ce8f1099337534c194b26f754a8ad9_a365ec73be23b7b70ff092875948e5bb": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in formatting. Both stubs define the same class `ChoosingTheme` within the namespace `Automattic\\WooCommerce\\Internal\\Admin\\Notes`, include the same constant `NOTE_NAME`, and have the same method `get_note()`. The main difference is the presence of a trait usage in the 'php-stubs-generator' version, which is not present in the 'Stubz' version.",
"differences": [
{
"description": "The class `ChoosingTheme` in the stub generated by 'php-stubs-generator' uses the trait `\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits`, whereas the stub generated by 'Stubz' does not include this trait usage."
}
],
"relPath": "src/Internal/Admin/Notes/ChoosingTheme.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/ChoosingTheme.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/ChoosingTheme.php"
},
"summary_dbb2c042f96b846b7a53f5e401aec4cc_4a44401e24aef3b465db05c32c34f450": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have minor differences in formatting and the inclusion of traits.",
"differences": [
{
"description": "'php-stubs-generator' includes a trait named NoteTraits, which is missing in the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Admin/Notes/EUVATNumber.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/EUVATNumber.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/EUVATNumber.php"
},
"summary_929ddb7280a17b27ee450cd070afc939_6cfdeea5db325affe82846a89a2b3e71": {
"summary": "The two stub files are mostly identical, but there is a difference in how the methods and classes are organized. The 'php-stubs-generator' version includes a trait usage while the 'Stubz' version does not.",
"differences": [
{
"description": "The 'php-stubs-generator' version of EditProductsOnTheMove class uses the NoteTraits trait, which is missing in the 'Stubz' version."
}
],
"relPath": "src/Internal/Admin/Notes/EditProductsOnTheMove.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php"
},
"summary_4630b428a59120ba0a92faa03a4b006b_0c970f4350c2b801955977cadaf7270f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'FirstProduct' have some differences in traits usage, docblocks, and code style.",
"differences": [
{
"description": "The stub file from 'php-stubs-generator' includes a trait 'NoteTraits', while the stub file from 'Stubz' does not."
},
{
"description": "The stub file from 'php-stubs-generator' has a docblock for the trait usage, which is missing in the stub file from 'Stubz'."
}
],
"relPath": "src/Internal/Admin/Notes/FirstProduct.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/FirstProduct.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/FirstProduct.php"
},
"summary_486eaeaf6a92d1b892a248c0b8916a61_669d8bdd8cb075c2ce194af086eb097a": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, but there are some differences in terms of traits used and the presence of docblocks.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a trait usage with `use \\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits;`, which is missing in the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' provides detailed docblocks for each method and property, whereas 'Stubz' does not include any docblocks."
}
],
"relPath": "src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php"
},
"summary_6d0f2eb65f951f308273b33facd29b7b_5e17cb01a9d1edb42a456ddc3edfdac8": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'LaunchChecklist' have no significant differences in terms of classes, extends/implements relationships, methods, constants, or docblocks. The only minor difference is the presence of a trait 'NoteTraits' in the 'php-stubs-generator' version.",
"differences": [
{
"description": "The class 'LaunchChecklist' generated by 'php-stubs-generator' includes the trait 'NoteTraits', while the class in 'Stubz' does not."
}
],
"relPath": "src/Internal/Admin/Notes/LaunchChecklist.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php"
},
"summary_9fda02b93829981f72239334650c955a_15dd5e8afd31829a3a3f2755180d8cf3": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'MagentoMigration' have some differences in terms of traits usage and method implementations. The 'php-stubs-generator' includes a trait, while 'Stubz' does not.",
"differences": [
{
"description": "The class 'MagentoMigration' generated by 'php-stubs-generator' uses the trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', which is missing in the class generated by 'Stubz'."
},
{
"description": "The methods in the class generated by 'php-stubs-generator' are defined with proper method definitions, while in the class generated by 'Stubz', the method bodies are empty without any braces or code."
}
],
"relPath": "src/Internal/Admin/Notes/MagentoMigration.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/MagentoMigration.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/MagentoMigration.php"
},
"summary_b5bc493ecfb7c21c36999f29eaae8b6a_f2a0943986fc91a5fbbdabbeabc6e356": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'MigrateFromShopify' have a minor difference in trait usage.",
"differences": [
{
"description": "'php-stubs-generator' includes the use of the trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', while 'Stubz' does not include any traits."
}
],
"relPath": "src/Internal/Admin/Notes/MigrateFromShopify.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/MigrateFromShopify.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/MigrateFromShopify.php"
},
"summary_2fa2acc1c7fbc5a9100416f129ae2b2a_e702d61c8743bf82c7c5204df979b3ca": {
"summary": "The two stub files are largely identical, with minor differences in formatting and a missing trait usage.",
"differences": [
{
"description": "The 'php-stubs-generator' file includes the use of traits with 'use \\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits;', while the 'Stubz' file does not include this trait usage."
}
],
"relPath": "src/Internal/Admin/Notes/MobileApp.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/MobileApp.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/MobileApp.php"
},
"summary_674c2c1eb87d041ff36a86ca80cddcb8_41df55486edff0a340348e5669bb8b10": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the class 'NewSalesRecord' have similar structures, but there are differences in traits usage and docblocks.",
"differences": [
{
"description": "The 'php-stubs-generator' stub includes a trait usage 'NoteTraits' that is missing from the 'Stubz' stub."
},
{
"description": "The method implementations in the 'php-stubs-generator' stub are empty, while they are also empty in the 'Stubz' stub. However, the formatting of the method closing braces differs slightly between the two stubs."
}
],
"relPath": "src/Internal/Admin/Notes/NewSalesRecord.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/NewSalesRecord.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/NewSalesRecord.php"
},
"summary_fcc1fb29ff17692abe9bb08593263437_5790faa91ab809e6fe9766a412dee1c9": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, but there is a difference in how the trait is used.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a docblock for the trait 'NoteTraits', while 'Stubz' does not."
}
],
"relPath": "src/Internal/Admin/Notes/OnboardingPayments.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/OnboardingPayments.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/OnboardingPayments.php"
},
"summary_1358dc3b35422f5a8e50bcbcf91fa558_f20085e068e781d6fe4af4d08663747d": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, but there are a few differences in terms of traits used and formatting.",
"differences": [
{
"description": "'php-stubs-generator' includes the use of the trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', which is not present in the stub file from 'Stubz'."
},
{
"description": "The formatting of the method 'get_note()' differs between the two generators. In 'php-stubs-generator', the closing brace is on a new line, while in 'Stubz', it remains on the same line as the opening brace."
}
],
"relPath": "src/Internal/Admin/Notes/OnlineClothingStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/OnlineClothingStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/OnlineClothingStore.php"
},
"summary_3f080d69ef7f12acbe7863fc0ab16349_b0089e6b0074cdba3e5ca5b82eb531e9": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are largely similar, but there are some differences in methods and docblocks.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a use statement for the trait NoteTraits, which is missing in the 'Stubz' version."
},
{
"description": "Method implementations in 'php-stubs-generator' are empty, while 'Stubz' does not provide method implementations at all."
}
],
"relPath": "src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php"
},
"summary_0b489153eccbc2102830e84aee7cb3e6_bc0c419732020047a011942176948d98": {
"summary": "The two stub files are similar, but there are some differences in structure and formatting.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a use statement for the trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', which is missing in the 'Stubz' version."
},
{
"description": "The method definitions in the 'Stubz' version are not properly closed with curly braces, whereas they are correctly closed in the 'php-stubs-generator' version."
}
],
"relPath": "src/Internal/Admin/Notes/PaymentsRemindMeLater.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/PaymentsRemindMeLater.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsRemindMeLater.php"
},
"summary_bb38e695383164fdb0a0a76c8de34148_ac830cf43bee7e430d24e9c5a144b29b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting and structure. The main difference is the inclusion of a trait in the 'php-stubs-generator' version.",
"differences": [
{
"description": "'php-stubs-generator' includes the use of the NoteTraits trait, while 'Stubz' does not."
},
{
"description": "There are minor differences in code formatting, such as indentation and spacing, but these do not affect the functionality of the class."
}
],
"relPath": "src/Internal/Admin/Notes/PerformanceOnMobile.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/PerformanceOnMobile.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/PerformanceOnMobile.php"
},
"summary_0494ba189e943a529cb06e4ea8d93bb9_57d13ef2c64190b1887a09fb40dfe27f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting and the inclusion of a trait.",
"differences": [
{
"description": "The 'php-stubs-generator' includes the trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', which is not present in the 'Stubz' stub file."
},
{
"description": "There are minor differences in code formatting, such as indentation and spacing around method braces, between the two stub files."
}
],
"relPath": "src/Internal/Admin/Notes/PersonalizeStore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/PersonalizeStore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/PersonalizeStore.php"
},
"summary_e1ec6df6f3c27d296ef332ac8f8937f0_3ae65674254438dd00605bf5898c7adf": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'RealTimeOrderAlerts' have some differences in structure and comments.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a trait usage statement `use \\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits;` which is missing in the 'Stubz' stub file."
},
{
"description": "The comment for the trait usage in the 'php-stubs-generator' stub file (`/** Note traits. */`) is present but not in the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Admin/Notes/RealTimeOrderAlerts.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/RealTimeOrderAlerts.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/RealTimeOrderAlerts.php"
},
"summary_173122e98831aa0403c5d4fa43b28276_c812e1b08600a1ff55f30044de5b1dce": {
"summary": "The stub file generated by 'php-stubs-generator' includes an additional trait usage that is missing in the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The class SellingOnlineCourses from 'php-stubs-generator' uses a trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', which is not present in the class from 'Stubz'."
}
],
"relPath": "src/Internal/Admin/Notes/SellingOnlineCourses.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/SellingOnlineCourses.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/SellingOnlineCourses.php"
},
"summary_32ea1415577d94b9803f61b23f50f8ef_e0270a1c56968aa5b4086fa5c8909452": {
"summary": "The 'php-stubs-generator' stub file includes a trait usage that is missing in the 'Stubz' stub file.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes the use of the trait '\\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits', which is not present in the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Admin/Notes/TrackingOptIn.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/TrackingOptIn.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/TrackingOptIn.php"
},
"summary_b6132223ea92902a5b8d02dfbf13c82b_e6a3979d7beb294ba22930feba8a3104": {
"summary": "The 'php-stubs-generator' stub includes a trait usage that is missing in the 'Stubz' stub.",
"differences": [
{
"description": "The 'php-stubs-generator' stub includes the use of the NoteTraits trait, which is not present in the 'Stubz' stub."
}
],
"relPath": "src/Internal/Admin/Notes/WooCommercePayments.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/WooCommercePayments.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/WooCommercePayments.php"
},
"summary_48d0e6070e661b94e8fabbe09c004fa2_950f9abfa83da14b4ffa2d8698094195": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting. The core functionality and structure of the classes remain consistent between both generators.",
"differences": [
{
"description": "The 'php-stubs-generator' includes a docblock for the class that is missing in the 'Stubz' stub file: '/** WooCommerce_Subscriptions. */'"
},
{
"description": "The 'php-stubs-generator' includes a use statement for traits: 'use \\Automattic\\WooCommerce\\Admin\\Notes\\NoteTraits;' which is absent in the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Admin/Notes/WooCommerceSubscriptions.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/WooCommerceSubscriptions.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/WooCommerceSubscriptions.php"
},
"summary_e0f44f85b45a5a6ba6d857646886a6d7_216a89d903dce746a61ac4dc7fba6018": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in constants and formatting.",
"differences": [
{
"description": "The constant SUBSCRIPTION_NOTE_NAME is marked as deprecated in the 'php-stubs-generator' version but not in the 'Stubz' version."
},
{
"description": "The formatting of the BUMP_THRESHOLDS array is different between the two stub files. The 'php-stubs-generator' version has the values on a single line, while the 'Stubz' version formats each value on a new line with proper indentation."
}
],
"relPath": "src/Internal/Admin/Notes/WooSubscriptionsNotes.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php"
},
"summary_4eef25c825e6532639f00bef8f981284_dbafbf703801384d86d9dc8be738bffa": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are identical except for minor code formatting differences. Both files define the same class with the same constants and methods.",
"differences": [
{
"description": "The method definitions in 'Stubz' have inconsistent indentation compared to 'php-stubs-generator'."
}
],
"relPath": "src/Internal/Admin/Onboarding/OnboardingProducts.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Onboarding/OnboardingProducts.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProducts.php"
},
"summary_d796acd5537f212ecc438b44799d4139_5999ebe1b9c461a78875c9ec6a430065": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class OrderAttribution in the namespace Automattic\\WooCommerce\\Internal\\Admin\\Orders\\MetaBoxes are mostly identical. However, there is one difference regarding a trait usage.",
"differences": [
{
"description": "The class 'OrderAttribution' from 'php-stubs-generator' uses the trait '\\Automattic\\WooCommerce\\Internal\\Traits\\OrderAttributionMeta', which is not present in the stub file from 'Stubz'."
}
],
"relPath": "src/Internal/Admin/Orders/MetaBoxes/OrderAttribution.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Orders/MetaBoxes/OrderAttribution.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/OrderAttribution.php"
},
"summary_524afbea3c665cd5419b965f6e333ad0_c0c637933771e4bc122bb88862eaefb4": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical in terms of classes, methods, and docblocks. However, there is a minor difference in the type hinting for the `$order` parameter in the `save_taxonomies` method.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the `$order` parameter in the `save_taxonomies` method has a type hint of `\\WC_Abstract_Order`. In contrast, the 'Stubz' stub file uses a fully qualified class name without the leading backslash (`WC_Abstract_Order`)."
}
],
"relPath": "src/Internal/Admin/Orders/MetaBoxes/TaxonomiesMetaBox.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Orders/MetaBoxes/TaxonomiesMetaBox.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/TaxonomiesMetaBox.php"
},
"summary_092cb36ba485dcdc80accb1829b79d98_b179032d9c4ab0e8baa409e43ec97839": {
"summary": "The stub file generated by 'php-stubs-generator' includes additional class properties and methods not present in the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a trait usage: `use \\Automattic\\WooCommerce\\Internal\\Admin\\ProductForm\\ComponentTrait;`, which is missing from the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' stub file includes a method `sort` with a default parameter `$sort_by = array()`, while the 'Stubz' stub file does not specify this default parameter."
}
],
"relPath": "src/Internal/Admin/ProductForm/Component.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/ProductForm/Component.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/ProductForm/Component.php"
},
"summary_63da1e953fba944625f487fae1e6d455_2c623286a87fa744fa254197c395d0eb": {
"summary": "The 'php-stubs-generator' stub file includes an additional trait usage and a docblock for the trait method, while the 'Stubz' stub file does not include these elements.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes the use of a trait named 'SchedulerTraits' with an alias for the method 'get_batch_sizes', whereas the 'Stubz' stub file does not include this trait usage."
},
{
"description": "The 'php-stubs-generator' stub file has a docblock for the method 'get_scheduler_batch_sizes' which is aliased from the trait, but the 'Stubz' stub file lacks this docblock."
}
],
"relPath": "src/Internal/Admin/Schedulers/ImportScheduler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Schedulers/ImportScheduler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Schedulers/ImportScheduler.php"
},
"summary_537f703c44b3a8d826cbee1e7d0e3a91_1ebc77abb50ede2f486af58183f4c8ca": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting and whitespace.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, there is a missing closing brace for the 'get_icon' method."
},
{
"description": "The 'Stubz' stub file has inconsistent indentation within the 'get_icon' method implementation."
}
],
"relPath": "src/Internal/Admin/Settings/PaymentProviders/WCCore.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Settings/PaymentProviders/WCCore.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Settings/PaymentProviders/WCCore.php"
},
"summary_2f7c0ee3fd58b44f60187d59c943742a_7f9928eec447f0171c95120fe57dbbee": {
"summary": "Both stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical in terms of the classes, methods, constants, and docblocks. The only difference is that 'Stubz' has inconsistent spacing around method definitions and closing curly braces.",
"differences": [
{
"description": "Inconsistent spacing around method definitions and closing curly braces in the stub file generated by 'Stubz'."
}
],
"relPath": "src/Internal/Admin/Settings/Payments.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Settings/Payments.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"
},
"summary_84271a64a1bf48639016f2e51432a675_d464b833c5bca2d964713eedb4066443": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class Automattic\\WooCommerce\\Internal\\Admin\\Settings\\PaymentsController have one method difference. The 'Stubz' file includes an additional method called filter_feature_config_experiment, which is not present in the 'php-stubs-generator' file.",
"differences": [
{
"description": "The 'Stubz' file includes a new method 'filter_feature_config_experiment' that is not present in the 'php-stubs-generator' file. This method filters the feature flags list to modify the new Payments Settings page feature based on the experiment."
}
],
"relPath": "src/Internal/Admin/Settings/PaymentsController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Settings/PaymentsController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsController.php"
},
"summary_3686dda6a8ec7e4dd455daa69da3f0cf_dbe105873be62f89b45c8023f612139f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical in terms of methods, parameters, return types, and docblocks. However, there is a minor difference in the return type notation for nullable types.",
"differences": [
{
"description": "In the 'get_incentive' method, 'php-stubs-generator' uses `?array` as the return type, while 'Stubz' uses `array|null`."
},
{
"description": "In the 'get_incentive_instance' method, 'php-stubs-generator' uses `?\\Automattic\\WooCommerce\\Internal\\Admin\\Suggestions\\Incentives\\Incentive` as the return type, while 'Stubz' uses `Automattic\\WooCommerce\\Internal\\Admin\\Suggestions\\Incentives\\Incentive|null`. However, these are equivalent and should be treated as minor differences in notation."
}
],
"relPath": "src/Internal/Admin/Suggestions/PaymentExtensionSuggestionIncentives.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Admin/Suggestions/PaymentExtensionSuggestionIncentives.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentExtensionSuggestionIncentives.php"
},
"summary_89e1ba3653449e5db94cfbbf43ece04d_6fb11db3966b6adbbde3a69c026a2686": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'BatchProcessingController' have minor differences in formatting and some missing docblocks. The functionality appears to be the same.",
"differences": [
{
"description": "Docblocks are present in 'php-stubs-generator' but missing in 'Stubz'."
},
{
"description": "Braces '{' for methods and constructors have different positions. In 'php-stubs-generator', braces are on the same line as the method signature, while in 'Stubz', they are on a new line."
}
],
"relPath": "src/Internal/BatchProcessing/BatchProcessingController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php"
},
"summary_a07a521772be5f6a81a0ecd25b7a1708_004aba0c2513a587d3cedb509475ad77": {
"summary": "The 'Stubz' generated stub file is missing all the methods, docblocks, and functionality defined in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The method 'add_cogs_info_to_returned_product_data' with parameters '$data' and '$product' and a docblock describing its purpose is missing."
},
{
"description": "The method 'set_cogs_info_in_product_object' with parameters '$request' and '$product' and a docblock describing its purpose is missing."
},
{
"description": "The method 'add_cogs_related_product_schema' with parameters '$schema' and '$for_variations_controller', and a docblock describing its purpose, is missing."
}
],
"relPath": "src/Internal/CostOfGoodsSold/CogsAwareRestControllerTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareRestControllerTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareRestControllerTrait.php"
},
"summary_8a52eb0402308448eae29c236fe8d94a_64b9ee959fef81ade7fe3e209979ae18": {
"summary": "The two stub files for the CogsAwareTrait are very similar, but there is a minor difference in the parameter type declaration of the cogs_is_enabled method.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the parameter $doing_it_wrong_function_name in the cogs_is_enabled method is declared as ?string. In the 'Stubz' stub file, it is declared as string|null."
}
],
"relPath": "src/Internal/CostOfGoodsSold/CogsAwareTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareTrait.php"
},
"summary_46345d8a0cc447bc4592ffae21eb2751_c4b6473c4d973a151c426a152501a5f0": {
"summary": "The 'Stubz' generated stub file is missing all methods and their corresponding docblocks compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "Method 'enable_cogs_feature()' is missing."
},
{
"description": "Method 'disable_cogs_feature()' is missing."
},
{
"description": "Method 'expect_doing_it_wrong_cogs_disabled(string $method_name)' is missing."
}
],
"relPath": "src/Internal/CostOfGoodsSold/CogsAwareUnitTestSuiteTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareUnitTestSuiteTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareUnitTestSuiteTrait.php"
},
"summary_2baf4c7fc37685f6f804507c4fb8c184_ad9cb467fa4bfb32805ca3b488aa9095": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in comments, method definitions, and formatting.",
"differences": [
{
"description": "In the 'Stubz' file, there is an additional comment stating 'The default number of orders to process per batch.' which is not present in the 'php-stubs-generator' file."
},
{
"description": "Method definitions and opening braces are on separate lines in the 'Stubz' file, whereas they are on the same line in the 'php-stubs-generator' file."
}
],
"relPath": "src/Internal/DataStores/Orders/LegacyDataCleanup.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DataStores/Orders/LegacyDataCleanup.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DataStores/Orders/LegacyDataCleanup.php"
},
"summary_300ccd3c3274803f88ddbcbf216fcca4_c39e95d2508ca568aff2eeeca1f8cd13": {
"summary": "The stub file generated by 'Stubz' includes an additional class property '$valid_operators' that is not present in the stub file generated by 'php-stubs-generator'. The constructor and method definitions are otherwise identical.",
"differences": [
{
"description": "The stub file from 'Stubz' contains a private property '$valid_operators' which is not present in the stub file from 'php-stubs-generator'."
}
],
"relPath": "src/Internal/DataStores/Orders/OrdersTableFieldQuery.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"
},
"summary_db82ac0c4655d9b98e3566849ee0e07c_4e34ea129d36c2b62036f592f2e7ce75": {
"summary": "The 'Stubz' stub file includes additional properties not present in the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file includes a property for non-numeric SQL operators used in meta queries, which is missing from the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a property for numeric SQL operators used in meta queries, which is missing from the 'php-stubs-generator' stub file."
},
{
"description": "The 'Stubz' stub file includes a property for the prefix used when generating aliases for the metadata table, which is missing from the 'php-stubs-generator' stub file."
}
],
"relPath": "src/Internal/DataStores/Orders/OrdersTableMetaQuery.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php"
},
"summary_26ba1a327d44d491ec0233a206aa70cd_d1db3b885d35050a3592670f1f8c7944": {
"summary": "The 'Stubz' stub file is missing a constant definition for `MAX_UNSIGNED_BIGINT` compared to the 'php-stubs-generator' stub file.",
"differences": [
{
"description": "The 'Stubz' stub file is missing the constant `MAX_UNSIGNED_BIGINT` which is present in the 'php-stubs-generator' stub file. The description for this constant is: 'Highest possible unsigned bigint value (unsigned bigints being the type of the `id` column). This is deliberately held as a string, rather than a numeric type, for inclusion within queries.'"
}
],
"relPath": "src/Internal/DataStores/Orders/OrdersTableQuery.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"
},
"summary_3d59f50ada3b9db05c71bf5b4f855b14_f77b1c0287c7c4c8e811a67ebbb45033": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in syntax for the nullable type hinting of the $previous parameter.",
"differences": [
{
"description": "In 'php-stubs-generator', the nullable type hint for the $previous parameter is written as '?\\Exception'. In 'Stubz', it is written as 'Exception|null'. Both are valid but use different syntax."
}
],
"relPath": "src/Internal/DependencyManagement/ContainerException.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ContainerException.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ContainerException.php"
},
"summary_220bd6310db4771ea437e3e7c8872c4c_bf90be0d4ce8c32795c4a035ffd78a1f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially the same, with only minor differences in formatting and string representation of class names.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses backslashes (\\) to separate namespaces within the class names, while 'Stubz' uses single quotes around the fully qualified class names without backslashes."
},
{
"description": "The formatting of the 'provides' array is slightly different. 'php-stubs-generator' aligns the elements vertically with indentation, while 'Stubz' does not provide such alignment."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/AdminSettingsServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AdminSettingsServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AdminSettingsServiceProvider.php"
},
"summary_6dae234824ac8164f49f7da888e84cc0_c05f9c408b3fe7db0ac2651c5f74d8d2": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have minor differences in the formatting of the `$provides` array. Both files are otherwise identical in terms of class, extends/implements relationships, methods, constants, and docblocks.",
"differences": [
{
"description": "The `$provides` array in 'php-stubs-generator' uses the fully qualified class names with backslashes as part of the string values. In contrast, 'Stubz' includes extra spaces around the backslashes in the string values."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/AdminSuggestionsServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AdminSuggestionsServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AdminSuggestionsServiceProvider.php"
},
"summary_a0e52c61785b53e4ced40080e1b24429_2daef44271dc60c23fce5ac8ee02a84b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in formatting and representation.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses a class constant syntax (`::class`), while 'Stubz' uses a string with backslashes."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/AssignDefaultCategoryServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AssignDefaultCategoryServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AssignDefaultCategoryServiceProvider.php"
},
"summary_6354a534c2734752e08f3984a1a9516e_75f7774fecb664075c6a163be161a455": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in formatting.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses fully qualified class names (FQCN) wrapped in backslashes, while 'Stubz' does not."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/BatchProcessingServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/BatchProcessingServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/BatchProcessingServiceProvider.php"
},
"summary_06ba92927a6695ca030dd866c20d1fbf_23e6d2d125570309860382d3bb676083": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, but there are some differences in how the `$provides` array is defined.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the classes in the `$provides` array use backslashes to separate namespaces. In the 'Stubz' stub file, the classes are concatenated without backslashes."
},
{
"description": "The formatting of the `$provides` array differs between the two stub files. 'php-stubs-generator' uses a more readable format with each class on a new line and proper indentation. 'Stubz' compresses everything into one line with minimal spacing."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/COTMigrationServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/COTMigrationServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/COTMigrationServiceProvider.php"
},
"summary_f1fd1cf3c304839d085b3ceb8a1a0eb6_266892fb9de4100ef9a1a3271cf8212e": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have minor differences in the formatting of the $provides array. Both define the same class, inheritance, properties, and methods.",
"differences": [
{
"description": "In 'php-stubs-generator', the classes/interfaces in the $provides array use the ::class syntax for fully qualified class names, while 'Stubz' uses string literals with namespace separators."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/ComingSoonServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ComingSoonServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ComingSoonServiceProvider.php"
},
"summary_20cc82202d85d2f295f3c3ee49875429_a197191cad8fcb140618d54775d6b80f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar, but there are some differences in formatting and syntax.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses backslashes in the class name while 'Stubz' does not."
},
{
"description": "'php-stubs-generator' has a space before the closing parenthesis in the 'provides' array, whereas 'Stubz' does not."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/DownloadPermissionsAdjusterServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/DownloadPermissionsAdjusterServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/DownloadPermissionsAdjusterServiceProvider.php"
},
"summary_d2dd10b4ecd36ab4792259b34bfc8744_bc6d5929ae5aba1cdb044db6dc8f4fd7": {
"summary": "Both stub files are essentially identical in terms of structure and content, with minor differences in formatting.",
"differences": [
{
"description": "The 'provides' array uses a different syntax for defining the class names. 'php-stubs-generator' uses double colons (::) to reference the classes, while 'Stubz' uses single quotes and backslashes."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/EmailPreviewServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/EmailPreviewServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/EmailPreviewServiceProvider.php"
},
"summary_0fcd3312e9b7d32260fb78291a7f7c5d_f0522b9a1ffbc4ffac4f55db52414da0": {
"summary": "Both stub files are similar, but there are some minor differences in formatting and syntax.",
"differences": [
{
"description": "The 'provides' array in the 'php-stubs-generator' file uses class constants (e.g., '\\Automattic\\WooCommerce\\Internal\\Features\\FeaturesController::class'), while the 'Stubz' file does not."
},
{
"description": "In the 'Stubz' file, the single quotes around the class name in the 'provides' array are inconsistent and not aligned with typical PHP coding standards."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/FeaturesServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/FeaturesServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/FeaturesServiceProvider.php"
},
"summary_e3abbb945034b3555d39a2d1fd49c4d4_6a20615be8e4b05c747bbb9ebe43d002": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in formatting and syntax.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses double colons '::class' to reference the class, while 'Stubz' uses a string representation of the class name."
},
{
"description": "'php-stubs-generator' has proper indentation for the 'register' method, whereas 'Stubz' does not have consistent indentation inside the method."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/ImportExportServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ImportExportServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ImportExportServiceProvider.php"
},
"summary_39805eff73dd9980b1632ae40ce03460_8d9331549eadc4c1a722d12290079627": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' have some differences in formatting and representation of class names.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the class name within the array for '$provides' is represented with backslashes (\\\\) to denote namespaces, while in the 'Stubz' stub, it is represented as a single string without backslashes."
},
{
"description": "The 'php-stubs-generator' stub has consistent spacing around the elements of the array and the closing parenthesis, whereas the 'Stubz' stub lacks these spaces."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/LayoutTemplatesServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/LayoutTemplatesServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/LayoutTemplatesServiceProvider.php"
},
"summary_e7aeb6b315292c1c4a43e369b19082d9_db2dd46ea41033e2b22a355bdf69ea26": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the LoggingServiceProvider class are essentially identical, with no significant differences in classes, extends/implements relationships, methods, constants, or docblocks. The only difference is in the formatting of the $provides array elements.",
"differences": [
{
"description": "The elements in the $provides array have different formatting styles: 'php-stubs-generator' uses class constant references (e.g., \\Automattic\\WooCommerce\\Internal\\Admin\\Logging\\FileV2\\FileController::class) while 'Stubz' uses string literals with escaped backslashes (e.g., 'Automattic\\\\WooCommerce\\\\Internal\\\\Admin\\\\Logging\\\\FileV2\\\\FileController')."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/LoggingServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/LoggingServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/LoggingServiceProvider.php"
},
"summary_6824183a24c2f3bd06c1b867d69cc391_3cd630443714dfb46791ead639ea78b4": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' differ in several aspects, including class definitions, array syntax, and constants.",
"differences": [
{
"description": "In the stub file from 'php-stubs-generator', the classes/interfaces in the `$provides` array use the fully qualified class name with `::class`. In contrast, the stub file from 'Stubz' uses strings for the class names without using `::class`."
},
{
"description": "The stub file from 'Stubz' includes an additional constant `WC_MCM_EXISTS`, which is not present in the stub file from 'php-stubs-generator'."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/MarketingServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/MarketingServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/MarketingServiceProvider.php"
},
"summary_2d5363f1d6d2ee620e98f3ab9e86f9d1_29cbfdeec124573b8b6630d4f2e9d20f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in syntax and formatting.",
"differences": [
{
"description": "The class definition and inheritance are identical in both stubs."
},
{
"description": "Both stubs use the same docblock for the class, indicating that it is a service provider for the object cache mechanism."
},
{
"description": "The 'provides' property is declared identically in both stubs, but 'php-stubs-generator' uses backslashes in the class name while 'Stubz' does not. However, this should not affect functionality as PHP will resolve the class names correctly."
},
{
"description": "Both stubs declare a 'register' method with an empty body and the same docblock, indicating that it is used to register classes."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/ObjectCacheServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ObjectCacheServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ObjectCacheServiceProvider.php"
},
"summary_e42f0bf8b96bc460da4229ccf8532fa4_e8764da5e194f3c2e84cb5f975c35eb2": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, but there are a few differences in formatting and syntax.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses the fully qualified class name with backslashes, while 'Stubz' uses single quotes around the class name."
},
{
"description": "The indentation and formatting of the 'register' method differ slightly between the two generators. 'php-stubs-generator' has consistent indentation, whereas 'Stubz' aligns the opening brace with the method declaration."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/OptionSanitizerServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OptionSanitizerServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OptionSanitizerServiceProvider.php"
},
"summary_5ad818ba234e8c5aced569ed44b818f6_d2719ebd461526767ff5c9ffe49e67ec": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures but differ in the formatting of the $provides array. 'Stubz' uses single quotes for class names, while 'php-stubs-generator' uses backslashes.",
"differences": [
{
"description": "The $provides array in 'Stubz' uses single quotes for class names, whereas 'php-stubs-generator' uses backslashes."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/OrderAdminServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrderAdminServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrderAdminServiceProvider.php"
},
"summary_b70ac5156acc5c9ed1f3f9967c403efe_31f75ce712187619a6060fe7a5be6e11": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, with minor differences in formatting and class definitions.",
"differences": [
{
"description": "The class definitions differ in the use of double backslashes (\\\\) in the array values for `$provides` property. 'php-stubs-generator' uses fully qualified class names with double backslashes, while 'Stubz' uses single backslashes."
},
{
"description": "There is a difference in indentation and spacing within the `register` method. 'php-stubs-generator' has consistent indentation, whereas 'Stubz' has inconsistent spacing."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/OrderAttributionServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrderAttributionServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrderAttributionServiceProvider.php"
},
"summary_e13d163d8990ce90b490fa64506dd2fc_76120b1045ce530641eb6e84493dbd36": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structure but differ in how they define the `$provides` array.",
"differences": [
{
"description": "In 'php-stubs-generator', the classes/interfaces in the `$provides` array are defined using `::class` syntax. In 'Stubz', the classes/interfaces are defined as strings with full namespace paths."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/OrderMetaBoxServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrderMetaBoxServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrderMetaBoxServiceProvider.php"
},
"summary_22c1c9b0b2d446ce7ef47c0a0389a468_215ff44658ce07267222e75ee95d96ca": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' for the OrdersControllersServiceProvider class are mostly identical, with only minor differences in formatting.",
"differences": [
{
"description": "In the 'php-stubs-generator' version, the classes in the $provides array use the double colon syntax (e.g., \\Automattic\\WooCommerce\\Internal\\Orders\\CouponsController::class), while in the 'Stubz' version, they are written as strings without the ::class syntax."
},
{
"description": "The formatting of the $provides array is slightly different. The 'php-stubs-generator' version does not have line breaks and indentation within the array, whereas the 'Stubz' version does."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/OrdersControllersServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrdersControllersServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrdersControllersServiceProvider.php"
},
"summary_12773115338382ed7413ad3a96661726_d5b15221334df3baad7cd83260cdf7b9": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical, with minor differences in formatting and spacing.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses the ::class constant to reference classes, while 'Stubz' directly uses the class names as strings."
},
{
"description": "The method 'register()' in 'php-stubs-generator' is defined on a new line with proper indentation, whereas in 'Stubz', it is defined immediately after the opening brace without additional spacing."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/OrdersDataStoreServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrdersDataStoreServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/OrdersDataStoreServiceProvider.php"
},
"summary_88ead08b5d3738f1713207a9b2617fd9_0d3715066f5c0f24462ba3fe95088bdc": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some minor differences in formatting and representation of class names.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses fully qualified class names with the ::class syntax (e.g., \\Automattic\\WooCommerce\\Internal\\ProductAttributesLookup\\DataRegenerator::class), while 'Stubz' uses string literals with backslashes (e.g., 'Automattic\\\\WooCommerce\\\\Internal\\\\ProductAttributesLookup\\\\DataRegenerator')."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/ProductAttributesLookupServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ProductAttributesLookupServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ProductAttributesLookupServiceProvider.php"
},
"summary_863c0cd13a4699bea6ff05206b741788_9d7e75f160d39f557af5f866d422202a": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in how the class names in the `$provides` array are defined.",
"differences": [
{
"description": "In the stub file from 'php-stubs-generator', the class names in the `$provides` array are using backslashes as part of the class name string (e.g., '\\Automattic\\WooCommerce\\Internal\\ProductDownloads\\ApprovedDirectories\\Register::class'). In contrast, the stub file from 'Stubz' is using single quotes around the fully qualified class names without the `::class` syntax (e.g., '\"Automattic\\\\WooCommerce\\\\Internal\\\\ProductDownloads\\\\ApprovedDirectories\\\\Register\"')."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/ProductDownloadsServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ProductDownloadsServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ProductDownloadsServiceProvider.php"
},
"summary_3d5f4656a38f64d0f7176d6b557fb596_a9899ca05fdb013d85a40d17069b46f8": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting and syntax.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses class constants for the classes/interfaces being serviced, while 'Stubz' uses string literals."
},
{
"description": "'Stubz' has inconsistent indentation within the 'register' method compared to 'php-stubs-generator'."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/ProductReviewsServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ProductReviewsServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/ProductReviewsServiceProvider.php"
},
"summary_5661897ff8170b09c891470c7421d9c4_7ea2e6ac5635a6a144aa97adda799d77": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, with some minor differences in formatting and representation.",
"differences": [
{
"description": "In the 'provides' array of the RestockRefundedItemsAdjusterServiceProvider class, 'php-stubs-generator' uses a backslash (\\) before the class name in the array, while 'Stubz' does not."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/RestockRefundedItemsAdjusterServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/RestockRefundedItemsAdjusterServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/RestockRefundedItemsAdjusterServiceProvider.php"
},
"summary_92c5149a51d83689fca840bac4177183_bf1f6fde08a9031d125752d430463b1f": {
"summary": "The PHP stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in formatting and representation.",
"differences": [
{
"description": "In the 'provides' array, 'php-stubs-generator' uses fully qualified class names with double backslashes (\\\\) while 'Stubz' uses single backslashes ('\\')."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/StatsServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/StatsServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/StatsServiceProvider.php"
},
"summary_6ecc7317ffe450d7afd084d8001c4825_187d1c5e4301a03b6ec39ff91f666c86": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class UtilsClassesServiceProvider are mostly identical. However, there are minor differences in how the array of provided classes is defined.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the $provides array uses the ::class syntax to define the class names, while in the 'Stubz' stub file, the $provides array uses string literals with backslashes for namespace separation."
}
],
"relPath": "src/Internal/DependencyManagement/ServiceProviders/UtilsClassesServiceProvider.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DependencyManagement/ServiceProviders/UtilsClassesServiceProvider.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/UtilsClassesServiceProvider.php"
},
"summary_a2d3404369e9bf4c7aad383d40dd2bd0_21465c2e2d962ed953dcafb14f2adb5c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in formatting. The methods, class structure, docblocks, and functionality remain consistent between the two.",
"differences": [
{
"description": "In the 'Stubz' stub file, the class method signatures have unnecessary curly braces around their bodies."
}
],
"relPath": "src/Internal/DownloadPermissionsAdjuster.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/DownloadPermissionsAdjuster.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/DownloadPermissionsAdjuster.php"
},
"summary_0d8d9ba23bef8b8aff65218f604a3991_4538a5e6cbeeb2672d6c2595d6170796": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in formatting and return type notation.",
"differences": [
{
"description": "In the 'get_group_by_id', 'get_section_by_id', 'get_subsection_by_id', and 'get_block_by_id' methods, the return types in the 'Stubz' stub file are more explicitly written with full namespaces (e.g., Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\GroupInterface|null) compared to the 'php-stubs-generator' stub file which uses a shorthand notation (?\\Automattic\\WooCommerce\\Admin\\Features\\ProductBlockEditor\\ProductTemplates\\GroupInterface)."
},
{
"description": "The method bodies in both stub files are empty, indicated by '{}', and there are no differences in the methods themselves."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/AbstractProductFormTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/AbstractProductFormTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/AbstractProductFormTemplate.php"
},
"summary_fa053440c2c98343fd36d436e157d1aa_8837315fc87a0c3170ab4fae3072b061": {
"summary": "The 'php-stubs-generator' stub file includes a method 'add_downloadable_product_blocks' that is not present in the 'Stubz' stub file. Additionally, the 'php-stubs-generator' stub file provides detailed docblocks for both the trait and the method, which are missing from the 'Stubz' stub file.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a method 'add_downloadable_product_blocks' that is not present in the 'Stubz' stub file."
},
{
"description": "The 'php-stubs-generator' stub file provides detailed docblocks for both the trait and the method, which are missing from the 'Stubz' stub file."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/DownloadableProductTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/DownloadableProductTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/DownloadableProductTrait.php"
},
"summary_d8027b8e5165d78b45db170056647588_2eceffcac75faaf57b5114bb9b497575": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures but differ in some details. The main differences are the use of a trait and the presence of additional docblocks.",
"differences": [
{
"description": "The class 'Group' from 'php-stubs-generator' uses the trait '\\Automattic\\WooCommerce\\Internal\\Admin\\BlockTemplates\\BlockContainerTrait', while 'Stubz' does not use any traits."
},
{
"description": "The method '__construct' in 'php-stubs-generator' has a phpcs annotation disabling and enabling Squiz.Commenting.FunctionCommentThrowTag.WrongNumber, which is absent in 'Stubz'."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/Group.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Group.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Group.php"
},
"summary_6bc1127bdd95a16a7285e245e3f80915_1949420689adf3207c3bf52a4970174d": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in their method implementations and return types.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the 'add_block' method has a reference return type indicated by '&'. This is not present in the 'Stubz' stub."
},
{
"description": "The return type of the 'add_block' method in the 'php-stubs-generator' stub is '\\Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface', while in the 'Stubz' stub, it is just 'Automattic\\WooCommerce\\Admin\\BlockTemplates\\BlockInterface'. The namespace should be fully qualified."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductBlock.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductBlock.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductBlock.php"
},
"summary_780754b2382a904afb021f30d27691e2_bed88212a5644f71c74e13f9a4b8e175": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' for the class Automattic\\WooCommerce\\Internal\\Features\\ProductBlockEditor\\ProductTemplates\\ProductVariationTemplate are largely identical. The main difference is that 'php-stubs-generator' includes a trait (`DownloadableProductTrait`) while 'Stubz' does not.",
"differences": [
{
"description": "'php-stubs-generator' includes the trait `DownloadableProductTrait`, which is missing in 'Stubz'."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php"
},
"summary_7c7add004241c3e2cb6893b16808a721_20083c8ec26ead8ad28d42b33116f771": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in formatting and the inclusion of a phpcs directive.",
"differences": [
{
"description": "The 'php-stubs-generator' file includes a phpcs directive to disable a specific rule (Squiz.Commenting.FunctionCommentThrowTag.WrongNumber) within the constructor method, which is absent in the 'Stubz' file."
},
{
"description": "The namespace and use statements in the 'Stubz' file are more verbose with fully qualified class names in the method return types and parameters, whereas 'php-stubs-generator' uses relative namespaces."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/Section.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Section.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Section.php"
},
"summary_05770d9fdee9f1b3434d57f5da2e86ee_709d11b81cd4c781836a2438ed55b965": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the Subsection class are mostly identical, but there are some differences in formatting and comments.",
"differences": [
{
"description": "The 'php-stubs-generator' file includes a phpcs:disable and phpcs:enable directive around the constructor docblock to disable a specific Squiz.Commenting.FunctionCommentThrowTag.WrongNumber rule."
},
{
"description": "The 'Stubz' file uses a different syntax for the parent parameter in the constructor's method signature. It explicitly includes the full namespace path followed by '|null' instead of just '|null'."
}
],
"relPath": "src/Internal/Features/ProductBlockEditor/ProductTemplates/Subsection.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Subsection.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Subsection.php"
},
"summary_f02530941b6018f57467473687f48583_69a8eec6de47cfe1a2c74f1ea13161b5": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in code style.",
"differences": [
{
"description": "The 'php-stubs-generator' stub includes a trait usage (`use \\Automattic\\WooCommerce\\Internal\\Traits\\ScriptDebug;`), which is missing from the 'Stubz' stub."
},
{
"description": "There are differences in code formatting, such as inconsistent placement of opening curly braces for methods."
}
],
"relPath": "src/Internal/Integrations/WPConsentAPI.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Integrations/WPConsentAPI.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Integrations/WPConsentAPI.php"
},
"summary_9ea000901f1e9d281a627058753c8620_c22bb62a0ae1aea22454a3f553b427cb": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in type declarations and return types.",
"differences": [
{
"description": "In the 'php-stubs-generator' file, the method parameter $blog_id is declared as `?int`, while in the 'Stubz' file, it is declared as `int|null`."
},
{
"description": "In the 'php-stubs-generator' file, the return type of the method is declared as `?string`, while in the 'Stubz' file, it is declared as `string|null`."
}
],
"relPath": "src/Internal/Orders/MobileMessagingHandler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Orders/MobileMessagingHandler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Orders/MobileMessagingHandler.php"
},
"summary_bb31689fed44ab4c3dfc643c7aa7f16a_3ebf682ab9ace7e83aa918215c734679": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, but there are a few differences in the implementation of the methods. The 'php-stubs-generator' version includes a trait usage that is missing in the 'Stubz' version.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a trait usage '\\Automattic\\WooCommerce\\Internal\\Traits\\ScriptDebug', which is missing in the 'Stubz' version."
},
{
"description": "In the 'init' method, the parameter types are fully qualified in the 'php-stubs-generator' version, while in the 'Stubz' version, they are not prefixed with the namespace."
}
],
"relPath": "src/Internal/Orders/OrderAttributionBlocksController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Orders/OrderAttributionBlocksController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Orders/OrderAttributionBlocksController.php"
},
"summary_eec9d857e11591b3cb91967ecfdf662d_ef0de9befa56957a18f4bd41be73e053": {
"summary": "The stub file generated by 'php-stubs-generator' includes traits and method docblocks that are missing in the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The 'OrderAttributionController' class generated by 'php-stubs-generator' uses two traits: 'ScriptDebug' and 'OrderAttributionMeta', which are not present in the stub file generated by 'Stubz'."
},
{
"description": "The method 'get_prefixed_field_name' is made public through a trait use statement in the 'OrderAttributionController' class generated by 'php-stubs-generator', but it is missing in the stub file generated by 'Stubz'."
},
{
"description": "Method docblocks are present and detailed in the 'OrderAttributionController' class generated by 'php-stubs-generator', whereas they are absent or minimal in the stub file generated by 'Stubz'."
}
],
"relPath": "src/Internal/Orders/OrderAttributionController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Orders/OrderAttributionController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php"
},
"summary_f1f93ff9dabafb2e3e0aa2612166dc3f_76a549932973ed4069342f3275071c0e": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in their documentation blocks and formatting.",
"differences": [
{
"description": "The 'Stubz' stub includes an additional docblock comment about the array that must contain all the names of the files in the CardIcons directory, which is not present in the 'php-stubs-generator' stub."
}
],
"relPath": "src/Internal/Orders/PaymentInfo.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Orders/PaymentInfo.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Orders/PaymentInfo.php"
},
"summary_1929e40f96f4d3c3998c30af8258bd18_243e039da73ed9ae72e5711567abb64d": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have some differences in their descriptions, comments, and method return types. 'php-stubs-generator' provides a more detailed comment about the class and methods, while 'Stubz' includes an unnecessary array declaration and has different method return type declarations.",
"differences": [
{
"description": "'php-stubs-generator' provides a detailed description of the class and its methods, explaining the functionality of each method in detail."
},
{
"description": "'Stubz' includes an unnecessary array declaration within the class that is not present in 'php-stubs-generator'."
},
{
"description": "In 'php-stubs-generator', the return types for 'generate_receipt' and 'get_existing_receipt' methods are declared as '?string'. In contrast, 'Stubz' declares them as 'string|null'. Both are valid PHP syntax, but they look slightly different."
}
],
"relPath": "src/Internal/ReceiptRendering/ReceiptRenderingEngine.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingEngine.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingEngine.php"
},
"summary_e143cf60c8a62f009ee52615ad8d6fa4_69077941c9bdbbb23d7e274ad2aff041": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class ReceiptRenderingRestController are nearly identical, with only minor differences in code formatting.",
"differences": [
{
"description": "The method definitions in the 'php-stubs-generator' stub file do not have closing braces on new lines, while they do in the 'Stubz' stub file."
},
{
"description": "The parameter type declarations for WP_REST_Request are explicitly typed as \\WP_REST_Request in 'php-stubs-generator' and without the leading backslash in 'Stubz', but these are equivalent."
}
],
"relPath": "src/Internal/ReceiptRendering/ReceiptRenderingRestController.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingRestController.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingRestController.php"
},
"summary_de73f127092e470ea77865a449ab6b58_d478f5570a11982979d0542b62b9f667": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical, with only minor differences in formatting and type hinting.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a namespace reference for the \\WP_REST_Request parameter type hint within the method signature."
},
{
"description": "The 'Stubz' version does not include the namespace reference for the WP_REST_Request parameter type hint within the method signature, using it as a bare class name."
}
],
"relPath": "src/Internal/RestApiParameterUtil.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/RestApiParameterUtil.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/RestApiParameterUtil.php"
},
"summary_50d32661b30b46398e31895b9d373888_90217eef62094a812d7f9587b3390e25": {
"summary": "The 'Stubz' generated stub file is missing several methods, properties, and constants compared to the 'php-stubs-generator' generated stub file.",
"differences": [
{
"description": "Missing property $default_fields"
},
{
"description": "Missing property $fields"
},
{
"description": "Missing property $field_names"
},
{
"description": "Missing property $field_prefix"
},
{
"description": "Missing method set_fields_and_prefix()"
},
{
"description": "Missing method set_field_prefix(): void"
},
{
"description": "Missing method filter_meta_data(array $meta): array"
},
{
"description": "Missing method get_prefixed_field_name($name): string"
},
{
"description": "Missing method get_meta_prefixed_field_name(string $name): string"
},
{
"description": "Missing method unprefix_meta_field_name(string $name): string"
},
{
"description": "Missing method get_hpos_order_object($post_or_order)"
},
{
"description": "Missing method get_unprefixed_field_values(array $raw_values = array()): array"
},
{
"description": "Missing method get_source_values(array $raw_values = array()): array"
},
{
"description": "Missing method get_origin_label(string $source_type, string $source, bool $translated = true): string"
},
{
"description": "Missing method get_field_description(string $field_name): string"
}
],
"relPath": "src/Internal/Traits/OrderAttributionMeta.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Traits/OrderAttributionMeta.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Traits/OrderAttributionMeta.php"
},
"summary_f4cbe902d4ef9aaffd683afa3b14f2fd_ad707044d5d1c360b83b3dcb0e752e22": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in formatting and the default value of the `$sanitizer_rules` parameter in the `sanitize` method.",
"differences": [
{
"description": "The default value for the `$sanitizer_rules` parameter in the `sanitize` method differs between the two stubs. In 'php-stubs-generator', it defaults to `self::LOW_HTML_BALANCED_TAGS_NO_LINKS`, while in 'Stubz', it is explicitly defined as an array with the same content."
}
],
"relPath": "src/Internal/Utilities/HtmlSanitizer.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Utilities/HtmlSanitizer.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Utilities/HtmlSanitizer.php"
},
"summary_a00947d16008b8fbe29c60ed8fe6ec22_8d013e8eccaa153317383733d1f20a23": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical with minor differences in the type hinting of the '$on_failure' parameter.",
"differences": [
{
"description": "In the 'Stubz' stub file, the type hinting for the '$on_failure' parameter is specified as 'callable|null', while in the 'php-stubs-generator' stub file, it is specified as '?callable'."
}
],
"relPath": "src/Internal/Utilities/Types.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Utilities/Types.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Utilities/Types.php"
},
"summary_24cee4214ecf1410d45abe7e164e78e1_9ea34a2996751e21c94cc5be652a43e6": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the WebhookUtil class are mostly similar, but there are a few differences in method signatures and formatting.",
"differences": [
{
"description": "In the 'reassign_webhooks_to_new_user_id' method, 'php-stubs-generator' uses '?int' for the $new_user_id parameter type, while 'Stubz' uses 'int|null'."
},
{
"description": "The code blocks in 'Stubz' are not indented consistently within the methods."
}
],
"relPath": "src/Internal/Utilities/WebhookUtil.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Internal/Utilities/WebhookUtil.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Internal/Utilities/WebhookUtil.php"
},
"summary_4733f522c82b9c75a1a02546da9377c6_f624cca9ad666cfffd10164e9c8e9311": {
"summary": "The stub file generated by 'Stubz' includes additional protected properties compared to the one generated by 'php-stubs-generator'.",
"differences": [
{
"description": "'Stubz' adds a protected property $layout_templates_info of type array."
},
{
"description": "'Stubz' adds a protected property $layout_template_instances of type array."
}
],
"relPath": "src/LayoutTemplates/LayoutTemplateRegistry.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/LayoutTemplates/LayoutTemplateRegistry.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/LayoutTemplates/LayoutTemplateRegistry.php"
},
"summary_5286e067301a6f1f8adba2fcde022fea_878a73fb1c815501d12b766888fc96be": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the ActionsProxy class in the Automattic\\WooCommerce\\Proxies namespace are mostly identical. However, there is a difference in the docblock of the class.",
"differences": [
{
"description": "The class docblock in the stub file generated by 'php-stubs-generator' includes an additional note: 'This class should be used instead of directly accessing the WordPress functions, to ease unit testing.' The stub file generated by 'Stubz' does not include this note."
}
],
"relPath": "src/Proxies/ActionsProxy.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Proxies/ActionsProxy.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Proxies/ActionsProxy.php"
},
"summary_b3f3724cdb291b05037c30880bc1a452_7750544a50b8be66e93e5406dc2b437a": {
"summary": "The two stub files for the CurrencyFormatter class are mostly identical. However, there is a minor difference in how the default value of the $options parameter is defined.",
"differences": [
{
"description": "In 'php-stubs-generator', the default value for the $options parameter in the format method is defined as an empty array using short array syntax ([]). In contrast, 'Stubz' uses the traditional array syntax (array())."
}
],
"relPath": "src/StoreApi/Formatters/CurrencyFormatter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Formatters/CurrencyFormatter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Formatters/CurrencyFormatter.php"
},
"summary_7ee44a3738dd43d120919831e8c23b99_5062b226e856b559ed22eb6bd9cf89fc": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly identical. The only difference is in the default value of the '$options' parameter in the 'format' method.",
"differences": [
{
"description": "In 'php-stubs-generator', the default value for the '$options' parameter in the 'format' method is '[]'. In 'Stubz', it is 'array()'."
}
],
"relPath": "src/StoreApi/Formatters/FormatterInterface.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Formatters/FormatterInterface.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Formatters/FormatterInterface.php"
},
"summary_f192c62a15a6ceb76b0f779189ae5cdb_cbe27ba97d1d276251a437fd148b5311": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with only minor differences in code style.",
"differences": [
{
"description": "The default value for the '$options' parameter in the 'format' method is defined as an empty array using '[]' in 'php-stubs-generator', whereas it uses 'array()' in 'Stubz'."
}
],
"relPath": "src/StoreApi/Formatters/MoneyFormatter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Formatters/MoneyFormatter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Formatters/MoneyFormatter.php"
},
"summary_2eaa0f7741c212303b78510eed57bbbb_7bde170e2d9f7824242060b342302f8b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar with minor differences in docblocks and method parameter types.",
"differences": [
{
"description": "In the 'process_legacy_payment' method, the docblock in 'Stubz' includes an additional '@throws RouteException If the gateway returns an explicit error message.' which is missing in 'php-stubs-generator'."
},
{
"description": "The parameter types for the methods are slightly different. In 'php-stubs-generator', the namespaces are included with backslashes, while in 'Stubz', they are written without backslashes."
}
],
"relPath": "src/StoreApi/Legacy.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Legacy.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Legacy.php"
},
"summary_0a2c7eb52d36cd27cd03da28a282ca91_7fe0dfd2cf969405a32d4198732a7b86": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the PaymentContext class in the Automattic\\WooCommerce\\StoreApi\\Payments namespace are largely similar. However, there are minor differences in syntax and formatting.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the default value of $payment_data in the constructor is initialized with an empty array using square brackets []. In the 'Stubz' stub, it is initialized using the array() function."
},
{
"description": "The method definitions in the 'Stubz' stub have inconsistent spacing around curly braces for opening method bodies."
}
],
"relPath": "src/StoreApi/Payments/PaymentContext.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Payments/PaymentContext.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Payments/PaymentContext.php"
},
"summary_e127f61f6208a0a253916ca33d127696_868c46517de984faca089fb438652907": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class AbstractCartRoute are very similar, with minor differences in formatting. The 'php-stubs-generator' version includes a use statement for DraftOrderTrait which is missing in the 'Stubz' version.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes the use statement 'use \\Automattic\\WooCommerce\\StoreApi\\Utilities\\DraftOrderTrait;' while the 'Stubz' version does not include this trait."
}
],
"relPath": "src/StoreApi/Routes/V1/AbstractCartRoute.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php"
},
"summary_f21e376173d5fdea74c3ba1a376eeb36_b3ef1eeb00e7e84f3b0ba7a7258c6261": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the Cart class have similar structures, but there are some differences in method implementations.",
"differences": [
{
"description": "Method get_path() in 'Stubz' has a missing closing brace."
},
{
"description": "Method get_path_regex() in 'Stubz' has a missing closing brace."
},
{
"description": "Method get_args() in 'Stubz' has a missing closing brace."
},
{
"description": "Method get_route_response() in 'Stubz' uses the fully qualified class name WP_REST_Request without backslashes, while 'php-stubs-generator' correctly uses \\WP_REST_Request."
}
],
"relPath": "src/StoreApi/Routes/V1/Cart.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/Cart.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/Cart.php"
},
"summary_b4fabf1d7dc9d122717b54f60357236a_ce4629dcfd6094e423654de4da89ce87": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' have similar structures, but there are some differences in method implementations and docblock formatting.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the method 'get_path_regex' is declared as public static, while in the 'Stubz' stub, it is missing."
},
{
"description": "In the 'php-stubs-generator' stub, the method 'get_route_post_response' has a parameter type hint for \\WP_REST_Request, while in the 'Stubz' stub, it uses WP_REST_Request without a leading backslash."
},
{
"description": "There are minor differences in docblock formatting between the two stub files, such as varying levels of indentation and spacing within comments."
}
],
"relPath": "src/StoreApi/Routes/V1/CartAddItem.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/CartAddItem.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/CartAddItem.php"
},
"summary_b60fd77169a2cce508164063a00a2b21_236b281f68d651d7d481d15bfd6cc629": {
"summary": "The 'php-stubs-generator' and 'Stubz' stub files for the CartRemoveItem class have minor differences in formatting and method parameter types.",
"differences": [
{
"description": "In 'php-stubs-generator', the type hint for the $request parameter in get_route_post_response() method is \\WP_REST_Request, while in 'Stubz' it is WP_REST_Request without the backslash."
}
],
"relPath": "src/StoreApi/Routes/V1/CartRemoveItem.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/CartRemoveItem.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/CartRemoveItem.php"
},
"summary_300070a9433834e140ecc0aab911946f_610596b2a09a41fd04c31b3dc0a9a49d": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in method definitions and the use of type declarations. The 'php-stubs-generator' version includes a use statement for a trait that is absent in the 'Stubz' version.",
"differences": [
{
"description": "The 'php-stubs-generator' stub file includes a use statement for the trait '\\Automattic\\WooCommerce\\StoreApi\\Utilities\\DraftOrderTrait', which is missing in the 'Stubz' stub file."
},
{
"description": "In the 'Stubz' stub file, the type declarations for parameters and return types are omitted in method definitions. For example, in the 'get_route_post_response' method, the parameter type '\\WP_REST_Request' and the return type '\\WP_REST_Response' are missing."
},
{
"description": "In the 'Stubz' stub file, the method bodies are defined without curly braces, which is a minor code style difference. For example, in the 'get_path' method, the opening brace '{' is on a new line and the closing brace '}' is not present."
}
],
"relPath": "src/StoreApi/Routes/V1/CartUpdateCustomer.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/CartUpdateCustomer.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/CartUpdateCustomer.php"
},
"summary_87fe6e3b98483a0654db4be014d07c5d_e9140314a12ce5aa5add605c56f1d028": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially identical in terms of the classes, extends/implements, methods, constants, and docblocks. The only difference is that 'php-stubs-generator' includes two traits (`DraftOrderTrait` and `CheckoutTrait`) that are not present in the stub file generated by 'Stubz'.",
"differences": [
{
"description": "The stub file from 'php-stubs-generator' includes two traits (`DraftOrderTrait` and `CheckoutTrait`) that are missing in the stub file from 'Stubz'."
}
],
"relPath": "src/StoreApi/Routes/V1/Checkout.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/Checkout.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php"
},
"summary_6b2628936bcbcbeae0e8479345b5b1e2_7441fea4d6c76fc98fffa3fc0e9d7e41": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in the use of traits and method signatures.",
"differences": [
{
"description": "'php-stubs-generator' includes traits 'OrderAuthorizationTrait' and 'CheckoutTrait', which are not present in 'Stubz'."
},
{
"description": "The docblocks for methods `get_path()`, `get_path_regex()`, `get_args()`, and `get_route_post_response()` are slightly different between the two stubs, primarily in formatting."
}
],
"relPath": "src/StoreApi/Routes/V1/CheckoutOrder.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/CheckoutOrder.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/CheckoutOrder.php"
},
"summary_0a27fc1fe0ee8d737f12180b6f3e13df_7134982818ecbdce0bc2fc3d447aba70": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the ProductsById class are mostly identical, with only minor differences in formatting.",
"differences": [
{
"description": "Method definitions in the 'Stubz' stub file lack closing braces on their respective lines."
}
],
"relPath": "src/StoreApi/Routes/V1/ProductsById.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Routes/V1/ProductsById.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Routes/V1/ProductsById.php"
},
"summary_0ec2d0b31d8429c33b78183aeb1b2f30_2309cef4e13ddec45a1da8cfdb2af95e": {
"summary": "Both stub files are similar, but there are minor differences in the order of class members and docblocks.",
"differences": [
{
"description": "The order of the `$title` property and `IDENTIFIER` constant is different between the two stubs. In 'php-stubs-generator', `$title` comes before `IDENTIFIER`, while in 'Stubz', `IDENTIFIER` comes before `$title`."
},
{
"description": "There is an extra space before the closing brace of the `get_properties()` method in 'Stubz' compared to 'php-stubs-generator'."
}
],
"relPath": "src/StoreApi/Schemas/V1/BatchSchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/BatchSchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/BatchSchema.php"
},
"summary_9574ae4df872e1524545a2809ca398b7_1748908d3ecf09ec471750e8bcd430d7": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in the order of class properties and methods.",
"differences": [
{
"description": "The order of the `$title` property and `IDENTIFIER` constant is reversed between the two generators."
}
],
"relPath": "src/StoreApi/Schemas/V1/CartCouponSchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/CartCouponSchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/CartCouponSchema.php"
},
"summary_7d7457f0b398de719d508c5211565fb2_8fca8eeb5483d71f1d1a4206ed401bd1": {
"summary": "Both stub files for the CartItemSchema class are very similar, with minor differences in method and property definitions.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a use statement for the trait '\\Automattic\\WooCommerce\\StoreApi\\Utilities\\ProductItemTrait', which is not present in the 'Stubz' version."
},
{
"description": "The order of properties differs: 'title' is before 'IDENTIFIER' in 'php-stubs-generator', while 'IDENTIFIER' is before 'title' in 'Stubz'."
}
],
"relPath": "src/StoreApi/Schemas/V1/CartItemSchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php"
},
"summary_47c8575754bced31cfe5d0323cfb5307_150dc0099e81453c51be069ca323b855": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with minor differences in the order of class properties and method definitions.",
"differences": [
{
"description": "The order of the `$title` property and `IDENTIFIER` constant differs between the two stubs. In 'php-stubs-generator', the `$title` property is defined before the `IDENTIFIER` constant, while in 'Stubz', the `IDENTIFIER` constant is defined before the `$title` property."
}
],
"relPath": "src/StoreApi/Schemas/V1/ImageAttachmentSchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/ImageAttachmentSchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/ImageAttachmentSchema.php"
},
"summary_da25f7fa816c08a1c682dd54cb904757_fd7e2dc8d9ccbf3f5cf71998b1569579": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some minor differences in method definitions and docblocks.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the `get_item_response` and `get_totals` methods have curly braces on new lines. In the 'Stubz' stub, these methods have their opening curly brace on the same line as the method signature."
},
{
"description": "In the 'php-stubs-generator' stub, the `OrderItemSchema` class uses a trait named `ProductItemTrait`. This trait is missing in the 'Stubz' stub."
}
],
"relPath": "src/StoreApi/Schemas/V1/OrderItemSchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/OrderItemSchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/OrderItemSchema.php"
},
"summary_b918a4c19a39b4843554645b153815ff_156af040928737ea430eb36b04b1a71b": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are some differences in the order of class properties and methods.",
"differences": [
{
"description": "The order of the '$title' property and the 'IDENTIFIER' constant is different between the two stub files."
},
{
"description": "There are minor formatting differences in the method bodies (missing closing braces), but these do not affect functionality."
}
],
"relPath": "src/StoreApi/Schemas/V1/ProductAttributeSchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/ProductAttributeSchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductAttributeSchema.php"
},
"summary_f5e246b00f3ee33f44bcd99da0fb33aa_c39c8a9e223e9eb08ba61df7601bc0b1": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the ProductCategorySchema class are mostly identical. However, there are minor differences in the order of class properties and method definitions.",
"differences": [
{
"description": "The order of the $title property is different between the two stub files. In 'php-stubs-generator', it appears before IDENTIFIER, while in 'Stubz', it appears after IDENTIFIER."
},
{
"description": "There are minor differences in code formatting such as spacing around curly braces and method declarations. These do not affect functionality but differ in style."
}
],
"relPath": "src/StoreApi/Schemas/V1/ProductCategorySchema.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php"
},
"summary_725e8fc94157cb037812a59a4e10bbc2_1e37e5790730dd4c59866f2b2e8777f1": {
"summary": "The stub file generated by 'Stubz' includes additional properties and a new method compared to the stub file generated by 'php-stubs-generator'.",
"differences": [
{
"description": "The 'SessionHandler' class in the 'Stubz' stub file has an additional protected property '$token' which is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'SessionHandler' class in the 'Stubz' stub file has an additional protected property '$table' which is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'SessionHandler' class in the 'Stubz' stub file has an additional protected property '$session_expiration' which is not present in the 'php-stubs-generator' stub file."
},
{
"description": "The 'SessionHandler' class in the 'Stubz' stub file includes a new method 'init_session_from_token()' which is not present in the 'php-stubs-generator' stub file."
}
],
"relPath": "src/StoreApi/SessionHandler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/SessionHandler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/SessionHandler.php"
},
"summary_798dcc2891703bfcc210eb76984dc99a_e48652a460d095ef32ccaab807eaf4d3": {
"summary": "The 'Stubz' generated stub file is missing several methods and functionalities compared to the 'php-stubs-generator' stub file. The methods 'process_without_payment', 'process_payment', 'get_request_payment_method_id', 'get_request_payment_data', 'update_order_from_request', 'get_request_payment_method_title', and 'persist_additional_fields_for_order' are not present in the 'Stubz' version.",
"differences": [
{
"description": "The 'process_without_payment' method is missing from the 'Stubz' stub file."
},
{
"description": "The 'process_payment' method is missing from the 'Stubz' stub file."
},
{
"description": "The 'get_request_payment_method_id' method is missing from the 'Stubz' stub file."
},
{
"description": "The 'get_request_payment_data' method is missing from the 'Stubz' stub file."
},
{
"description": "The 'update_order_from_request' method is missing from the 'Stubz' stub file."
},
{
"description": "The 'get_request_payment_method_title' method is missing from the 'Stubz' stub file."
},
{
"description": "The 'persist_additional_fields_for_order' method is missing from the 'Stubz' stub file."
}
],
"relPath": "src/StoreApi/Utilities/CheckoutTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Utilities/CheckoutTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Utilities/CheckoutTrait.php"
},
"summary_ac3d8d5fe9b4f90b0a46914664444d0a_22754c642aa9ac07e186869bf38c7e76": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar, with minor differences in code style and formatting.",
"differences": [
{
"description": "In the method signature of `is_authorized`, 'php-stubs-generator' includes a backslash before `WP_REST_Request` while 'Stubz' does not."
},
{
"description": "Method bodies are empty in both stubs, but there is an extra closing brace in 'php-stubs-generator' for the `is_authorized` method which is missing in 'Stubz'."
}
],
"relPath": "src/StoreApi/Utilities/OrderAuthorizationTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Utilities/OrderAuthorizationTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Utilities/OrderAuthorizationTrait.php"
},
"summary_1c3cb130282e8ef918ff2fd9be69c2ab_6c47b1389f1fc25bd5c2d3a432a01706": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly similar, but there are minor differences in the PHPDoc comments and method signatures.",
"differences": [
{
"description": "In 'Stubz', the type hint for the $product parameter in both methods is missing a backslash (\\) before WC_Product. This could lead to issues if the namespace is not properly imported or used."
},
{
"description": "The method signatures and body content are identical in both stub files, indicating that the core functionality and parameters are consistent between the two generators."
}
],
"relPath": "src/StoreApi/Utilities/ProductItemTrait.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Utilities/ProductItemTrait.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Utilities/ProductItemTrait.php"
},
"summary_a8b58f6a92e48bfee0af0dce94fb4ade_0cc67f21eae30905ba3a4630509dd56c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the QuantityLimits class have some differences in terms of methods, constants, docblocks, and traits.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a trait usage: `use \\Automattic\\WooCommerce\\StoreApi\\Utilities\\DraftOrderTrait;`, which is not present in the 'Stubz' version."
},
{
"description": "The 'Stubz' version includes additional protected methods that are not present in the 'php-stubs-generator' version: `get_product_quantity_limit(WC_Product $product)`, `get_remaining_stock(WC_Product $product)`, `filter_numeric_value(int $value, string $value_type, $cart_item_or_product)`, and `filter_boolean_value($value, string $value_type, $cart_item_or_product)`."
},
{
"description": "The method parameters in the 'Stubz' version use type hinting for all parameters, while the 'php-stubs-generator' version only uses type hinting for `int` and `string` types."
}
],
"relPath": "src/StoreApi/Utilities/QuantityLimits.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/StoreApi/Utilities/QuantityLimits.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php"
},
"summary_073c9f9193758c723c0b6c8c767acec5_74b588a934775da4d673f843893d830f": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are similar, but there are differences in the default value of the 'mode' parameter in the 'round' method.",
"differences": [
{
"description": "In the 'round' method, the default value for the '$mode' parameter is 'PHP_ROUND_HALF_UP' (value: 1) in the 'php-stubs-generator' stub file. In contrast, the 'Stubz' stub file uses a numeric value of '1' directly without using the constant 'PHP_ROUND_HALF_UP'."
}
],
"relPath": "src/Utilities/NumberUtil.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/src/Utilities/NumberUtil.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/src/Utilities/NumberUtil.php"
},
"summary_8ca2fe9615e35c74eedc09e74cff0177_e22b3fc61dcf0c925176b751fb630e40": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely identical, with no significant differences in class definitions, methods, constants, or docblocks. The only minor difference is the placement of the constant declaration within the class.",
"differences": [
{
"description": "The constant SCRIPT_HANDLE is declared using different syntaxes: 'php-stubs-generator' uses 'const SCRIPT_HANDLE = ...;' and 'Stubz' uses 'public const SCRIPT_HANDLE = ...;'."
}
],
"relPath": "vendor/automattic/jetpack-assets/src/class-script-data.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-assets/src/class-script-data.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-assets/src/class-script-data.php"
},
"summary_e55077821fcc29445102301b0a7a96dd_88142e4ffb521be9d4891ed79f38cb80": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' for the class 'Automattic\\Jetpack\\Autoloader\\AutoloadFileWriter' are largely identical. The only differences observed are in the formatting of the COMMENT constant string.",
"differences": [
{
"description": "The COMMENT constant in 'php-stubs-generator' uses a HEREDOC syntax, while in 'Stubz', it is defined using a single quoted string."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/AutoloadFileWriter.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/AutoloadFileWriter.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/AutoloadFileWriter.php"
},
"summary_7f2c21906614c9ea0d5f95fb7a1b78f8_5b7a0a198310fba7255faa89471b4860": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class 'Automattic\\Jetpack\\Autoloader\\AutoloadGenerator' are largely similar. However, there are some minor differences in code formatting and type hinting.",
"differences": [
{
"description": "The 'php-stubs-generator' version uses fully qualified names for the parameters in the constructor method, while the 'Stubz' version does not."
},
{
"description": "In the 'php-stubs-generator' version, the methods have curly braces on new lines, whereas in the 'Stubz' version, they are placed at the end of the line with no space."
},
{
"description": "The 'php-stubs-generator' version uses docblocks for all parameters and return types, while the 'Stubz' version has some missing docblocks for certain parameters and return types."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/AutoloadGenerator.php"
},
"summary_6546aa126285b8a51f4e3c0335fac610_726dec9fb8c1df9d7d00c9c90960e16c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are very similar, with only minor differences in formatting and the order of implemented interfaces.",
"differences": [
{
"description": "The extends/implements order differs. 'php-stubs-generator' lists \\Composer\\Plugin\\PluginInterface first, while 'Stubz' lists \\Composer\\EventDispatcher\\EventSubscriberInterface first."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php"
},
"summary_473890631c6bbf1b2fb85afbd023625c_09062c58970a918a1d2776e43fec0bf3": {
"summary": "Both stub files for Hook_Manager class are similar with minor differences in formatting and missing comment block in one file.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes a PHPCS ignore comment at the top of the file, which is not present in the 'Stubz' version."
},
{
"description": "The method and class docblocks in the 'php-stubs-generator' version are indented with spaces, while in the 'Stubz' version they start right after the opening PHP tag without any indentation."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/class-hook-manager.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/class-hook-manager.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/class-hook-manager.php"
},
"summary_bcbe30dc4059ee795936e03fe6aad927_86e6d84741df20dfe609963e28bd23ad": {
"summary": "The PHP stub files generated by 'php-stubs-generator' and 'Stubz' are largely similar in terms of class structure, methods, parameters, return types, and exception handling. However, there are minor differences in the comments and formatting.",
"differences": [
{
"description": "In the comment for the `find_using_option` method, 'php-stubs-generator' uses '\\false' while 'Stubz' uses 'false'."
},
{
"description": "'php-stubs-generator' includes a phpcs:ignore directive in the header comment which is not present in 'Stubz'."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/class-plugin-locator.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/class-plugin-locator.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/class-plugin-locator.php"
},
"summary_470934945e305d3cf7abb72f439f1297_da16a246a04e20bfed80b30bf3d02f5d": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class `Plugins_Handler` are similar but have some differences in constants visibility and method implementations.",
"differences": [
{
"description": "In 'php-stubs-generator', the constant `TRANSIENT_KEY` is defined with `const`, while in 'Stubz', it is defined with `public const`. The 'Stubz' version uses a more modern PHP syntax for defining constants."
},
{
"description": "Method implementations are missing in both stub files. This is expected as stubs typically provide method signatures without their actual implementation."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/class-plugins-handler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/class-plugins-handler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/class-plugins-handler.php"
},
"summary_0ed07ca294d2b8c25b57672550dd0527_7c2af185e5220ff57e7873ab237d32af": {
"summary": "Both stub files for the `Version_Loader` class are largely identical, with minor differences in formatting and lack of method implementations.",
"differences": [
{
"description": "The 'php-stubs-generator' stub includes docblocks indicating that methods like `get_class_map`, `get_psr4_map`, and `find_class_file` return an array. The 'Stubz' stub does not provide these specific details."
},
{
"description": "The 'php-stubs-generator' stub has a phpcs ignore comment at the top, which is missing in the 'Stubz' stub."
}
],
"relPath": "vendor/automattic/jetpack-autoloader/src/class-version-loader.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-autoloader/src/class-version-loader.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-autoloader/src/class-version-loader.php"
},
"summary_61776665468c622b646e7acb15aae616_ef946c5e43241cb4658d5842efb7ee2a": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, with the main difference being the presence of docblocks in the 'php-stubs-generator' version.",
"differences": [
{
"description": "The 'php-stubs-generator' version includes additional docblocks for the class and methods, providing details such as package information, since versions, and method descriptions. The 'Stubz' version lacks these docblocks."
}
],
"relPath": "vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-clientmulticall.php"
},
"summary_3ee6dda7e456096f2aab2c734fde235f_02ae4ccc6488f14e6964ba526bef3a7c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the Jetpack_Tracks_Client class are nearly identical. The only difference is in how constants are defined.",
"differences": [
{
"description": "Constants in 'php-stubs-generator' do not have the 'public' visibility modifier, while 'Stubz' includes it."
}
],
"relPath": "vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-client.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-client.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-client.php"
},
"summary_acb664bd51b9575d3f839a7bc0b7bd68_3303d43efe09473c32097026b64085c1": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the Jetpack_Tracks_Event class are largely similar, but there are some differences in constants, docblocks, and method implementations.",
"differences": [
{
"description": "The constant EVENT_NAME_REGEX is defined with a different visibility. In 'php-stubs-generator', it is public, while in 'Stubz', it is also public."
},
{
"description": "The constant PROP_NAME_REGEX is defined with a different visibility. In 'php-stubs-generator', it is public, while in 'Stubz', it is also public."
},
{
"description": "There are differences in the docblocks for the class and methods. For example, the docblock for the Jetpack_Tracks_Event class includes additional information about usage in 'php-stubs-generator', which is not present in 'Stubz'."
},
{
"description": "The method implementations (e.g., __construct, record, validate_and_sanitize, build_pixel_url, event_name_is_valid, prop_name_is_valid, scrutinize_event_names) do not have any differences between the two stub files."
}
],
"relPath": "vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-event.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-event.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/legacy/class-jetpack-tracks-event.php"
},
"summary_b4de147fe09736dc70234439aaf9628e_8bf0b47d11fa789e6b89e5fb1e9f0e29": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are mostly identical, but there is a difference in the default value of the `$cutoff_timestamp` parameter in the `clean_all` method.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub file, the default value for the `$cutoff_timestamp` parameter in the `clean_all` method is `PHP_INT_MAX`. In the 'Stubz' stub file, the default value for the same parameter is `9223372036854775807`, which is the decimal representation of PHP_INT_MAX."
}
],
"relPath": "vendor/automattic/jetpack-connection/src/class-nonce-handler.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/src/class-nonce-handler.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/src/class-nonce-handler.php"
},
"summary_9acf49d81ea0b187b91758e9ba022d7f_72ff2c9ad9a653b052151bba05211e76": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' differ primarily in the visibility of constants and formatting of docblocks.",
"differences": [
{
"description": "Constants defined in 'php-stubs-generator' are not marked as public, while those in 'Stubz' are explicitly marked as public."
},
{
"description": "The docblock for CACHED_FAILED_REQUEST_EXPIRATION is missing in 'Stubz'."
}
],
"relPath": "vendor/automattic/jetpack-connection/src/class-package-version-tracker.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/src/class-package-version-tracker.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/src/class-package-version-tracker.php"
},
"summary_2ecedc2a1a7f19cedf52b1f05b08b514_b6aa4b76cd06af21303ac41b10b519b0": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in syntax.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the constant OPTION_NAME is declared as private (const OPTION_NAME = 'tos_agreed'), while in the 'Stubz' stub, it is declared as public (public const OPTION_NAME = 'tos_agreed')."
}
],
"relPath": "vendor/automattic/jetpack-connection/src/class-terms-of-service.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/src/class-terms-of-service.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/src/class-terms-of-service.php"
},
"summary_b389b0d3ecb71fc8af1815aea7eb7cb9_c43f4fb95c5dba45962df8de10cb550e": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the Automattic\\Jetpack\\Connection\\Utils class are essentially identical in terms of methods, constants, and docblocks. The only difference is in the visibility declaration of the constants.",
"differences": [
{
"description": "Constants in 'php-stubs-generator' are declared with 'const', while in 'Stubz' they are declared with 'public const'."
}
],
"relPath": "vendor/automattic/jetpack-connection/src/class-utils.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/src/class-utils.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/src/class-utils.php"
},
"summary_e0ceaa998ffb26340c89d6e8c7e14722_e7eff4de93c3d83f8ecd9aeb5fbec4cb": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' for the class Automattic\\Jetpack\\IdentityCrisis\\URL_Secret are largely identical. However, there is a minor difference in the declaration of constants.",
"differences": [
{
"description": "In the stub file generated by 'php-stubs-generator', the constant OPTION_KEY and LIFESPAN are declared as protected. In contrast, the stub file generated by 'Stubz' declares them as public."
}
],
"relPath": "vendor/automattic/jetpack-connection/src/identity-crisis/class-url-secret.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/automattic/jetpack-connection/src/identity-crisis/class-url-secret.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/automattic/jetpack-connection/src/identity-crisis/class-url-secret.php"
},
"summary_ac374e056acb1cd729f423532ff10616_e488de8d06c1b2af5c02d48d70246b57": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the BitrixInstaller class are mostly identical. However, there are some minor differences in formatting and a few deprecated keys that should be noted.",
"differences": [
{
"description": "The 'php-stubs-generator' includes comments indicating that 'component', 'theme', and related keys are deprecated and will be removed in the major release, whereas 'Stubz' does not include these specific comments."
},
{
"description": "The formatting of array elements differs slightly between the two stubs. 'php-stubs-generator' has each element on a new line with indentation, while 'Stubz' has all elements on the same line without indentation."
},
{
"description": "There is a difference in method implementations where 'inflectPackageVars', 'templatePath', and 'checkDuplicates' methods are not fully defined (just the method signature) in both stubs but with different formatting styles."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php"
},
"summary_0377c4f559809a032640404a3dc8ba4d_a4abe93907377c87425129fac1daf121": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the CraftInstaller class are mostly similar, but there are some minor differences in formatting and constants visibility.",
"differences": [
{
"description": "In the 'php-stubs-generator' stub, the constants NAME_PREFIX and NAME_SUFFIX are defined as const without the public keyword, whereas in the 'Stubz' stub, they are defined with the public keyword."
},
{
"description": "There is a slight difference in the formatting of the $locations array. The 'php-stubs-generator' stub has it on one line, while the 'Stubz' stub splits it into multiple lines for better readability."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/CraftInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php"
},
"summary_a2cb3b82c3b8475ee84802f56f184943_48850f86dca608d9be61c5f8cfda5fd6": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the DokuWikiInstaller class are mostly identical, with minor differences in formatting and docblocks. There are no missing classes or methods between the two stubs.",
"differences": [
{
"description": "The docblock comments have slightly different spacing and line breaks."
},
{
"description": "The array definition for $locations has a space before the opening curly brace in 'php-stubs-generator' but not in 'Stubz'."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php"
},
"summary_d5f1131030d93d4d8316c03c0d96b2f3_8670b1111bdcb043d34b45aa7e6a5f29": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical with no significant differences in classes, extends/implements, methods, constants, or docblocks.",
"differences": [
{
"description": "There is a minor difference in the namespace usage within the method signature. 'php-stubs-generator' uses the fully qualified name '\\Composer\\Package\\PackageInterface', while 'Stubz' omits the backslash prefix, using just 'Composer\\Package\\PackageInterface'."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php"
},
"summary_d15af1b27aa38cba8222367caf4a262a_e3a3e6609f7d9fdac86ad4fdfed47718": {
"summary": "The stub files from 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting.",
"differences": [
{
"description": "The array syntax for the '$locations' property is slightly different. 'php-stubs-generator' uses a single-line array declaration, while 'Stubz' uses a multi-line array declaration."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/ItopInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php"
},
"summary_ed6dd8389e7e1500c17b23d8c02feaa8_ce1c610633b2d7a41d5779f3d861f81d": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are essentially the same, with only minor differences in formatting.",
"differences": [
{
"description": "The comment '// TODO: Add inflector for mod_ and com_ names' is present in the stub file from 'php-stubs-generator' but not in the stub file from 'Stubz'."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php"
},
"summary_b688bb6fb7d08fd02d0723cc409f944c_51ba3b2f1de71c472ab35a48dc0670e7": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the class KanboardInstaller are identical in terms of classes, extends/implements, methods, constants, and docblocks. The only difference is a minor code style issue regarding array formatting.",
"differences": [
{
"description": "The array $locations in the 'php-stubs-generator' stub file has consistent indentation within its elements, whereas in the 'Stubz' stub file, there is an inconsistent indentation for the array element."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php"
},
"summary_a29c0de72d835d51e450fe6a8172cc0f_7360fca6ff3e784310af7dfacca4ae29": {
"summary": "The two stub files are essentially the same, with only minor differences in formatting.",
"differences": [
{
"description": "The 'locations' array in the 'php-stubs-generator' file is on a single line, while it spans multiple lines in the 'Stubz' file."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php"
},
"summary_6dbe08b672131856fdd0a82771f8f905_87afb5d40dea5c7709f73a94251957f6": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are largely identical, with only minor differences in formatting.",
"differences": [
{
"description": "In the 'locations' array of 'php-stubs-generator', there is no trailing comma after the last element ('plugin' => 'plugins/{$name}/')."
},
{
"description": "The closing brace of the 'inflectPackageVars' method in 'Stubz' is indented differently compared to 'php-stubs-generator'."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php"
},
"summary_4236058129be71e8a9e20bf52d7f054d_ec3a8ddabd3f886157abc1ff5894ae46": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the MediaWikiInstaller class are mostly identical, with only minor differences in formatting.",
"differences": [
{
"description": "The 'locations' array in 'php-stubs-generator' has consistent spacing around the keys and values, while 'Stubz' has inconsistent spacing."
},
{
"description": "The method definitions for 'inflectPackageVars', 'inflectExtensionVars', and 'inflectSkinVars' are not implemented in either stub file. They only contain opening braces followed by closing braces without any code inside."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php"
},
"summary_a626bbea08040aa808afabac0348cea1_802a5ffe060f7e2439530aaae609d65c": {
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' for the OxidInstaller class are largely similar, with only minor differences in syntax and formatting. Both define the same constants, properties, methods, and docblocks.",
"differences": [
{
"description": "In 'php-stubs-generator', the VENDOR_PATTERN constant is defined using the const keyword, while in 'Stubz', it uses the public const keyword."
},
{
"description": "The formatting of the $locations array is slightly different between the two stubs. 'php-stubs-generator' has consistent indentation for each key-value pair, whereas 'Stubz' has inconsistent spacing after the opening parenthesis and before the closing brace."
}
],
"relPath": "vendor/composer/installers/src/Composer/Installers/OxidInstaller.php",
"pathA": "/home/lucas/automattic/stubz/tests/comparisons/php-stubs-generator/woocommerce/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php",
"pathB": "/home/lucas/automattic/stubz/tests/comparisons/../__snapshots__/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment