From f4309ed715bd986caa51ec5428a3b1f32f10957e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 1 Jan 2016 18:43:37 +0100 Subject: [PATCH] whitespace switch for code layout --- classes/Notice.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 06edceddab..eee6c45380 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2786,22 +2786,21 @@ class Notice extends Managed_DataObject public function getParent() { - $reply_to_id = null; + $reply_to_id = null; if (empty($this->reply_to)) { throw new NoParentNoticeException($this); } - // The reply_to ID in the table Notice could exist with a number - // however, the replied to notice might not exist in the database. - // Thus we need to catch the exception and throw the NoParentNoticeException else - // the timeline will not display correctly. - try { - $reply_to_id = self::getByID($this->reply_to); - } catch(Exception $e){ - throw new NoParentNoticeException($this); - } - + // The reply_to ID in the table Notice could exist with a number + // however, the replied to notice might not exist in the database. + // Thus we need to catch the exception and throw the NoParentNoticeException else + // the timeline will not display correctly. + try { + $reply_to_id = self::getByID($this->reply_to); + } catch(Exception $e){ + throw new NoParentNoticeException($this); + } return $reply_to_id; }