From 0a779c15e9ad0cd6f6cb2dd1a184836fdcf29395 Mon Sep 17 00:00:00 2001 From: KwangSeob Jeong Date: Mon, 13 Feb 2023 00:27:45 +0900 Subject: [PATCH] Apply fixes from StyleCI (#502) [ci skip] [skip ci] Co-authored-by: StyleCI Bot --- src/Issue/Version.php | 6 +++--- src/Version/VersionService.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Issue/Version.php b/src/Issue/Version.php index 8184792..1360667 100644 --- a/src/Issue/Version.php +++ b/src/Issue/Version.php @@ -77,7 +77,7 @@ public function setReleased($released): static return $this; } - public function setReleaseDateAsDateTime(DateTimeInterface $releaseDate, string $format='Y-m-d'): static + public function setReleaseDateAsDateTime(DateTimeInterface $releaseDate, string $format = 'Y-m-d'): static { $this->releaseDate = $releaseDate->format($format); @@ -98,7 +98,7 @@ public function setUserReleaseDateAsDateTime($userReleaseDate): static return $this; } - public function setStartDateAsDateTime(\DateTimeInterface $startDate, string $format='Y-m-d'): static + public function setStartDateAsDateTime(\DateTimeInterface $startDate, string $format = 'Y-m-d'): static { $this->startDate = $startDate->format($format); @@ -112,7 +112,7 @@ public function setStartDateAsString(?string $startDate): static return $this; } - public function setUserStartDateAsDateTime(\DateTimeInterface $userStartDate, string $format='Y-m-d'): static + public function setUserStartDateAsDateTime(\DateTimeInterface $userStartDate, string $format = 'Y-m-d'): static { $this->userStartDate = $userStartDate->format($format); diff --git a/src/Version/VersionService.php b/src/Version/VersionService.php index 62a57ef..17512e6 100644 --- a/src/Version/VersionService.php +++ b/src/Version/VersionService.php @@ -84,7 +84,7 @@ public function get(string $id) * * @return Version */ - public function update(Version $version) : Version + public function update(Version $version): Version { if (!$version->id || !is_numeric($version->id)) { throw new JiraException($version->id.' is not a valid version id.');