diff --git a/src/Issue/IssueField.php b/src/Issue/IssueField.php index 2ce7d3d0..71c3f3c9 100644 --- a/src/Issue/IssueField.php +++ b/src/Issue/IssueField.php @@ -408,7 +408,7 @@ public function setSecurityId($id) * set issue's due date. * * @param \DateTime|null $duedate due date string or DateTime object - * @param string $format datetime string format. + * @param string $format datetime string format. * * @return $this */ @@ -416,7 +416,7 @@ public function setDueDate($duedate, $format = 'Y-m-d') { if (is_string($duedate)) { $this->duedate = $duedate; - } else if ($duedate instanceof \DateTime) { + } elseif ($duedate instanceof \DateTime) { $this->duedate = $duedate->format($format); } else { $this->duedate = null; @@ -424,5 +424,4 @@ public function setDueDate($duedate, $format = 'Y-m-d') return $this; } - }