Docs: Add missing @return tags and improve return value descriptions #146
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Summary
Improves inline documentation compliance with WordPress Inline Documentation Standards by adding missing
@returntags and enhancing return value descriptions.Changes
✅ Added @return void tags (4 methods)
WP_REST_Abilities_Init::register_routes()WP_REST_Abilities_V1_List_Controller::register_routes()WP_REST_Abilities_V1_Categories_Controller::register_routes()WP_REST_Abilities_V1_Run_Controller::register_routes()✅ Enhanced boolean return descriptions (4 methods)
Before:
@return bool True if the request has read access.After:
@return bool True if the request has read access, false otherwise.Covers both true and false cases for all permission check methods.
✅ Clarified mixed return type (1 method)
Before:
@return mixed|null The input parameters.After:
@return mixed|null The input parameters, or null if not provided.✅ Fixed type hint spacing (1 location)
Before:
array<string,mixed>After:
array<string, mixed>✅ Enhanced file description (1 file)
Added more detailed description to
class-wp-ability-category.phpheader.Impact