diff options
| author | 2022-01-01 11:26:56 +0100 | |
|---|---|---|
| committer | 2022-01-01 11:26:56 +0100 | |
| commit | 3f6aa42b817145a3b00f4d615f87728b55c4413a (patch) | |
| tree | e5b31941b0acc3a2f4c47e4846afcfe987b9852f /app/Models/ConfigurationSetter.php | |
| parent | 77e9877316fcfacb26799afdf32d94c8411da80e (diff) | |
Fix most PHPDocs errors (#4107)
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
https://phpstan.org/writing-php-code/phpdoc-types
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
| -rw-r--r-- | app/Models/ConfigurationSetter.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php index 535f17e2e..3c07db4a0 100644 --- a/app/Models/ConfigurationSetter.php +++ b/app/Models/ConfigurationSetter.php @@ -3,8 +3,8 @@ class FreshRSS_ConfigurationSetter { /** * Return if the given key is supported by this setter. - * @param $key the key to test. - * @return boolean true if the key is supported, false else. + * @param string $key the key to test. + * @return boolean true if the key is supported, false otherwise. */ public function support($key) { $name_setter = '_' . $key; @@ -13,9 +13,9 @@ class FreshRSS_ConfigurationSetter { /** * Set the given key in data with the current value. - * @param $data an array containing the list of all configuration data. - * @param $key the key to update. - * @param $value the value to set. + * @param array $data an array containing the list of all configuration data. + * @param string $key the key to update. + * @param mixed $value the value to set. */ public function handle(&$data, $key, $value) { $name_setter = '_' . $key; @@ -25,7 +25,7 @@ class FreshRSS_ConfigurationSetter { /** * A helper to set boolean values. * - * @param $value the tested value. + * @param mixed $value the tested value. * @return boolean true if value is true and different from no, false else. */ private function handleBool($value) { |
