Apply fixes from StyleCI (#13208)

This commit is contained in:
Jellyfrog
2021-09-08 23:35:56 +02:00
committed by GitHub
parent c6d2385c3a
commit 26b95c0ccc
370 changed files with 1667 additions and 1667 deletions

View File

@@ -105,7 +105,7 @@ class Config
/**
* Load the user config from config.php
* @param array $config (this should be self::$config)
* @param array $config (this should be self::$config)
*/
private static function loadUserConfigFile(&$config)
{
@@ -116,8 +116,8 @@ class Config
/**
* Get a config value, if non existent null (or default if set) will be returned
*
* @param string $key period separated config variable name
* @param mixed $default optional value to return if the setting is not set
* @param string $key period separated config variable name
* @param mixed $default optional value to return if the setting is not set
* @return mixed
*/
public static function get($key, $default = null)
@@ -137,7 +137,7 @@ class Config
* Unset a config setting
* or multiple
*
* @param string|array $key
* @param string|array $key
*/
public static function forget($key)
{
@@ -149,10 +149,10 @@ class Config
* fall back to the global config setting prefixed by $global_prefix
* The key must be the same for the global setting and the device setting.
*
* @param array $device Device array
* @param string $key Name of setting to fetch
* @param string $global_prefix specify where the global setting lives in the global config
* @param mixed $default will be returned if the setting is not set on the device or globally
* @param array $device Device array
* @param string $key Name of setting to fetch
* @param string $global_prefix specify where the global setting lives in the global config
* @param mixed $default will be returned if the setting is not set on the device or globally
* @return mixed
*/
public static function getDeviceSetting($device, $key, $global_prefix = null, $default = null)
@@ -171,9 +171,9 @@ class Config
/**
* Get a setting from the $config['os'] array using the os of the given device
*
* @param string $os The os name
* @param string $key period separated config variable name
* @param mixed $default optional value to return if the setting is not set
* @param string $os The os name
* @param string $key period separated config variable name
* @param mixed $default optional value to return if the setting is not set
* @return mixed
*/
public static function getOsSetting($os, $key, $default = null)
@@ -199,9 +199,9 @@ class Config
* Removes any duplicates.
* When the arrays have keys, os settings take precedence over global settings
*
* @param string $os The os name
* @param string $key period separated config variable name
* @param array $default optional array to return if the setting is not set
* @param string $os The os name
* @param string $key period separated config variable name
* @param array $default optional array to return if the setting is not set
* @return array
*/
public static function getCombined($os, $key, $default = [])
@@ -228,8 +228,8 @@ class Config
/**
* Set a variable in the global config
*
* @param mixed $key period separated config variable name
* @param mixed $value
* @param mixed $key period separated config variable name
* @param mixed $value
*/
public static function set($key, $value)
{
@@ -239,8 +239,8 @@ class Config
/**
* Save setting to persistent storage.
*
* @param mixed $key period separated config variable name
* @param mixed $value
* @param mixed $key period separated config variable name
* @param mixed $value
* @return bool if the save was successful
*/
public static function persist($key, $value)
@@ -272,7 +272,7 @@ class Config
* Forget a key and all it's descendants from persistent storage.
* This will effectively set it back to default.
*
* @param string $key
* @param string $key
* @return int|false
*/
public static function erase($key)
@@ -288,7 +288,7 @@ class Config
/**
* Check if a setting is set
*
* @param string $key period separated config variable name
* @param string $key period separated config variable name
* @return bool
*/
public static function has($key)
@@ -462,9 +462,9 @@ class Config
/**
* Set default values for defaults that depend on other settings, if they are not already loaded
*
* @param string $key
* @param string $value value to set to key or vsprintf() format string for values below
* @param array $format_values array of keys to send to vsprintf()
* @param string $key
* @param string $value value to set to key or vsprintf() format string for values below
* @param array $format_values array of keys to send to vsprintf()
*/
private static function setDefault($key, $value, $format_values = [])
{
@@ -481,8 +481,8 @@ class Config
/**
* Copy data from old variables to new ones.
*
* @param string $old
* @param string $new
* @param string $old
* @param string $new
*/
private static function deprecatedVariable($old, $new)
{
@@ -497,7 +497,7 @@ class Config
/**
* Locate the actual path of a binary
*
* @param string $binary
* @param string $binary
* @return mixed
*/
public static function locateBinary($binary)