Skip to content

Commit 24a1fc2

Browse files
committed
php-cs-fixer
1 parent 1142ec2 commit 24a1fc2

19 files changed

+942
-899
lines changed

src/Issue/Attachment.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
namespace JiraRestApi\Issue;
44

5-
class Attachment implements \JsonSerializable{
6-
/* @var string */
5+
class Attachment implements \JsonSerializable
6+
{
7+
/* @var string */
78
public $self;
89

910
/* @var string */
@@ -29,11 +30,9 @@ class Attachment implements \JsonSerializable{
2930

3031
/* @var string */
3132
public $thumbnail;
32-
33-
public function jsonSerialize()
34-
{
35-
return array_filter(get_object_vars($this));
36-
}
37-
}
3833

39-
?>
34+
public function jsonSerialize()
35+
{
36+
return array_filter(get_object_vars($this));
37+
}
38+
}

src/Issue/Comment.php

Lines changed: 61 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,70 +2,79 @@
22

33
namespace JiraRestApi\Issue;
44

5-
class Visibility {
6-
private $type;
7-
private $value;
8-
9-
public function setType($type) {
10-
$this->type = $type;
11-
}
12-
public function setValue($value) {
13-
$this->value = $value;
14-
}
15-
16-
public function getType() {
17-
return $this->type;
18-
}
19-
public function getValue() {
20-
return $this->value;
21-
}
5+
class Visibility
6+
{
7+
private $type;
8+
private $value;
9+
10+
public function setType($type)
11+
{
12+
$this->type = $type;
13+
}
14+
public function setValue($value)
15+
{
16+
$this->value = $value;
17+
}
18+
19+
public function getType()
20+
{
21+
return $this->type;
22+
}
23+
public function getValue()
24+
{
25+
return $this->value;
26+
}
2227
}
2328

24-
class Comment implements \JsonSerializable {
25-
/* @var string */
26-
public $self;
29+
class Comment implements \JsonSerializable
30+
{
31+
/* @var string */
32+
public $self;
2733

28-
/* @var string */
29-
public $id;
34+
/* @var string */
35+
public $id;
3036

31-
/* @var Reporter */
32-
public $author;
37+
/* @var Reporter */
38+
public $author;
3339

34-
/* @var string */
35-
public $body;
40+
/* @var string */
41+
public $body;
3642

37-
/* @var Reporter */
38-
public $updateAuthor;
43+
/* @var Reporter */
44+
public $updateAuthor;
3945

40-
/* @var DateTime */
41-
public $created;
46+
/* @var DateTime */
47+
public $created;
4248

43-
/* @var DateTime */
44-
public $updated;
49+
/* @var DateTime */
50+
public $updated;
4551

46-
/**
47-
* @var Visibility
48-
*/
49-
public $visibility;
52+
/**
53+
* @var Visibility
54+
*/
55+
public $visibility;
5056

51-
public function setBody($body) {
52-
$this->body = $body;
53-
return $this;
57+
public function setBody($body)
58+
{
59+
$this->body = $body;
60+
61+
return $this;
5462
}
5563

56-
public function setVisibility($type, $vvalue) {
57-
if (is_null($this->visibility))
58-
$this->visibility = new Visibility;
64+
public function setVisibility($type, $vvalue)
65+
{
66+
if (is_null($this->visibility)) {
67+
$this->visibility = new Visibility();
68+
}
69+
70+
$this->visibility->setType($type);
71+
$this->visibility->setValue($vvalue);
5972

60-
$this->visibility->setType($type);
61-
$this->visibility->setValue($vvalue);
62-
return $this;
73+
return $this;
6374
}
64-
65-
public function jsonSerialize()
66-
{
67-
return array_filter(get_object_vars($this));
68-
}
69-
}
7075

71-
?>
76+
public function jsonSerialize()
77+
{
78+
return array_filter(get_object_vars($this));
79+
}
80+
}

src/Issue/Comments.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
namespace JiraRestApi\Issue;
44

5-
class Comments implements \JsonSerializable {
6-
/* @var int */
5+
class Comments implements \JsonSerializable
6+
{
7+
/* @var int */
78
public $startAt;
89

910
/* @var int */
@@ -15,10 +16,8 @@ class Comments implements \JsonSerializable {
1516
/* @var CommentList[\JiraRestApi\Issue\Comment] */
1617
public $comments;
1718

18-
public function jsonSerialize()
19-
{
20-
return array_filter(get_object_vars($this));
21-
}
19+
public function jsonSerialize()
20+
{
21+
return array_filter(get_object_vars($this));
22+
}
2223
}
23-
24-
?>

src/Issue/Issue.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
namespace JiraRestApi\Issue;
44

5-
class Issue implements \JsonSerializable{
5+
class Issue implements \JsonSerializable
6+
{
67
/**
7-
* return only if Project query by key(not id)
8+
* return only if Project query by key(not id).
9+
*
810
* @var string
911
*/
1012
public $expand;
1113

12-
/* @var string */
14+
/* @var string */
1315
public $self;
1416

1517
/* @var string */
@@ -21,10 +23,8 @@ class Issue implements \JsonSerializable{
2123
/* @var IssueField */
2224
public $fields;
2325

24-
public function jsonSerialize()
25-
{
26-
return array_filter(get_object_vars($this));
27-
}
26+
public function jsonSerialize()
27+
{
28+
return array_filter(get_object_vars($this));
29+
}
2830
}
29-
30-
?>

0 commit comments

Comments
 (0)