diff options
| author | Rico Sonntag <mail@ricosonntag.de> | 2018-08-27 20:04:49 +0200 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2018-08-27 19:04:49 +0100 |
| commit | 8f53f488f13e53e44dc48778e8f51ec9f91352dd (patch) | |
| tree | 7c8de419d3b2381f073453ccf601f85bf25b5177 /app/Auth.php | |
| parent | 12c79f746ea1903d66aea1fe0412eda6149a5532 (diff) | |
| download | webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.gz webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.bz2 webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.zip | |
Added PHP7 return types to methods according doc block (#1864)
Diffstat (limited to 'app/Auth.php')
| -rw-r--r-- | app/Auth.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Auth.php b/app/Auth.php index 1523e604cd..f17831dbf4 100644 --- a/app/Auth.php +++ b/app/Auth.php @@ -33,7 +33,7 @@ class Auth * * @return bool */ - public static function check() + public static function check(): bool { return self::id() !== null; } @@ -45,7 +45,7 @@ class Auth * * @return bool */ - public static function isAdmin(User $user = null) + public static function isAdmin(User $user = null): bool { if ($user === null) { $user = self::user(); @@ -62,7 +62,7 @@ class Auth * * @return bool */ - public static function isManager(Tree $tree, User $user = null) + public static function isManager(Tree $tree, User $user = null): bool { if ($user === null) { $user = self::user(); @@ -79,7 +79,7 @@ class Auth * * @return bool */ - public static function isModerator(Tree $tree, User $user = null) + public static function isModerator(Tree $tree, User $user = null): bool { if ($user === null) { $user = self::user(); @@ -96,7 +96,7 @@ class Auth * * @return bool */ - public static function isEditor(Tree $tree, User $user = null) + public static function isEditor(Tree $tree, User $user = null): bool { if ($user === null) { $user = self::user(); @@ -113,7 +113,7 @@ class Auth * * @return bool */ - public static function isMember(Tree $tree, User $user = null) + public static function isMember(Tree $tree, User $user = null): bool { if ($user === null) { $user = self::user(); |
