MDL-65292 style: Fix all function declarations white space

This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing

All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.

Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
This commit is contained in:
Eloy Lafuente (stronk7)
2024-02-28 23:33:26 +01:00
parent e567c21d6e
commit ba1f804ffa
972 changed files with 2098 additions and 2094 deletions
+9 -9
View File
@@ -848,7 +848,7 @@ function file_get_drafarea_files($draftitemid, $filepath = '/') {
* @param string $filepath path for the uploaded files.
* @return array An array of files associated with this draft item id.
*/
function file_get_all_files_in_draftarea(int $draftitemid, string $filepath = '/') : array {
function file_get_all_files_in_draftarea(int $draftitemid, string $filepath = '/'): array {
$files = [];
$draftfiles = file_get_drafarea_files($draftitemid, $filepath);
file_get_drafarea_folders($draftitemid, $filepath, $draftfiles);
@@ -3114,23 +3114,23 @@ function get_moodle_proxy_url() {
*/
class curl {
/** @var curl_cache|false Caches http request contents */
public $cache = false;
public $cache = false;
/** @var bool Uses proxy, null means automatic based on URL */
public $proxy = null;
public $proxy = null;
/** @var string library version */
public $version = '0.4 dev';
public $version = '0.4 dev';
/** @var array http's response */
public $response = array();
public $response = array();
/** @var array Raw response headers, needed for BC in download_file_content(). */
public $rawresponse = array();
/** @var array http header */
public $header = array();
public $header = array();
/** @var array cURL information */
public $info;
public $info;
/** @var string error */
public $error;
public $error;
/** @var int error code */
public $errno;
public $errno;
/** @var bool Perform redirects at PHP level instead of relying on native cURL functionality. Always true now. */
public $emulateredirects = null;