N°3526 - Clean up pass on UIBlocks

- Move UIBlock::ENUM_BLOCK_FILES_TYPE_XXX to iUIBlock
- Add PHPDoc
- Remove Object return type hint on overloadable methods
- Add scalar return type hint
- Add type hint on parameters
This commit is contained in:
Molkobain
2021-11-14 21:22:04 +01:00
parent a9b30e160f
commit 3598da8808
45 changed files with 353 additions and 257 deletions

View File

@@ -372,7 +372,7 @@ class PopoverMenu extends UIBlock
*
* @return bool
*/
public function HasSection(string $sId)
public function HasSection(string $sId): bool
{
return array_key_exists($sId, $this->aSections);
}
@@ -402,7 +402,7 @@ class PopoverMenu extends UIBlock
*
* @return array
*/
public function GetSections()
public function GetSections(): array
{
return $this->aSections;
}
@@ -520,7 +520,7 @@ class PopoverMenu extends UIBlock
/**
* @inheritDoc
*/
public function GetSubBlocks()
public function GetSubBlocks(): array
{
$aSubBlocks = [];