mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +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:
@@ -97,7 +97,7 @@ class GlobalSearch extends UIBlock implements iKeyboardShortcut
|
||||
* @return string
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function GetEndpoint()
|
||||
public function GetEndpoint(): string
|
||||
{
|
||||
return $this->sEndpoint;
|
||||
}
|
||||
@@ -151,7 +151,7 @@ class GlobalSearch extends UIBlock implements iKeyboardShortcut
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function GetLastQueries()
|
||||
public function GetLastQueries(): array
|
||||
{
|
||||
return $this->aLastQueries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user