Skip to content

Commit

Permalink
Apply fixes from StyleCI (#498)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
lesstif and StyleCIBot authored Jan 22, 2023
1 parent aa2c4f7 commit 5dee03c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/Sprint/Sprint.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

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

public function setOriginBoardIdAsStringOrInt(string|int $originBoardId) : self
public function setOriginBoardIdAsStringOrInt(string|int $originBoardId): self
{
$this->originBoardId = strval($originBoardId);

return $this;
}

public function setStartDateAsDateTime(DateTimeInterface $startDate, $format = 'Y-m-d'): static
{
$this->startDate = $startDate->format($format);
Expand Down
9 changes: 4 additions & 5 deletions src/Sprint/SprintService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace JiraRestApi\Sprint;
Expand All @@ -23,9 +24,8 @@ public function __construct(ConfigurationInterface $configuration = null, Logger
* @param object $json JSON object structure from json_decode
*
* @throws \JsonMapper_Exception
*
*/
public function getSprintFromJSON(object $json) : Sprint
public function getSprintFromJSON(object $json): Sprint
{
$sprint = $this->json_mapper->map(
$json,
Expand All @@ -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);

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

/**
*
* @throws JiraException
* @throws \JsonMapper_Exception
*
Expand All @@ -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);

Expand Down

0 comments on commit 5dee03c

Please sign in to comment.