mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 69e8e948b2 Remove now redundant PHPDoc blocks
MediaWiki's PHPCS plugin requires documentation comments on all
methods, unless those methods are fully typed (all parameters and
return value).

It turns out that almost all of our methods are fully typed already.

Procedure:

1. Find: \*(\s*\*\s*(@param \??[\w\\]+(\|null)? &?\$\w+|@return \??[\w\\]+(\|null)?)\n)+\s*\*/
   Replace with: */
   This deletes type annotations, except those not representable
   as PHP type hints such as union types `a|b` or typed arrays `a[]`,
   or those with documentation beyond type hints, or those on
   functions with any other annotations.

2. Find: /\*\*/\n\s*
   Replace with nothing
   This deletes the remaining comments on methods that had no prose
   documentation.

3. Undo all changes that PHPCS complains about (those comments
   were not redundant)

4. Review the diff carefully, these regexps are imprecise :)

Change-Id: Ic82e8b23f2996f44951208dbd9cfb4c8e0738dac
2024-03-10 23:53:04 +00:00
..
Actions Use namespaced classes 2023-12-11 16:38:02 +01:00
Hooks Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
Notifications Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ThreadItem Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ApiDiscussionToolsCompare.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 04:14:36 +00:00
ApiDiscussionToolsEdit.php Use namespaced classes 2023-12-11 16:38:02 +01:00
ApiDiscussionToolsFindComment.php Ignore transcluded items when finding permalinks 2024-02-04 00:07:37 +01:00
ApiDiscussionToolsGetSubscriptions.php Remove 'internal' flag from ApiDiscussionToolsSubscribe/GetSubscriptions 2023-08-07 15:14:58 +01:00
ApiDiscussionToolsPageInfo.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ApiDiscussionToolsPreview.php Simplify preg_replace_callback in ApiDiscussionToolsPreview 2023-10-30 09:12:21 +01:00
ApiDiscussionToolsSubscribe.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 04:14:36 +00:00
ApiDiscussionToolsTrait.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ButtonMenuSelectWidget.php Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
CommentFormatter.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
CommentModifier.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
CommentParser.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
CommentUtils.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ContentThreadItemSet.php Embed pageThread JSON in jsConfigVars instead of infusing HTML 2022-11-08 16:20:39 +00:00
DatabaseThreadItemSet.php Embed pageThread JSON in jsConfigVars instead of infusing HTML 2022-11-08 16:20:39 +00:00
ImmutableRange.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
LanguageData.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
NodeFilter.php Use type hints for properties, remove PHPCS overrides 2023-10-19 19:31:02 +00:00
OverflowMenuItem.php overflow menu: Add hooks for registering and interacting with items 2023-10-05 15:50:33 +01:00
ResourceLoaderData.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ServiceWiring.php Replace uses of UserNameUtils::isTemp with UserIdentityUtils::isTemp 2023-07-26 11:32:27 +01:00
SpecialDiscussionToolsDebug.php Use namespaced classes 2023-12-11 16:38:02 +01:00
SpecialFindComment.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
SpecialGoToComment.php Use namespaced classes 2023-12-11 16:38:02 +01:00
SpecialTopicSubscriptions.php Use namespaced classes 2023-12-11 16:38:02 +01:00
SubscriptionItem.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
SubscriptionStore.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ThreadItemFormatter.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
ThreadItemSet.php Embed pageThread JSON in jsConfigVars instead of infusing HTML 2022-11-08 16:20:39 +00:00
ThreadItemStore.php Remove now redundant PHPDoc blocks 2024-03-10 23:53:04 +00:00
TopicSubscriptionsPager.php Use namespaced classes 2023-12-11 16:38:02 +01:00
TreeWalker.php Use type hints for properties, remove PHPCS overrides 2023-10-19 19:31:02 +00:00