mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
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:
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user