Skip to content

Commit 5dee03c

Browse files
lesstifStyleCIBot
andauthored
Apply fixes from StyleCI (#498)
[ci skip] [skip ci] Co-authored-by: StyleCI Bot <[email protected]>
1 parent aa2c4f7 commit 5dee03c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Sprint/Sprint.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace JiraRestApi\Sprint;
@@ -44,12 +45,13 @@ public function setGoalAsString(string $sprintGoal): self
4445
return $this;
4546
}
4647

47-
public function setOriginBoardIdAsStringOrInt(string|int $originBoardId) : self
48+
public function setOriginBoardIdAsStringOrInt(string|int $originBoardId): self
4849
{
4950
$this->originBoardId = strval($originBoardId);
5051

5152
return $this;
5253
}
54+
5355
public function setStartDateAsDateTime(DateTimeInterface $startDate, $format = 'Y-m-d'): static
5456
{
5557
$this->startDate = $startDate->format($format);

src/Sprint/SprintService.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace JiraRestApi\Sprint;
@@ -23,9 +24,8 @@ public function __construct(ConfigurationInterface $configuration = null, Logger
2324
* @param object $json JSON object structure from json_decode
2425
*
2526
* @throws \JsonMapper_Exception
26-
*
2727
*/
28-
public function getSprintFromJSON(object $json) : Sprint
28+
public function getSprintFromJSON(object $json): Sprint
2929
{
3030
$sprint = $this->json_mapper->map(
3131
$json,
@@ -35,7 +35,7 @@ public function getSprintFromJSON(object $json) : Sprint
3535
return $sprint;
3636
}
3737

38-
public function getSprint(string|int $sprintId) :Sprint
38+
public function getSprint(string|int $sprintId): Sprint
3939
{
4040
$ret = $this->exec($this->uri.'/'.$sprintId, null);
4141

@@ -48,7 +48,6 @@ public function getSprint(string|int $sprintId) :Sprint
4848
}
4949

5050
/**
51-
*
5251
* @throws JiraException
5352
* @throws \JsonMapper_Exception
5453
*
@@ -67,7 +66,7 @@ public function getSprintIssues(string|int $sprintId, array $paramArray = [])
6766
return $issues;
6867
}
6968

70-
public function createSprint(Sprint $sprint) : Sprint
69+
public function createSprint(Sprint $sprint): Sprint
7170
{
7271
$data = json_encode($sprint);
7372

0 commit comments

Comments
 (0)