Skip to content

Commit

Permalink
Merge pull request #279 from lesstif/analysis-3wOv01
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
lesstif authored Dec 12, 2019
2 parents ae3f7ef + d0c8490 commit c319cfd
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 c319cfd

Please sign in to comment.