aboutsummaryrefslogtreecommitdiffstats
path: root/includes/language/LanguageFallback.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove unchecked exception annotationsAdam Wight2024-09-171-1/+0
| | | | | | | | | | | | | | | Callers should not catch an unchecked exception, so it doesn't belong in a function signature. Unchecked exceptions indicate a coding error, which by definition the code will not be able to handle correctly. If any of these exceptions were supposed to be in response to an edge case, user input, or initial conditions, then they should be changed to a runtime error. If the exception class cannot be changed, then the annotation should include a comment explaining its purpose and prognosis. Bug: T240672 Change-Id: I2e640b9737cb68090a8e1cb70067d1b74037d647
* Language: minor cleanupReedy2023-10-021-1/+1
| | | | | | | * Remove unnecessary duplicate documentation * Code tweaks Change-Id: I9c8c190bee58195eace08cba18a51e4572896ef7
* LanguageFallback: Remove unnecessary check on fallback codesFunc2023-06-141-6/+0
| | | | | | | | | | The fallback sequence has been havily used in LocalisationCache, there is no chance that we encounter invalid fallback language code here. This would help to improve the performance of the follow-up patch. Change-Id: I578cf694afc90db6824e6e5ac936c90be83f041f
* Language: More specific PHPDocs in Language class and relatedThiemo Kreuz2022-08-151-1/+1
| | | | Change-Id: Ie8733237a6c8619b11f0804f907130dc331269f8
* Update a lot of unspecific "array" types in PHPDocsThiemo Kreuz2020-10-281-1/+1
| | | | | | | | | This includes fixing some mistakes, as well as removing redundant text that doesn't add new information, either because it literally repeats what the code already says, or is actually duplicated. Change-Id: I3a8dd8ce57192deda8916cc444c87d7ab1a36515
* Fix more PSR12.Properties.ConstantVisibility.NotFoundReedy2020-05-151-2/+2
| | | | Change-Id: I94520b10d78a17ea8e965633dd475ea711f25c99
* language: Clean up file headers and class-level docsTimo Tijhof2020-02-121-0/+18
| | | | | | | | | | | | | | | | | | | This follows-up d83fcce5cb6, which did something similar for includes/profiler/. * Ensure presence of license header. * Merge any file-level descriptions with the class block, where it gets seen in generated docs about that class. * Add any missing `@ingroup` tags to class blocks. * Remove remaining `@ingroup` from file blocks. These clutter the Doxygen pages with duplicate entries. * Fix some misspelled words from 61e0908fa29 and f136c2953c62. Change-Id: I5d21ec159766b799ba519da951d4f0716bae5f9f
* New LanguageFallback serviceAryeh Gregor2019-10-081-0/+141
This replaces the static Language methods getFallbackFor(), getFallbacksFor(), and getFallbacksIncludingSiteLanguage(). There is 100% unit and integration test coverage for the new class. One deliberate functional change: I changed one place where we threw MWException to InvalidArgumentException. Bug: T201405 Depends-On: Ie7a89f6ed7d52a0bc01672019ff92e7ee105a1f3 Change-Id: I49222eb55f1feec5b1dcd40f364cffe0c8801855