From: Mikael Nordfeldth Date: Thu, 24 Mar 2016 00:54:33 +0000 (+0100) Subject: Strictify Notice->isPublic() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49a91885c925905c02a32997dbb3a02e7099c55c;p=quix0rs-gnu-social.git Strictify Notice->isPublic() --- diff --git a/classes/Notice.php b/classes/Notice.php index fe4cc80026..dceaf50b0d 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2749,10 +2749,10 @@ class Notice extends Managed_DataObject } } - function isPublic() + public function isPublic() { - return (($this->is_local != Notice::LOCAL_NONPUBLIC) && - ($this->is_local != Notice::GATEWAY)); + $is_local = intval($this->is_local); + return !($is_local === Notice::LOCAL_NONPUBLIC || $is_local === Notice::GATEWAY); } /**