Skip to content

Commit b1c5b45

Browse files
lesstifStyleCIBot
andauthored
Apply fixes from StyleCI (#42)
Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent a7c85e3 commit b1c5b45

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/Project/ProjectService.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ public function getAllProjects($paramArray = [])
4242
*
4343
* @throws \JiraCloud\JiraException
4444
* @throws \JsonMapper_Exception
45-
*
4645
*/
47-
public function get(string|int $projectIdOrKey) : Project
46+
public function get(string|int $projectIdOrKey): Project
4847
{
4948
$ret = $this->exec($this->uri."/$projectIdOrKey", null);
5049

@@ -64,11 +63,11 @@ public function get(string|int $projectIdOrKey) : Project
6463
*
6564
* @param string|int $projectIdOrKey Project Key
6665
*
67-
* @return Reporter[]
6866
* @throws \JiraCloud\JiraException
6967
*
68+
* @return Reporter[]
7069
*/
71-
public function getAssignable(string|int $projectIdOrKey) : array
70+
public function getAssignable(string|int $projectIdOrKey): array
7271
{
7372
$ret = $this->exec("/user/assignable/search?project=$projectIdOrKey", null);
7473
$json = json_decode($ret);

src/Version/VersionService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function move(Version $version)
5858
*
5959
* @see ProjectService::getVersions()
6060
*/
61-
public function get(string $id) : Version
61+
public function get(string $id): Version
6262
{
6363
$ret = $this->exec($this->uri.'/'.$id);
6464

@@ -79,7 +79,7 @@ public function get(string $id) : Version
7979
*
8080
* @return Version
8181
*/
82-
public function update(Version $version) : Version
82+
public function update(Version $version): Version
8383
{
8484
if (!$version->id || !is_numeric($version->id)) {
8585
throw new JiraException($version->id.' is not a valid version id.');
@@ -112,7 +112,7 @@ public function update(Version $version) : Version
112112
*
113113
* @return string
114114
*/
115-
public function delete(Version $version, $moveAffectedIssuesTo = false, $moveFixIssuesTo = false) : string
115+
public function delete(Version $version, $moveAffectedIssuesTo = false, $moveFixIssuesTo = false): string
116116
{
117117
if (!$version->id || !is_numeric($version->id)) {
118118
throw new JiraException($version->id.' is not a valid version id.');
@@ -147,7 +147,7 @@ public function merge($ver)
147147
*
148148
* @see https://docs.atlassian.com/jira/REST/server/#api/2/version-getVersionRelatedIssues
149149
*/
150-
public function getRelatedIssues(Version $version) : VersionIssueCounts
150+
public function getRelatedIssues(Version $version): VersionIssueCounts
151151
{
152152
if (!$version->id || !is_numeric($version->id)) {
153153
throw new JiraException($version->id.' is not a valid version id.');
@@ -172,7 +172,7 @@ public function getRelatedIssues(Version $version) : VersionIssueCounts
172172
*
173173
* @return VersionUnresolvedCount
174174
*/
175-
public function getUnresolvedIssues(Version $version) : VersionUnresolvedCount
175+
public function getUnresolvedIssues(Version $version): VersionUnresolvedCount
176176
{
177177
if (!$version->id || !is_numeric($version->id)) {
178178
throw new JiraException($version->id.' is not a valid version id.');

0 commit comments

Comments
 (0)