summaryrefslogtreecommitdiff
path: root/app/Module/ResearchTaskModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-12-02 21:16:07 +0000
committerGreg Roach <fisharebest@gmail.com>2017-12-02 21:16:07 +0000
commita9430be8fd65a5fa4bf77ffdf439873a82f51e13 (patch)
tree19527fa64e12a29f8236682b2cdf3464a603f52c /app/Module/ResearchTaskModule.php
parenta213a63cb38efd73d067f074d1279fce79d7a90f (diff)
downloadwebtrees-a9430be8fd65a5fa4bf77ffdf439873a82f51e13.tar.gz
webtrees-a9430be8fd65a5fa4bf77ffdf439873a82f51e13.tar.bz2
webtrees-a9430be8fd65a5fa4bf77ffdf439873a82f51e13.zip
Return type hints
Diffstat (limited to 'app/Module/ResearchTaskModule.php')
-rw-r--r--app/Module/ResearchTaskModule.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/Module/ResearchTaskModule.php b/app/Module/ResearchTaskModule.php
index c079f03c0d..d7d3c087d3 100644
--- a/app/Module/ResearchTaskModule.php
+++ b/app/Module/ResearchTaskModule.php
@@ -53,7 +53,7 @@ class ResearchTaskModule extends AbstractModule implements ModuleBlockInterface
*
* @return string
*/
- public function getBlock($block_id, $template = true, $cfg = []) {
+ public function getBlock($block_id, $template = true, $cfg = []): string {
global $ctype, $WT_TREE;
$show_other = $this->getBlockSetting($block_id, 'show_other', self::DEFAULT_SHOW_OTHER);
@@ -118,17 +118,17 @@ class ResearchTaskModule extends AbstractModule implements ModuleBlockInterface
}
/** {@inheritdoc} */
- public function loadAjax() {
+ public function loadAjax(): bool {
return false;
}
/** {@inheritdoc} */
- public function isUserBlock() {
+ public function isUserBlock(): bool {
return true;
}
/** {@inheritdoc} */
- public function isGedcomBlock() {
+ public function isGedcomBlock(): bool {
return true;
}
@@ -136,8 +136,10 @@ class ResearchTaskModule extends AbstractModule implements ModuleBlockInterface
* An HTML form to edit block settings
*
* @param int $block_id
+ *
+ * @return void
*/
- public function configureBlock($block_id) {
+ public function configureBlock($block_id): void {
if (Filter::postBool('save') && Filter::checkCsrf()) {
$this->setBlockSetting($block_id, 'show_other', Filter::postBool('show_other'));
$this->setBlockSetting($block_id, 'show_unassigned', Filter::postBool('show_unassigned'));