From f722e242fd5b7bf2bd2076d91083be923358ea2c Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 21 Aug 2015 10:33:18 +0200 Subject: [PATCH] monitoring: Optimize method order in the DeleteCommentCommand --- .../Command/Object/DeleteCommentCommand.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Command/Object/DeleteCommentCommand.php b/modules/monitoring/library/Monitoring/Command/Object/DeleteCommentCommand.php index f3cbbc4cb..389483ac2 100644 --- a/modules/monitoring/library/Monitoring/Command/Object/DeleteCommentCommand.php +++ b/modules/monitoring/library/Monitoring/Command/Object/DeleteCommentCommand.php @@ -18,12 +18,22 @@ class DeleteCommentCommand extends IcingaCommand protected $commentId; /** - * The type of the comment, either 'host' or 'service' + * Whether the command affects a service comment * * @var boolean */ protected $isService = false; + /** + * Get the ID of the comment that is to be deleted + * + * @return int + */ + public function getCommentId() + { + return $this->commentId; + } + /** * Set the ID of the comment that is to be deleted * @@ -38,17 +48,7 @@ class DeleteCommentCommand extends IcingaCommand } /** - * Get the ID of the comment that is to be deleted - * - * @return int - */ - public function getCommentId() - { - return $this->commentId; - } - - /** - * Whether the command affects a service comment + * Get whether the command affects a service comment * * @return boolean */ @@ -58,7 +58,7 @@ class DeleteCommentCommand extends IcingaCommand } /** - * Set whether the command affects a service + * Set whether the command affects a service comment * * @param bool $isService *