Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
lesstif authored and StyleCIBot committed Dec 12, 2019
1 parent ae3f7ef commit d0c8490
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Issue/IssueService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand All @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit d0c8490

Please sign in to comment.