We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8213a57 + 8b7c393 commit 954356dCopy full SHA for 954356d
src/Issue/IssueField.php
@@ -408,21 +408,20 @@ public function setSecurityId($id)
408
* set issue's due date.
409
*
410
* @param \DateTime|null $duedate due date string or DateTime object
411
- * @param string $format datetime string format.
+ * @param string $format datetime string format.
412
413
* @return $this
414
*/
415
public function setDueDate($duedate, $format = 'Y-m-d')
416
{
417
if (is_string($duedate)) {
418
$this->duedate = $duedate;
419
- } else if ($duedate instanceof \DateTime) {
+ } elseif ($duedate instanceof \DateTime) {
420
$this->duedate = $duedate->format($format);
421
} else {
422
$this->duedate = null;
423
}
424
425
return $this;
426
427
-
428
0 commit comments