Skip to content

Commit d60f399

Browse files
lesstifStyleCIBot
andauthored
Apply fixes from StyleCI (#29)
Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent 6b17ff1 commit d60f399

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/Issue/Comment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use DateTimeInterface;
66
use DH\Adf\Node\Block\Document;
77
use DH\Adf\Node\Node;
8-
use JiraCloud\ADF\AtlassianDocumentFormat;
9-
use JiraCloud\JiraException;
108

119
class Comment implements \JsonSerializable
1210
{
@@ -31,11 +29,13 @@ class Comment implements \JsonSerializable
3129
public bool $jsdPublic;
3230

3331
/**
34-
* mapping function for json_mapper
32+
* mapping function for json_mapper.
33+
*
3534
* @param \stdClass $body
35+
*
3636
* @return $this
3737
*/
38-
public function setBody(\stdClass $body) : static
38+
public function setBody(\stdClass $body): static
3939
{
4040
$this->body = json_decode(json_encode($body), true);
4141

src/Issue/IssueService.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ public function getIssueFromJSON($json): Issue
3131
* get all project list.
3232
*
3333
* @param int|string $issueIdOrKey
34-
* @param array $paramArray Query Parameter key-value Array.
34+
* @param array $paramArray Query Parameter key-value Array.
3535
* @param Issue|null $issueObject
3636
*
37-
* @return Issue class
3837
*@throws \JsonMapper_Exception
39-
*
4038
* @throws JiraException
39+
*
40+
* @return Issue class
4141
*/
4242
public function get(int|string $issueIdOrKey, array $paramArray = [], Issue $issueObject = null): Issue
4343
{
@@ -58,10 +58,10 @@ public function get(int|string $issueIdOrKey, array $paramArray = [], Issue $iss
5858
*
5959
* @param IssueField $issueField
6060
*
61-
* @return Issue created issue key
6261
* @throws \JsonMapper_Exception
63-
*
6462
* @throws JiraException
63+
*
64+
* @return Issue created issue key
6565
*/
6666
public function create(IssueField $issueField): Issue
6767
{
@@ -83,12 +83,12 @@ public function create(IssueField $issueField): Issue
8383
* Create multiple issues using bulk insert.
8484
*
8585
* @param IssueField[] $issueFields Array of IssueField objects
86-
* @param int $batchSize Maximum number of issues to send in each request
86+
* @param int $batchSize Maximum number of issues to send in each request
8787
*
88-
* @return Issue[] Array of results, where each result represents one batch of insertions
8988
*@throws \JsonMapper_Exception
90-
*
9189
* @throws JiraException
90+
*
91+
* @return Issue[] Array of results, where each result represents one batch of insertions
9292
*/
9393
public function createMultiple(array $issueFields, int $batchSize = 50): array
9494
{
@@ -138,13 +138,13 @@ private function bulkInsert(array $issues): array
138138
/**
139139
* Add one or more file to an issue.
140140
*
141-
* @param int|string $issueIdOrKey Issue id or key
141+
* @param int|string $issueIdOrKey Issue id or key
142142
* @param array|string $filePathArray attachment file path.
143143
*
144-
* @return Attachment[]
145144
*@throws \JsonMapper_Exception
146-
*
147145
* @throws JiraException
146+
*
147+
* @return Attachment[]
148148
*/
149149
public function addAttachments(int|string $issueIdOrKey, array|string $filePathArray): array
150150
{
@@ -183,9 +183,9 @@ public function addAttachments(int|string $issueIdOrKey, array|string $filePathA
183183
/**
184184
* update issue.
185185
*
186-
* @return string created issue key
187186
* @throws JiraException
188187
*
188+
* @return string created issue key
189189
*/
190190
public function update(int|string $issueIdOrKey, IssueField $issueField, array $paramArray = []): string
191191
{

0 commit comments

Comments
 (0)