@@ -214,7 +214,7 @@ public function update($issueIdOrKey, $issueField, $paramArray = [])
214
214
* Adds a new comment to an issue.
215
215
*
216
216
* @param string|int $issueIdOrKey Issue id or key
217
- * @param Comment $comment
217
+ * @param Comment $comment
218
218
*
219
219
* @throws JiraException
220
220
* @throws \JsonMapper_Exception
@@ -225,8 +225,8 @@ public function addComment($issueIdOrKey, $comment)
225
225
{
226
226
$ this ->log ->info ("addComment= \n" );
227
227
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.! ' );
230
230
}
231
231
232
232
$ data = json_encode ($ comment );
@@ -246,7 +246,7 @@ public function addComment($issueIdOrKey, $comment)
246
246
*
247
247
* @param string|int $issueIdOrKey Issue id or key
248
248
* @param string|int $id Comment id
249
- * @param Comment $comment
249
+ * @param Comment $comment
250
250
*
251
251
* @throws JiraException
252
252
* @throws \JsonMapper_Exception
@@ -257,8 +257,8 @@ public function updateComment($issueIdOrKey, $id, $comment)
257
257
{
258
258
$ this ->log ->info ("updateComment= \n" );
259
259
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.! ' );
262
262
}
263
263
264
264
$ data = json_encode ($ comment );
0 commit comments