diff options
author | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-01-16 14:24:44 +0100 |
---|---|---|
committer | thiemowmde <thiemo.kreuz@wikimedia.de> | 2025-01-16 14:24:44 +0100 |
commit | 659df897ea828bba243ca9879875870c35e7bb03 (patch) | |
tree | e7ed15e123fc3c70933b356b8ae55d9998a6fb57 /includes/Settings | |
parent | a9d4d54f74d224cb068510c7715dbfa1ad46123d (diff) | |
download | mediawikicore-659df897ea828bba243ca9879875870c35e7bb03.tar.gz mediawikicore-659df897ea828bba243ca9879875870c35e7bb03.zip |
Remove trivial 1-line PHPDocs that just repeat the code
I assume these are all either auto-generated by an IDE or the
language-level type declarations have been added later. In any case
the comments don't add any new information to what the code already
says. This is just extra clutter that makes the code harder to read,
I would argue.
There are many, many more comments like this. In this patch I
intentionally focus on the most trivial 1-line comments.
Change-Id: Ia294bf4ce0d8a77036842fe25884bc175c2b0e7d
Diffstat (limited to 'includes/Settings')
-rw-r--r-- | includes/Settings/Config/MergeStrategy.php | 3 | ||||
-rw-r--r-- | includes/Settings/DynamicDefaultValues.php | 3 | ||||
-rw-r--r-- | includes/Settings/Source/PhpSettingsSource.php | 3 | ||||
-rw-r--r-- | includes/Settings/WikiFarmSettingsLoader.php | 3 |
4 files changed, 0 insertions, 12 deletions
diff --git a/includes/Settings/Config/MergeStrategy.php b/includes/Settings/Config/MergeStrategy.php index d1b18c33a053..a664744de990 100644 --- a/includes/Settings/Config/MergeStrategy.php +++ b/includes/Settings/Config/MergeStrategy.php @@ -46,9 +46,6 @@ class MergeStrategy { $this->reversed = $reversed; } - /** - * @return string - */ public function getName(): string { return $this->name; } diff --git a/includes/Settings/DynamicDefaultValues.php b/includes/Settings/DynamicDefaultValues.php index 50b87317f7ef..af672db08f01 100644 --- a/includes/Settings/DynamicDefaultValues.php +++ b/includes/Settings/DynamicDefaultValues.php @@ -15,9 +15,6 @@ class DynamicDefaultValues { */ private $declarations; - /** - * @param ConfigSchema $configSchema - */ public function __construct( ConfigSchema $configSchema ) { $this->configSchema = $configSchema; $this->declarations = $this->configSchema->getDynamicDefaults(); diff --git a/includes/Settings/Source/PhpSettingsSource.php b/includes/Settings/Source/PhpSettingsSource.php index fb00dd45bcaa..cf2699c3d893 100644 --- a/includes/Settings/Source/PhpSettingsSource.php +++ b/includes/Settings/Source/PhpSettingsSource.php @@ -18,9 +18,6 @@ class PhpSettingsSource implements Stringable, SettingsSource, SettingsIncludeLo */ private $path; - /** - * @param string $path - */ public function __construct( string $path ) { $this->path = $path; } diff --git a/includes/Settings/WikiFarmSettingsLoader.php b/includes/Settings/WikiFarmSettingsLoader.php index 4a6120c9ad49..add1ea24e7f8 100644 --- a/includes/Settings/WikiFarmSettingsLoader.php +++ b/includes/Settings/WikiFarmSettingsLoader.php @@ -16,9 +16,6 @@ class WikiFarmSettingsLoader { private SettingsBuilder $settingsBuilder; - /** - * @param SettingsBuilder $settingsBuilder - */ public function __construct( SettingsBuilder $settingsBuilder ) { $this->settingsBuilder = $settingsBuilder; } |