From be892e7d9814a72c422b7c0d23ed58e693b5bc8a Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 27 Mar 2017 21:41:27 +0200 Subject: [PATCH] re-added doc-tag and removed double-declaration Signed-off-by: Roland Haeder --- classes/Notice.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 2cd441d3b8..4adba35307 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2862,6 +2862,11 @@ class Notice extends Managed_DataObject return !($is_local === Notice::LOCAL_NONPUBLIC || $is_local === Notice::GATEWAY); } + /** + * Checks whether this notice is in "private scope" (non-public notice) + * + * @return $isPrivate Whether this notice is private + */ public function isPrivateScope () { return ($this->scope != Notice::SITE_SCOPE && $this->scope != Notice::PUBLIC_SCOPE); @@ -3285,17 +3290,6 @@ class Notice extends Managed_DataObject } } - /** - * Checks whether this notice is in "private scope" (non-public notice) - * - * @return $isPrivate Whether this notice is private - */ - public function isPrivateScope () - { - return ($this->scope != Notice::SITE_SCOPE && - $this->scope != Notice::PUBLIC_SCOPE); - } - /** * Checks whether the current profile is allowed (in scope) to see this notice. * -- 2.39.5