summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Controller/GedcomRecordController.php7
-rw-r--r--app/Module.php6
-rw-r--r--app/Query/Media.php2
-rw-r--r--includes/functions/functions.php2
4 files changed, 11 insertions, 6 deletions
diff --git a/app/Controller/GedcomRecordController.php b/app/Controller/GedcomRecordController.php
index 88551666f9..f08c0911df 100644
--- a/app/Controller/GedcomRecordController.php
+++ b/app/Controller/GedcomRecordController.php
@@ -20,7 +20,12 @@ namespace Fisharebest\Webtrees;
* Class GedcomRecordController - Base controller for all GedcomRecord controllers
*/
class GedcomRecordController extends PageController {
- public $record; // individual, source, repository, etc.
+ /**
+ * A genealogy record
+ *
+ * @var GedcomRecord|Individual|Family|Source|Repository|Media|Note
+ */
+ public $record;
/**
* Startup activity
diff --git a/app/Module.php b/app/Module.php
index c9fdf2b8b4..992360be66 100644
--- a/app/Module.php
+++ b/app/Module.php
@@ -334,7 +334,7 @@ abstract class Module {
* @param integer $tree_id
* @param integer $access_level
*
- * @return $controller = new ModuleReportInterface[]
+ * @return ModuleReportInterface[]
*/
public static function getActiveReports($tree_id = WT_GED_ID, $access_level = WT_USER_ACCESS_LEVEL) {
static $reports;
@@ -352,7 +352,7 @@ abstract class Module {
* @param integer $tree_id
* @param integer $access_level
*
- * @return oduleSidebarInterface[]
+ * @return ModuleSidebarInterface[]
*/
public static function getActiveSidebars($tree_id = WT_GED_ID, $access_level = WT_USER_ACCESS_LEVEL) {
static $sidebars;
@@ -388,7 +388,7 @@ abstract class Module {
* @param integer $tree_id
* @param integer $access_level
*
- * @return $controller = new ModuleThemeInterface[]
+ * @return ModuleThemeInterface[]
*/
public static function getActiveThemes($tree_id = WT_GED_ID, $access_level = WT_USER_ACCESS_LEVEL) {
static $themes;
diff --git a/app/Query/Media.php b/app/Query/Media.php
index d44a4ca59b..13d6cc3559 100644
--- a/app/Query/Media.php
+++ b/app/Query/Media.php
@@ -78,7 +78,7 @@ class WT_Query_Media {
* @param string $filter optional search string
*
* @return Media[]
- * @throws Exception
+ * @throws \Exception
*/
public static function mediaList($folder, $subfolders, $sort, $filter) {
// All files in the folder, plus external files
diff --git a/includes/functions/functions.php b/includes/functions/functions.php
index 5787bc7546..82bd1f081a 100644
--- a/includes/functions/functions.php
+++ b/includes/functions/functions.php
@@ -2240,7 +2240,7 @@ function get_relationship_name_from_path($path, Individual $person1 = null, Indi
* it searches the themes folder and reads the name from the theme_name variable
* in the theme.php file.
*
- * @throws Exception
+ * @throws \Exception
*
* @return string[] An array of theme names and their corresponding folder
*/