Skip to content

Commit 954356d

Browse files
authored
Merge pull request #163 from lesstif/analysis-XZ0ZdP
Apply fixes from StyleCI
2 parents 8213a57 + 8b7c393 commit 954356d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Issue/IssueField.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,21 +408,20 @@ public function setSecurityId($id)
408408
* set issue's due date.
409409
*
410410
* @param \DateTime|null $duedate due date string or DateTime object
411-
* @param string $format datetime string format.
411+
* @param string $format datetime string format.
412412
*
413413
* @return $this
414414
*/
415415
public function setDueDate($duedate, $format = 'Y-m-d')
416416
{
417417
if (is_string($duedate)) {
418418
$this->duedate = $duedate;
419-
} else if ($duedate instanceof \DateTime) {
419+
} elseif ($duedate instanceof \DateTime) {
420420
$this->duedate = $duedate->format($format);
421421
} else {
422422
$this->duedate = null;
423423
}
424424

425425
return $this;
426426
}
427-
428427
}

0 commit comments

Comments
 (0)