Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After freeze into main #741

Merged
merged 244 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
244 commits
Select commit Hold shift + click to select a range
1c0d9e8
PES-1994: filtering carriers (#551)
jan-potuznik-z May 16, 2024
fcdbfb3
PES-2043, PES-2050: New carrier option switch in settings (#552)
jan-potuznik-z May 16, 2024
de6b141
PES-2071: native wc shipping methods modal carriers - continents supp…
jan-potuznik-z May 16, 2024
1b4578a
PES-2077: Fixed the error that occurs when the new settings option is…
jan-potuznik-z May 16, 2024
3757bee
PES-2076: isActive refactoring (#542)
jan-potuznik-z May 17, 2024
2143a9c
PES-2117: static cache implemented (#565)
jan-potuznik-z Jun 3, 2024
cde9a1a
PES-2118: ShippingMethod fix (#567)
jan-potuznik-z Jun 3, 2024
b3e498c
PES-2221: array_merge argument fix (#583)
jan-potuznik-z Aug 12, 2024
f803790
PES-2222: key default for carrier modal (#584)
IlIIlIlIl1 Aug 13, 2024
97c4317
PES-2085: wc shipping method settings for Packeta show all carriers f…
IlIIlIlIl1 Aug 15, 2024
b1dafce
PES-2230: rebase fix
packeta-user Sep 5, 2024
13741e5
PES-2230: rebase fix fix
packeta-user Sep 6, 2024
90c5289
main into PES-993 (#604)
jan-potuznik-z Sep 27, 2024
0857b2d
PES-2231,PES-2234,PES-2280,PES-2283: generated carrier classes (#609)
jan-potuznik-z Oct 15, 2024
7939e82
PES-2342: Moved the WSDL URL to the config file and applied the chang…
DBelka Nov 4, 2024
7bb1c57
PES-2296, PES-2348 Check phpcs sniff ValidVariableName (#625)
mzk Nov 4, 2024
2a9a45b
PES-2277, PES-2294, PES-2347: Packet stored until (#611)
Nov 4, 2024
bd448cb
PES-2347: Fix using a non-existent property after rebase (#639)
Nov 6, 2024
bbb4051
PES-2323: new composer commands (#640)
jan-potuznik-z Nov 7, 2024
25496bb
PES-2362: excluded folders added to editorconfig check (#642)
jan-potuznik-z Nov 8, 2024
2d5e500
PES-2321: sniffer rules update (#638)
jan-potuznik-z Nov 8, 2024
95854e2
PES-2371: PHPstan - Packetery/Module lvl 2 and Packetery/Core strict…
Nov 18, 2024
411e082
PES-2335: ec: ignore generated file (#652)
jan-potuznik-z Nov 18, 2024
455bd1d
PES-2380: short ternaries utilised
jan-potuznik-z Nov 18, 2024
696f940
PES-2308: composer audit pipeline
jan-potuznik-z Nov 18, 2024
4e61ab6
PES-2308: composer audit pipeline
jan-potuznik-z Nov 18, 2024
3dd8daa
PES-2308: change directory for composer script
mzk Nov 19, 2024
eec7b7c
PES-2308: change php version to 8.2
mzk Nov 19, 2024
b81ba88
PES-2308: change php version to 8.1
mzk Nov 19, 2024
f3d6cb5
Merge branch 'main' into main-to-after-freeze
jan-potuznik-z Nov 19, 2024
3927f7c
code style update after merge
jan-potuznik-z Nov 19, 2024
68e73c7
PES-2308: code style fix
jan-potuznik-z Nov 19, 2024
dcf52e8
Merge branch 'main' into after-freeze (#661)
jan-potuznik-z Nov 19, 2024
2f50650
Merge pull request #662 from Zasilkovna/main-into-after-freeze
zemekoule Nov 19, 2024
d8b26cc
PES-2386: log record note escaping fix
jan-potuznik-z Nov 19, 2024
60ce7a3
PES-2387: editorconfig check added
jan-potuznik-z Nov 19, 2024
42bdde3
PES-2308: composer audit pipeline (#657)
zemekoule Nov 20, 2024
8dd149f
PES-2380: short ternaries utilised (#656)
zemekoule Nov 21, 2024
a6edbd8
PES-2386: log record note escaping fix (#663)
zemekoule Nov 21, 2024
f249c2c
PES-2324: removed unused code connected to translations in latte temp…
jan-potuznik-z Nov 18, 2024
1508cf0
PES-2324: removed unused code connected to translations in latte temp…
zemekoule Nov 21, 2024
77cd0c6
PES-2335: Plugin class refactoring
jan-potuznik-z Nov 12, 2024
c43fff7
PES-2335: plugin class refactor (#653)
zemekoule Nov 25, 2024
2b2ac5e
PES-2387: editorconfig check added (#664)
zemekoule Nov 25, 2024
9d6be03
PES-2322: OrderRepository getById refactoring
jan-potuznik-z Nov 18, 2024
63076fe
PES-2322: OrderRepository getById refactoring (#655)
zemekoule Nov 25, 2024
d8ffacf
PES-2374: Small refactoring Upgrade.php
Karpec Nov 12, 2024
7d78145
PES-2374: Bug fixes reported by phpstan level 2 - strict rules in Pac…
Karpec Nov 13, 2024
1a26f4f
PES-2374: Turn on strict rules for Packetery/Module
Karpec Nov 13, 2024
a5fcd9f
PES-2374: PHPStan level 2 - strict rules
Karpec Nov 25, 2024
c013ab4
PES-2375: Fixes reported by phpstan level 3 in Packetery/Module
Karpec Nov 13, 2024
5363bce
PES-2375: Set phpstan level 3 in Packetery/Module
Karpec Nov 13, 2024
97e700c
PES-2375: PHPStan level 3
Karpec Nov 25, 2024
b23d422
PES-2376: This array merge doesn't make sense
Karpec Nov 13, 2024
67adbb5
PES-2376: Unused property
Karpec Nov 13, 2024
d3f2e01
PES-2376: PHPStan sees this condition as allways true
Karpec Nov 13, 2024
372b93b
PES-2376: Unused property
Karpec Nov 13, 2024
62b62e5
PES-2376: Fixes reported by phpstan level 4 in Packetery/Module
Karpec Nov 13, 2024
56adea7
PES-2376: passing latte parameters fixed
jan-potuznik-z Nov 25, 2024
1526f66
PES-2376: Fix undefined array keys in administration
Karpec Nov 25, 2024
8906233
PES-2376: PHPStan level 4
Karpec Nov 25, 2024
2d147ff
PES-2377: Fixes reported by phpstan level 5 in Packetery/Module
Karpec Nov 21, 2024
ae1d253
PES-2377: Set phpstan level 5 in Packetery/Module
Karpec Nov 21, 2024
75a968e
PES-2377: Delete the default parameters in the function, which are th…
Karpec Nov 25, 2024
9c048be
PES-2377: PHPStan level 5
Karpec Nov 25, 2024
a65f58b
PES-2372: PHPStan level 2 strict rules, 3, 4, 5 (#670)
zemekoule Nov 25, 2024
727215e
PES-2337: Adds checks to confirm variables are arrays before using `c…
Karpec Nov 28, 2024
7713a10
PES-2337: Refactor COD rounding in packet submission process
Karpec Nov 28, 2024
980cd38
PES-2337: Refactor get custom number or order number
Karpec Nov 28, 2024
a85eea5
PES-2337: Delete trailing comma in parameters list, cause is only ava…
Karpec Nov 28, 2024
f01f8d0
fixup! PES-2337: Adds checks to confirm variables are arrays before u…
Karpec Nov 28, 2024
248534c
PES-2402: Fix invalid types in count() function + fix some other bugs…
zemekoule Dec 4, 2024
0bd1fea
PES-2344: no internal annotations for scoped deps
Dec 4, 2024
9bf37ea
PES-2344: no internal annotations for scoped deps (#676)
zemekoule Dec 5, 2024
700b561
Merge branch 'main' into main-into-PES-993-dev
jan-potuznik-z Dec 5, 2024
ed2c686
Fixes after complicated merge.
jan-potuznik-z Dec 5, 2024
e7eb3e2
Merge main into PES-993-dev (#678)
zemekoule Dec 5, 2024
a857845
Merge main into after-freeze (#679)
zemekoule Dec 6, 2024
eca2a93
PES-2404: Fixes reported by phpstan level 6 in Packetery/Module
Karpec Nov 29, 2024
1dc24a5
PES-2404: Increased the PHPStan analysis level from 5 to 6 for Packet…
Karpec Nov 29, 2024
7bcd526
PES-2404: PHPStan level 6 (#674)
zemekoule Dec 6, 2024
940915a
Redirect stderr to stdout
Karpec Dec 6, 2024
1bc9e77
Correct sniffer error detection condition to catch all errors
Karpec Dec 6, 2024
bbde988
Remove --no-dev option from composer install command in run-sniffer.sh
Karpec Dec 6, 2024
2ad60b0
Add PHP_CodeSniffer to composer.json
Karpec Dec 6, 2024
9619570
Move WooCommerce Sniffs to require-dev
Karpec Dec 6, 2024
8916311
Change the message in the pipeline to reflect the installation of all…
Karpec Dec 6, 2024
6bcaede
Merge branch 'after-freeze' into after-freeze-to-PES-993-dev
jan-potuznik-z Dec 6, 2024
bb82d38
Fixes after complicated merge.
jan-potuznik-z Dec 6, 2024
b31baa2
PES-2405: FIx PHPCode_Sniffer in pipelines (#681)
zemekoule Dec 9, 2024
a3b90d7
Merge "after-freeze" into PES-993-dev (#682)
zemekoule Dec 9, 2024
fb7ef58
PES-2408: Added new settings for default dimensions and incorporated …
DBelka Dec 6, 2024
0310af9
PES-2408: New default dimensions settings (#685)
zemekoule Dec 10, 2024
922898f
PES-2409: sniffer (dev dependencies) updated
jan-potuznik-z Dec 13, 2024
90d87cb
PES-2409: yoda conditions disallowed, comment fullstops excluded
jan-potuznik-z Dec 13, 2024
e2a97f9
PES-2401: PHP parallel lint pipeline
jan-potuznik-z Dec 13, 2024
1f7024f
PES-2409: yoda conditions disallowed, sniffer update, comment fullsto…
zemekoule Dec 16, 2024
eea483f
PES-2406: Add nette PHPStan extension
Karpec Dec 4, 2024
6818add
PES-2406: Some fixes that could be a potential bug that PHPStan repor…
Karpec Dec 4, 2024
297564b
PES-2406: Upgrade PHPStan and related packages to version 2.0 and add…
Karpec Dec 4, 2024
269d7b1
PES-2406: Improve form validation with error handling
Karpec Dec 4, 2024
d0f7c73
PES-2406: Fixes after upgrade PHPStan to version 2.0
Karpec Dec 4, 2024
b27fe98
PES-2406: Update PHPStan configuration with additional ignore rules
Karpec Dec 4, 2024
66870c9
PES-2406: Simplified PHPStan configuration files
Karpec Dec 5, 2024
129295c
PES-2406: Improve code with null checks and type checks
Karpec Dec 5, 2024
8b9cab3
PES-2406: Handle null API key in PickupPointValidate constructor
Karpec Dec 8, 2024
1f68585
PES-2406: Improve nonce action creation with null order number handling
Karpec Dec 8, 2024
b7f5965
PES-2406: Exclude UselessOverridingMethod from PHPCS rules
Karpec Dec 9, 2024
973706f
PES-2416: Handle null API key in PickupPointValidate constructor
Karpec Dec 10, 2024
3c40f50
PES-2406, PES-2416: PHPStan Version 2 and fixes from levels 7 a 8 (#677)
zemekoule Dec 16, 2024
1196061
PES-2330: tracking url update, moved to neon
jan-potuznik-z Dec 13, 2024
eb675d3
PES-2330: editorconfig update
jan-potuznik-z Dec 13, 2024
f619b7f
PES-2330: tracking url update, moved to neon (#687)
zemekoule Dec 17, 2024
a8ecbef
PES-2401: PHP parallel lint pipeline (#689)
zemekoule Dec 17, 2024
67823b3
PES-2417: Remove unnecessary TODO
Karpec Dec 12, 2024
fb5da8f
PES-2409: do not require a period at the end of inline comments
jan-potuznik-z Dec 17, 2024
f29f38b
PES-2417: Updated Nette Forms dependency to version 3.1.6
Karpec Dec 12, 2024
7ea0d84
PES-2417: Replaced `setNumType` with `getNumType` to better reflect t…
Karpec Dec 12, 2024
f05b72e
PES-2417: Improve trimDecimalPlaces to handle null values
Karpec Dec 13, 2024
596c56e
PES-2417: Introduced OrderFormData instead array-based form values to…
Karpec Dec 13, 2024
f8a84ba
PES-2417: Fix undefined 'items' check in customs form
Karpec Dec 16, 2024
d08a220
PES-2417: Remove unused $detailPageSettings and redundant localization
Karpec Dec 16, 2024
208f31f
PES-2409: do not require a period at the end of inline comments (#691)
zemekoule Dec 18, 2024
57b17de
PES-2419: block checkout ajax hook fix
jan-potuznik-z Dec 18, 2024
30e0376
PES-2417: Fix data types (#690)
zemekoule Dec 20, 2024
8d9a320
PES-2419: block checkout ajax hook fix (#692)
zemekoule Dec 20, 2024
f00b988
PES-2337, PES-2411: refactor of checkout related code
jan-potuznik-z Dec 20, 2024
fe55f60
PES-2337, PES-2411: Checkout refactor (#672)
zemekoule Dec 20, 2024
efeff95
PES-2328: Refactor carrier options rendering logic
Karpec Dec 11, 2024
3f26838
PES-2328: Add WpAdapter dependency to OptionsPage, so we can better t…
Karpec Dec 11, 2024
4b5c86e
PES-2328: Simplify property docblocks in OptionsPage
Karpec Dec 11, 2024
e5dd68c
PES-2328: Add carrier restrictions by product dimension
jan-potuznik-z Dec 19, 2024
b4f2a00
PES-2328: Refactor dimension restrictions validation logic in options…
Karpec Dec 20, 2024
ac6a98c
PES-2328: better display of inputs
jan-potuznik-z Dec 20, 2024
188668b
PES-2328: ModuleHelper added phpdocs
jan-potuznik-z Dec 20, 2024
4ae87d3
PES-2328: CoreHelper::convertToCentimeters test
jan-potuznik-z Dec 20, 2024
4c1d8b3
PES-2328: Added unit tests for product size calculations and carrier …
Karpec Dec 20, 2024
328d7d5
PES-2328: carrier restrictions by product dimension (#693)
zemekoule Jan 2, 2025
7e32763
PES-2421: Update related configs, so we can use dev wsdl
Karpec Jan 2, 2025
5b1bf42
PES-2422: Add WordPress stubs to development dependencies
Karpec Jan 3, 2025
88826bc
PES-2422: Upgrade PHPStan to version 2.1
Karpec Jan 3, 2025
98f1de5
PES-2422: Upgrade PHPUnit to version 10.5.40
Karpec Jan 3, 2025
afc1fe3
PES-2422: Update phpstan/phpstan-strict-rules to version 2.0.1
Karpec Jan 3, 2025
df26893
PES-2422: Update WooCommerce stubs to version 9.5.0
Karpec Jan 3, 2025
3c2aade
PES-2422: Update PHPUnit configuration schema to 10.5 and display PHP…
Karpec Jan 3, 2025
ab498b2
PES-2422: Rename cartWeight to cartWeightKg for consistency between d…
Karpec Jan 3, 2025
82610be
PES-2422: Move PHPUnit cache to temp directory
Karpec Jan 3, 2025
2dc0932
PES-2422: Update PHPStan to version 2.1.1
Karpec Jan 6, 2025
9c6607f
Merge branch 'after-freeze' into after-freeze-into-PES-993
jan-potuznik-z Jan 6, 2025
bcd05b1
Fixes after complicated merge.
jan-potuznik-z Jan 6, 2025
7220e00
Merge after-freeze into PES-993-dev-wc-native-carriers (#697)
jan-potuznik-z Jan 6, 2025
51fb8cc
PES-2422: Update dependencies (#696)
zemekoule Jan 6, 2025
8c94cc0
PES-2431: passing dimensions to widget fixed
jan-potuznik-z Jan 6, 2025
49c2389
PES-2432: passing attributes to template fixed
jan-potuznik-z Jan 6, 2025
b6c3c0c
Merge branch 'after-freeze' into PES-993-dev-wc-native-carriers (#701)
jan-potuznik-z Jan 6, 2025
2715175
PES-2431: passing dimensions to widget (#699)
zemekoule Jan 7, 2025
9937bb1
PES-2432: passing attributes to template fixed (#700)
zemekoule Jan 7, 2025
7ac0d50
PES-2426: line order that is easier to read
jan-potuznik-z Jan 7, 2025
cf89699
PES-2426: new carrier from feed
jan-potuznik-z Jan 7, 2025
9ac57c6
PES-2426: ActivityBridge renamed to CarrierActivityBridge
jan-potuznik-z Jan 7, 2025
2a6d9da
PES-2426: Downloader: $language not nullable
jan-potuznik-z Jan 7, 2025
f5cfa1c
PES-2426: removed unnecessary phpcs:ignore
jan-potuznik-z Jan 7, 2025
65259ff
PES-2426: countriesGetContinents phpdoc updated, related unused metho…
jan-potuznik-z Jan 7, 2025
f04f322
PES-2421: DEV soap wsdl (#695)
zemekoule Jan 7, 2025
81442f7
PES-2426: addShippingMethods phpdoc update
jan-potuznik-z Jan 7, 2025
89bd6bc
PES-2426: shippingZonesGetZoneMatchingPackage phpdoc update
jan-potuznik-z Jan 7, 2025
3e9d784
PES-2426: phpdocs revisited
jan-potuznik-z Jan 7, 2025
5900cea
PES-2426: removed unnecessary parentheses
jan-potuznik-z Jan 7, 2025
52671ac
PES-2470: Update tracking URL format in config.neon
Karpec Jan 8, 2025
96685d0
PES-2426: native carriers finalizing (#702)
zemekoule Jan 8, 2025
e8bc874
PES-2470: Change format tracking url (#703)
zemekoule Jan 9, 2025
d99cd56
Merge branch 'after-freeze' into PES-2426-after-freeze-into-PES-993
jan-potuznik-z Jan 9, 2025
172e763
PES-2426: checkout block compiled after merge
jan-potuznik-z Jan 9, 2025
0dc9496
Merge branch 'after-freeze' into PES-993-dev-wc-native-carriers (#704)
jan-potuznik-z Jan 9, 2025
b5ed285
PES-2426, PES-993: Shipping settings native to WooCommerce (#698)
zemekoule Jan 9, 2025
750ef30
version upgrade to 2.0.0 for testing
jan-potuznik-z Jan 9, 2025
de5b15b
removed excess migration
jan-potuznik-z Jan 9, 2025
790b3ee
version upgrade to 2.0.0 for testing, removed excess migration (#705)
zemekoule Jan 9, 2025
5f3a1fd
PES-2568: Make dimension fields nullable in order form/modal box
Karpec Jan 16, 2025
c1767c1
PES-2568: Make dimension fields nullable in order form/modal box (#707)
zemekoule Jan 16, 2025
7538791
PES-2569: Ensure empty date(string) is handled correctly in getDateTi…
Karpec Jan 16, 2025
69f8ab8
PES-2539: width validation update
Jan 17, 2025
e85795c
PES-2569: Ensure empty date(string) is handled correctly (#708)
zemekoule Jan 20, 2025
348d01f
PES-2549: no shipping error fix
packeta-user Jan 17, 2025
4a28628
PES-2539: width validation update (#709)
zemekoule Jan 21, 2025
3b5c998
PES-2549: no shipping error fix
packeta-user Jan 21, 2025
9f08395
PES-2563: Reorder conditions for customs declaration warning
Karpec Jan 21, 2025
f956c0e
PES-2549: no shipping error fix
packeta-user Jan 21, 2025
a3c7b93
PES-2549: no shipping error fix
jan-potuznik-z Jan 21, 2025
82c09c5
PES-2564: update view state when shipping rate changes
jan-potuznik-z Jan 21, 2025
72d640d
fixup! PES-2549: no shipping error fix
jan-potuznik-z Jan 22, 2025
ce9c206
fixup! PES-2563: Reorder conditions for customs declaration warning
Karpec Jan 22, 2025
57b09c6
PES-2564: update view state when shipping rate changes (#712)
zemekoule Jan 22, 2025
8935b01
PES-2552: Fix logical error in data validation condition
Karpec Jan 19, 2025
59a62c4
PES-2552: Refactor key presence check logic in CheckoutStorage
Karpec Jan 21, 2025
d2608e7
PES-2549: Fix shipping error in checkout process (#711)
zemekoule Jan 22, 2025
f71b622
PES-2552: Warnings in checkout (#710)
zemekoule Jan 22, 2025
41145c7
PES-2540: no age verification for zboxes
Jan 23, 2025
98dcff8
PES-2563: Reorder conditions for customs declaration warning (#713)
zemekoule Jan 27, 2025
2c818f7
PES-2540: no age verification for zboxes (#715)
zemekoule Jan 27, 2025
cf22e5d
PES-2577: status column for carrier listing
Jan 22, 2025
b9c6f8d
PES-2587: dimensions restrictions fix
packeta-user Jan 24, 2025
0c0ddf8
PES-2589: Replaces WP function `hasBlock` method with WC function `ha…
Karpec Jan 28, 2025
b86fd19
PES-2589: Refactor COD fee calculation and add unit tests
Karpec Jan 28, 2025
2f9fe2e
PES-2589: Correct namespaces in tests and enforce strict types
Karpec Jan 28, 2025
d9355ae
PES-2589: Refactor fee handling to use WC_Cart API instead of custom …
Karpec Jan 29, 2025
fe5218f
PES-2601: Added a key to `ValidatedTextInput` to required/optional in…
Karpec Feb 4, 2025
e9673a2
PES-2594: Add `paymentMethodSlug` as an alternative to `value` 'cause…
Karpec Feb 6, 2025
c9d9ed1
PES-2594: COD Fee WC 9.6.X (#721)
zemekoule Feb 7, 2025
029196b
PES-2541: carrier validation message update
Jan 31, 2025
418dcfe
PES-2541: carrier validation message update (#719)
zemekoule Feb 10, 2025
a8f3ab9
PES-2581: createShippingRates refactored to include methodId handling
jan-potuznik-z Jan 27, 2025
47a24f4
PES-2602: truly native carrier rate ids
jan-potuznik-z Feb 5, 2025
3b32251
PES-2581, PES-2602: createShippingRates refactored to include methodI…
zemekoule Feb 11, 2025
d77cb11
PES-2605: PHP 8.4 support
jan-potuznik-z Feb 10, 2025
a04b544
PES-2605: PHP 8.4 support (#723)
zemekoule Feb 11, 2025
e4d1e74
PES-2607: updated descriptions for advanced carrier settings and admi…
jan-potuznik-z Feb 11, 2025
112e7f2
PES-2607: updated descriptions for advanced carrier settings and admi…
zemekoule Feb 13, 2025
9438f68
PES-1395: settings of COD amount, weight, and order value correctly d…
jan-potuznik-z Feb 7, 2025
7f26f77
PES-1395, PES-2620: settings of COD amount, weight, and order value c…
zemekoule Feb 18, 2025
491816e
PES-2398: code coverage
mzk Feb 17, 2025
533d565
PES-2398: code coverage fix php deprecation on php 8.3
mzk Feb 17, 2025
ec3e235
PES-2398: keep original path to html
mzk Feb 18, 2025
c7e5d0d
PES-2398: report uncovered files
mzk Feb 18, 2025
89f5215
PES-2398: typo, fix deprecation
mzk Feb 18, 2025
ff5ad76
PES-2398: fix path to cobertura.xml
mzk Feb 18, 2025
0abb458
PES-2398 code coverage (#726)
zemekoule Feb 19, 2025
d54cd8f
PES-2633: tracking URL update
jan-potuznik-z Feb 20, 2025
1f67f57
PES-2633: tracking URL update (#728)
zemekoule Feb 20, 2025
bf520d4
PES-2608: POT file generated, warnings resolved
jan-potuznik-z Feb 20, 2025
ec1cf64
PES-2608: "RO FAN Box" carrier class generated
jan-potuznik-z Feb 20, 2025
9b216ec
PES-2608: POT file and carrier classes generated (#729)
zemekoule Feb 20, 2025
9907b27
PES-2638: constructor removed from OrderFormData class
jan-potuznik-z Feb 25, 2025
2824365
PES-2638: constructor removed from OrderFormData class (#735)
zemekoule Feb 26, 2025
54e6c7c
PES-2639: default weight in calculator
Feb 25, 2025
8a74659
Revert "PES-2639: default weight in calculator"
Feb 26, 2025
951156e
PES-2639: manual modal weight not rewritten without change
Feb 26, 2025
96dc57b
PES-2639: default weight in calculator (#736)
zemekoule Feb 27, 2025
339bdef
PES-2641: reduced column lengths in order repository table
jan-potuznik-z Feb 26, 2025
d278c8a
PES-2641: reduced column lengths in order repository table (#737)
zemekoule Feb 27, 2025
1fab8e0
PES-2647: float display fix in order modal
jan-potuznik-z Feb 27, 2025
f2cb2b1
PES-2647: float display fix in order modal (#738)
zemekoule Feb 27, 2025
c36fcc6
PES-2650: Fix COD method in collection print template
Karpec Feb 28, 2025
70e492e
PES-2650: Fix COD method in collection print template (#740)
zemekoule Feb 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions .ecrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@
"^node_modules\/",
"^.git\/",
"^deps\/",
"^log\/",
"^tests-coverage\/",
"^phpstan\/vendor\/",
"^public\/libs\/",
"^public\/block\/index.asset.php",
"^public\/block\/index.js",
"^public\/block\/block.json",
"^public\/js\/live-form-validation-extension.js",
"^languages\/",
"LICENSE$",
"^temp\/",
"^log\/",
"^\\.idea\/",
"^.phpunit.result.cache$",
"\\.DS_Store$",
"\\.phar$"
"\\.phar$",
"\\.phpunit.result.cache$",
"^soap-php-bugfix-dev.wsdl$"
],
"Disable": {
"MaxLineLength": true
Expand Down
13 changes: 13 additions & 0 deletions .github/run-phpcbf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

./vendor/bin/phpcbf
exit_code=$?

# Check if phpcbf made changes (non-zero exit code indicates fixes were made)
if [ $exit_code -ne 0 ]; then
echo "🛑 phpcbf made changes to the code."
exit 1
else
echo "✓ no changes were made by phpcbf."
exit 0
fi
8 changes: 4 additions & 4 deletions .github/run-sniffer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ php --version | head -1
echo "ℹ︎ Composer version:"
composer --version

echo "➤ Installing woocommerce/woocommerce-sniffs:"
composer --no-interaction --quiet --no-dev install
echo "➤ Installing dependencies..."
composer --no-interaction --quiet install

echo "➤ Running sniffer:"
./vendor/bin/phpcs -s | tee /tmp/sniffer.log
./vendor/bin/phpcs -s 2>&1 | tee /tmp/sniffer.log

if grep -q '| ERROR' /tmp/sniffer.log; then
if grep -q 'ERROR' /tmp/sniffer.log; then
echo "🛑 Sniffer found errors, fix them."
exit 1
fi
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/run-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Composer security audit
on:
push:
branches: [ main ]
pull_request:
jobs:
audit:
name: Run composer security audit
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Validate PHP Version
run: php -v

- name: Running composer security audit
shell: bash
run: |
composer install
composer audit
composer install --working-dir=deps-composer
composer audit --working-dir=deps-composer
34 changes: 34 additions & 0 deletions .github/workflows/run-ec-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: editorconfig check

on:
push:
branches: [ main ]
pull_request:

jobs:
editorconfig-check:
runs-on: ubuntu-24.04

strategy:
matrix:
php-version: [ '8.1' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: yes

- name: php version
run: php -v

- name: Install Composer dependencies
run: composer install

- name: Run editorconfig check
run: composer check:ec
35 changes: 35 additions & 0 deletions .github/workflows/run-parallel-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PHP parallel lint

on:
push:
branches: [ main ]
pull_request:

jobs:
php-parallel-lint:
runs-on: ubuntu-24.04

strategy:
fail-fast: false
matrix:
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: none

- name: php version
run: php -v

- name: Install php-parallel-lint
run: composer create-project php-parallel-lint/php-parallel-lint ./temp/php-parallel-lint --no-dev

- name: Run PHP parallel lint
run: ./temp/php-parallel-lint/parallel-lint . --exclude ./tests
34 changes: 34 additions & 0 deletions .github/workflows/run-phpcbf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: phpcbf check

on:
push:
branches: [ main ]
pull_request:

jobs:
phpcbf-check:
runs-on: ubuntu-24.04

strategy:
matrix:
php-version: [ '8.1' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: yes

- name: php version
run: php -v

- name: Install Composer dependencies
run: composer install

- name: Run phpcbf
run: bash "${GITHUB_WORKSPACE}/.github/run-phpcbf.sh"
22 changes: 3 additions & 19 deletions .github/workflows/run-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
php-version: [ '8.1', '8.2', '8.3' ]
php-version: [ '8.1', '8.2', '8.3', '8.4' ]

steps:
- name: Checkout code
Expand All @@ -28,23 +28,7 @@ jobs:
run: php -v

- name: Install Composer dependencies
working-directory: phpstan
run: composer install

- name: Run PHPStan with phpversion 7.2
run: composer run phpstan-72

- name: Run PHPStan with phpversion 7.4
run: composer run phpstan-74

- name: Run PHPStan with phpversion 8.0
run: composer run phpstan-80

- name: Run PHPStan with phpversion 8.1
run: composer run phpstan-81

- name: Run PHPStan with phpversion 8.2
run: composer run phpstan-82

- name: Run PHPStan with phpversion 8.3
run: composer run phpstan-83
- name: Run PHPStan with PHP version 7.2 - 8.3
run: composer run phpstan:all
100 changes: 74 additions & 26 deletions .github/workflows/run-phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,86 @@
name: PHPUnit tests

on:
push:
branches: [ main ]
pull_request:
push:
branches: [ main ]
pull_request:

jobs:
phpunit:
runs-on: ubuntu-24.04
phpunit:
runs-on: ubuntu-24.04

strategy:
matrix:
php-version: [ '8.1' ]
strategy:
matrix:
php-version: [ '8.1' ]

steps:
- name: Checkout code
uses: actions/checkout@v2
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: yes
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
coverage: yes

- name: php version
run: php -v
- name: php version
run: php -v

- name: Install Composer dependencies
run: composer install
- name: Install Composer dependencies
run: composer install

- name: Install Composer dev dependencies
working-directory: phpstan
run: composer install
- name: Run PHPUnit
run: composer run tests-unit

- name: Run PHPUnit
run: composer run tests-unit
- name: Run PHPUnit with code coverage
run: |
composer run tests-coverage
cat tests-coverage/coverage.txt > tests-coverage/coverage-summary.txt

- name: Post coverage report as comment in PR
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const coverageSummary = fs.readFileSync('tests-coverage/coverage-summary.txt', 'utf8');

const commentBody = `
## :bar_chart: Code Coverage Report
\`\`\`
${coverageSummary}
\`\`\`
`;

const { data: comments } = await github.rest.issues.listComments({
...context.repo,
issue_number: context.payload.pull_request.number,
});

const existingComment = comments.find(comment => comment.body.includes(':bar_chart: Code Coverage Report'));

if (existingComment) {
await github.rest.issues.updateComment({
...context.repo,
comment_id: existingComment.id,
body: commentBody,
});
} else {
await github.rest.issues.createComment({
...context.repo,
issue_number: context.payload.pull_request.number,
body: commentBody,
});
}

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: junit-results
path: ./tests-coverage/log/junit.xml

- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./tests-coverage/cobertura.xml
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/.idea/
/vendor
/phpcs/vendor
/phpstan/vendor
/temp/*
!/temp/.gitignore
/log/
**/.DS_Store
/tests-coverage/
/.phpunit.result.cache
/config/config.local.neon
/node_modules/
phpunit.xml
soap-php-bugfix-dev.wsdl
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ This is the official plugin, that allows you to choose pickup points of Packeta

#### Supported versions

- PHP: 7.2 - 8.2
- PHP: 7.2 - 8.4
- WordPress 5.5+
- WooCommerce 4.5+
- WooCommerce 5.1+

#### Functions provided

Expand Down
5 changes: 4 additions & 1 deletion bootstrap-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
* @package Packeta
*/

define( 'WP_DEBUG', false );
if ( ! defined( 'WP_DEBUG' ) ) {
define( 'WP_DEBUG', false );
}

return require __DIR__ . '/bootstrap.php';
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$configurator->setDebugMode( PACKETERY_DEBUG );

Debugger::$logDirectory = PACKETERY_PLUGIN_DIR . '/log';
if ( $configurator->isDebugMode() && false === wp_doing_cron() ) {
if ( $configurator->isDebugMode() && wp_doing_cron() === false ) {
$configurator->enableDebugger( Debugger::$logDirectory );
Debugger::$strictMode = false;
}
Expand Down
Loading