X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/be08dc158845d52f4de2661140f758a1949d8b24..refs/pull/1881/head:/app/helpers.php diff --git a/app/helpers.php b/app/helpers.php index d14379ddd..65da1853b 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -42,7 +42,6 @@ function user(): User /** * Check if current user is a signed in user. - * @return bool */ function signedInUser(): bool { @@ -51,7 +50,6 @@ function signedInUser(): bool /** * Check if the current user has general access. - * @return bool */ function hasAppAccess(): bool { @@ -62,9 +60,6 @@ function hasAppAccess(): bool * Check if the current user has a permission. * If an ownable element is passed in the jointPermissions are checked against * that particular item. - * @param string $permission - * @param Ownable $ownable - * @return bool */ function userCan(string $permission, Ownable $ownable = null): bool { @@ -92,11 +87,11 @@ function userCanOnAny(string $permission, string $entityClass = null): bool /** * Helper to access system settings. - * @param $key - * @param bool $default + * @param string $key + * @param $default * @return bool|string|SettingService */ -function setting(string $key = null, bool $default = false) +function setting(string $key = null, $default = false) { $settingService = resolve(SettingService::class); if (is_null($key)) {