Open devAsadNur opened 1 month ago
The recent updates primarily address the handling of PHP_CodeSniffer (PHPCS) warnings by inserting phpcs:disable
and phpcs:enable
comments around direct database queries in various files. This ensures smoother code compliance without altering the core functionality. Additionally, minor documentation enhancements and refactoring for better category validation and query construction were implemented.
File | Change Summary |
---|---|
includes/Commission.php |
Added phpcs:disable and phpcs:enable comments around database queries in calculate_gateway_fee and get_earning_from_order_table . |
includes/DummyData/Importer.php |
Introduced PHPCS comments for query around delete_dummy_vendor_orders . |
includes/Product/functions.php |
Refactored logic in dokan_save_product and dokan_search_seller_products for better query handling and validation. |
includes/REST/OrderControllerV2.php |
Added comments for PHPCS around queries within get_order_downloads function. |
includes/REST/StoreController.php |
Added PHPCS directives around queries in get_total_review_count . |
includes/Tracker.php |
Documentation improvements and PHPCS-related comments added. |
includes/Withdraw/... |
Added PHPCS comments around queries in various functions including update_vendor_balance , is_valid_cancellation_request , and others. |
uninstall.php |
Updated require_once statement to use __DIR__ instead of dirname(__FILE__) . |
In the world of code so bright,
PHPCS took flight,
Comments added here and there,
Database queries with care.
Code so clean, like morning's dew,
For maintainers old and new.
Updates galore, dokan now anew!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit
Bug Fixes
Documentation
@return void
and@since
annotations to methods in theTracker
class for better documentation and clarity.Refactor
Chores
require_once
statement inuninstall.php
for consistency.