Skip to content

Commit

Permalink
Merge pull request #163 from lesstif/analysis-XZ0ZdP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
lesstif authored Jun 17, 2018
2 parents 8213a57 + 8b7c393 commit 954356d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Issue/IssueField.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,21 +408,20 @@ 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
*/
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;
}

return $this;
}

}

0 comments on commit 954356d

Please sign in to comment.