From d0c84908376a7edc3aaa312cf4fe9910bda5e917 Mon Sep 17 00:00:00 2001 From: KwangSeob Jeong Date: Thu, 12 Dec 2019 04:15:54 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Issue/IssueService.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Issue/IssueService.php b/src/Issue/IssueService.php index b892d52d..02859667 100644 --- a/src/Issue/IssueService.php +++ b/src/Issue/IssueService.php @@ -214,7 +214,7 @@ public function update($issueIdOrKey, $issueField, $paramArray = []) * Adds a new comment to an issue. * * @param string|int $issueIdOrKey Issue id or key - * @param Comment $comment + * @param Comment $comment * * @throws JiraException * @throws \JsonMapper_Exception @@ -225,8 +225,8 @@ public function addComment($issueIdOrKey, $comment) { $this->log->info("addComment=\n"); - if (! ($comment instanceof Comment) || empty($comment->body)) { - throw new JiraException("comment param must instance of Comment and have to body text.!"); + if (!($comment instanceof Comment) || empty($comment->body)) { + throw new JiraException('comment param must instance of Comment and have to body text.!'); } $data = json_encode($comment); @@ -246,7 +246,7 @@ public function addComment($issueIdOrKey, $comment) * * @param string|int $issueIdOrKey Issue id or key * @param string|int $id Comment id - * @param Comment $comment + * @param Comment $comment * * @throws JiraException * @throws \JsonMapper_Exception @@ -257,8 +257,8 @@ public function updateComment($issueIdOrKey, $id, $comment) { $this->log->info("updateComment=\n"); - if (! ($comment instanceof Comment) || empty($comment->body)) { - throw new JiraException("comment param must instance of Comment and have to body text.!"); + if (!($comment instanceof Comment) || empty($comment->body)) { + throw new JiraException('comment param must instance of Comment and have to body text.!'); } $data = json_encode($comment);