generated from alleyinteractive/create-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update REST API endpoints and update PHPDOC
Added strict_types declaration and updated namespaces in wp-content/plugins/wp-newsletter-builder/src/class-rest-api-endpoints.php to improve code readability and maintainability. Updated REST API endpoints and return type. Return types are changed to either WP_Error or array for better error handling. Made transitions from root namespaces to class-based PHP namespaces. In addition, PHPDOC is updated to match changes in parameter or return types, names and increase accuracy. This allows better readability for other developers. Also, adjusted usage of WP_POST on class-wp-newsletter-builder.php for consistency. This change is part of an overall effort in modernizing and improving the codebase's readability and maintainability.
- Loading branch information
Showing
2 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters