aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specials/SpecialMostCategories.php
Commit message (Collapse)AuthorAgeFilesLines
* Namespace all remaining files in includes/skinJames D. Forrester2025-03-251-1/+1
| | | | | Bug: T353458 Change-Id: I3e829e35c93bcaae75e401b1801bddf93c0b416c
* specials: Remove constructor PHPdoc blockUmherirrender2025-02-201-5/+0
| | | | | | The doc block is identical to the type declaration for each argument. Change-Id: I8281b94351fe2be30344f1425a60f31fbf205100
* specials: Improve docs and `@ingroup` tags, fix file headersTimo Tijhof2024-05-151-5/+2
| | | | | | | | | | | | | | | | | | | | * Add relevant `@ingroup` to special pages that belong to a specific component and for which a doc group is already defined (defgroup), e.g. "Upload" for SpecialUpload, "JobQueue" for SpecialRunJobs. * Remove duplicate descriptions from file blocks in favour of class doc blocks. This reduces needless duplication and was often incorrect or outdated, and helps make file headers more consistently (visually) ignorable. Add missing `ingroup` to class blocks (and remove any from file blocks) as otherwise the file is indexed twice (e.g. in Doxygen) which makes navigation on doc.wikimedia.org rather messy. Ref https://gerrit.wikimedia.org/r/q/message:ingroup+is:merged Bug: T364652 Change-Id: I795c43b6d72782d457c963e352d7e1b022c2b641
* Namespace NamespaceInfo under \MediaWiki\TitleJames D. Forrester2023-09-191-1/+1
| | | | | | | One of the big ones, so doing this alone. Bug: T166010 Change-Id: Ibe103cd362535d3cb94cb8931e95fc74099d1497
* Namespace remaining 'specialpage' files under \MediaWiki\SpecialPageJames D. Forrester2023-09-181-1/+1
| | | | | | | SpecialPageFactory is already here, but none of the others were yet. Bug: T166010 Change-Id: I9689bf0a1ab329625e23669b99f019b96295fffd
* Use real type hints for services etc. in specials/ (A-M)Bartosz DziewoƄski2023-08-291-2/+1
| | | | | | | | | | | | | | | Mostly used find-and-replace: Find: /\*[\*\s]+@var (I?[A-Z](\w+)(?:Interface)?)[\s\*]+/\s*(private|protected|public) (\$[a-z]\w+;\n)((?=\s*/\*[\*\s]+@var (I?[A-Z](\w+)(?:Interface)?))\n|) Replace with: \3 \1 \4 Followed by some manual review to make sure I'm not changing too much, omitting some changes that looked too complicated and anything that caused test failures, and some whitespace fixes. Change-Id: I64a6d3bb24d38b9fe603f817c419292f385f2795
* Namespace SpecialM* under \MediaWiki\SpecialsJames D. Forrester2023-05-211-0/+12
| | | | Change-Id: I3f733dcef861f26e0938185605f88c0e316a9291
* Specials: Mass switch everything to IConnectionProvider from LBAmir Sarabadani2023-04-191-4/+4
| | | | | Bug: T330641 Change-Id: Ie1772da59f92213fea598f02385c3e0ac6d200a7
* Reorg: Namespace the Title classJames D. Forrester2023-03-021-0/+1
| | | | | | | | | | | | | | | | | | | This is moderately messy. Process was principally: * xargs rg --files-with-matches '^use Title;' | grep 'php$' | \ xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1' * rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \ xargs rg --files-with-matches 'Title\b' | \ xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1' * composer fix Then manual fix-ups for a few files that don't have any use statements. Bug: T166010 Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b
* Reorg: Move HTML-related classes out of includes/ to Html/Amir Sarabadani2023-02-161-0/+1
| | | | | Bug: T321882 Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18
* Reorg: Move DummyLinker and Linker to linker/Amir Sarabadani2022-12-081-0/+1
| | | | | | | This feels like a no-brainer unless I'm missing something obvious Bug: T321882 Change-Id: Id49c3d0dd6ea4593211048850856b5b8e05a8fb3
* Improve doc about object to be stdClass in QueryPage::formatResultUmherirrender2020-11-151-1/+1
| | | | Change-Id: Ib1fadd74f2f3223ea8a9343d1524533f00b991df
* Inject LinkBatchFactory into QueryPage and use itUmherirrender2020-11-021-1/+8
| | | | | | | | | The LinkBatchFactory service is only used in one method call in the QueryPage class, so make it optional and provide it when needed with a setter Bug: T259960 Change-Id: Iee446b1defc9a4f116dc264b012ab972f89d95fc
* Inject DBLoadBalancer into abstract QueryPageUmherirrender2020-11-021-1/+4
| | | | | | | | Every QueryPage needs a database to work Inject the new service on special pages with already using services. Bug: T259960 Change-Id: I96d91993b70052484c1a6a918a1e2ccc91e39ae7
* Inject NamespaceInfo service into SpecialMostCategories/SpecialMostInterwikisUmherirrender2020-10-111-5/+13
| | | | | | | | This covers only direct used services by this special page Services used by the base class are not part of this patch set Bug: T259960 Change-Id: I8e32394d40b6660908f3c72db3442ccb6804a6fa
* Fix some includes/specials/ Squiz.Scope.MethodScope.MissingReedy2020-05-181-4/+4
| | | | Change-Id: I9c19e5ce8d789847d0f019372738a2eecb4c37a6
* Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUseJames D. Forrester2020-01-101-1/+1
| | | | Change-Id: I94a0ae83c65e8ee419bbd1ae1e86ab21ed4d8210
* Make most special pages class names match filenameReedy2019-09-101-0/+114
Change-Id: I3a9f932acb7d9cf44a984b5d97f9fbc6b8670f7d