From 5dee03c12342a46b561855418e784c7f5fdd6676 Mon Sep 17 00:00:00 2001 From: KwangSeob Jeong Date: Mon, 23 Jan 2023 00:45:26 +0900 Subject: [PATCH] Apply fixes from StyleCI (#498) [ci skip] [skip ci] Co-authored-by: StyleCI Bot --- src/Sprint/Sprint.php | 4 +++- src/Sprint/SprintService.php | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Sprint/Sprint.php b/src/Sprint/Sprint.php index 6be077f..d0c6973 100644 --- a/src/Sprint/Sprint.php +++ b/src/Sprint/Sprint.php @@ -1,4 +1,5 @@ originBoardId = strval($originBoardId); return $this; } + public function setStartDateAsDateTime(DateTimeInterface $startDate, $format = 'Y-m-d'): static { $this->startDate = $startDate->format($format); diff --git a/src/Sprint/SprintService.php b/src/Sprint/SprintService.php index 983e361..c2e6bb2 100644 --- a/src/Sprint/SprintService.php +++ b/src/Sprint/SprintService.php @@ -1,4 +1,5 @@ json_mapper->map( $json, @@ -35,7 +35,7 @@ public function getSprintFromJSON(object $json) : Sprint return $sprint; } - public function getSprint(string|int $sprintId) :Sprint + public function getSprint(string|int $sprintId): Sprint { $ret = $this->exec($this->uri.'/'.$sprintId, null); @@ -48,7 +48,6 @@ public function getSprint(string|int $sprintId) :Sprint } /** - * * @throws JiraException * @throws \JsonMapper_Exception * @@ -67,7 +66,7 @@ public function getSprintIssues(string|int $sprintId, array $paramArray = []) return $issues; } - public function createSprint(Sprint $sprint) : Sprint + public function createSprint(Sprint $sprint): Sprint { $data = json_encode($sprint);