From 659df897ea828bba243ca9879875870c35e7bb03 Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Thu, 16 Jan 2025 14:24:44 +0100 Subject: 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 --- includes/Settings/Config/MergeStrategy.php | 3 --- includes/Settings/DynamicDefaultValues.php | 3 --- includes/Settings/Source/PhpSettingsSource.php | 3 --- includes/Settings/WikiFarmSettingsLoader.php | 3 --- 4 files changed, 12 deletions(-) (limited to 'includes/Settings') 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; } -- cgit v1.2.3