Skip to content

Commit c319cfd

Browse files
authored
Merge pull request #279 from lesstif/analysis-3wOv01
Apply fixes from StyleCI
2 parents ae3f7ef + d0c8490 commit c319cfd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Issue/IssueService.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function update($issueIdOrKey, $issueField, $paramArray = [])
214214
* Adds a new comment to an issue.
215215
*
216216
* @param string|int $issueIdOrKey Issue id or key
217-
* @param Comment $comment
217+
* @param Comment $comment
218218
*
219219
* @throws JiraException
220220
* @throws \JsonMapper_Exception
@@ -225,8 +225,8 @@ public function addComment($issueIdOrKey, $comment)
225225
{
226226
$this->log->info("addComment=\n");
227227

228-
if (! ($comment instanceof Comment) || empty($comment->body)) {
229-
throw new JiraException("comment param must instance of Comment and have to body text.!");
228+
if (!($comment instanceof Comment) || empty($comment->body)) {
229+
throw new JiraException('comment param must instance of Comment and have to body text.!');
230230
}
231231

232232
$data = json_encode($comment);
@@ -246,7 +246,7 @@ public function addComment($issueIdOrKey, $comment)
246246
*
247247
* @param string|int $issueIdOrKey Issue id or key
248248
* @param string|int $id Comment id
249-
* @param Comment $comment
249+
* @param Comment $comment
250250
*
251251
* @throws JiraException
252252
* @throws \JsonMapper_Exception
@@ -257,8 +257,8 @@ public function updateComment($issueIdOrKey, $id, $comment)
257257
{
258258
$this->log->info("updateComment=\n");
259259

260-
if (! ($comment instanceof Comment) || empty($comment->body)) {
261-
throw new JiraException("comment param must instance of Comment and have to body text.!");
260+
if (!($comment instanceof Comment) || empty($comment->body)) {
261+
throw new JiraException('comment param must instance of Comment and have to body text.!');
262262
}
263263

264264
$data = json_encode($comment);

0 commit comments

Comments
 (0)