Skip to content

Commit

Permalink
php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
lesstif committed Jun 5, 2015
1 parent 1142ec2 commit 24a1fc2
Show file tree
Hide file tree
Showing 19 changed files with 942 additions and 899 deletions.
17 changes: 8 additions & 9 deletions src/Issue/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

namespace JiraRestApi\Issue;

class Attachment implements \JsonSerializable{
/* @var string */
class Attachment implements \JsonSerializable
{
/* @var string */
public $self;

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

/* @var string */
public $thumbnail;

public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}

?>
public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}
113 changes: 61 additions & 52 deletions src/Issue/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,79 @@

namespace JiraRestApi\Issue;

class Visibility {
private $type;
private $value;

public function setType($type) {
$this->type = $type;
}
public function setValue($value) {
$this->value = $value;
}

public function getType() {
return $this->type;
}
public function getValue() {
return $this->value;
}
class Visibility
{
private $type;
private $value;

public function setType($type)
{
$this->type = $type;
}
public function setValue($value)
{
$this->value = $value;
}

public function getType()
{
return $this->type;
}
public function getValue()
{
return $this->value;
}
}

class Comment implements \JsonSerializable {
/* @var string */
public $self;
class Comment implements \JsonSerializable
{
/* @var string */
public $self;

/* @var string */
public $id;
/* @var string */
public $id;

/* @var Reporter */
public $author;
/* @var Reporter */
public $author;

/* @var string */
public $body;
/* @var string */
public $body;

/* @var Reporter */
public $updateAuthor;
/* @var Reporter */
public $updateAuthor;

/* @var DateTime */
public $created;
/* @var DateTime */
public $created;

/* @var DateTime */
public $updated;
/* @var DateTime */
public $updated;

/**
* @var Visibility
*/
public $visibility;
/**
* @var Visibility
*/
public $visibility;

public function setBody($body) {
$this->body = $body;
return $this;
public function setBody($body)
{
$this->body = $body;

return $this;
}

public function setVisibility($type, $vvalue) {
if (is_null($this->visibility))
$this->visibility = new Visibility;
public function setVisibility($type, $vvalue)
{
if (is_null($this->visibility)) {
$this->visibility = new Visibility();
}

$this->visibility->setType($type);
$this->visibility->setValue($vvalue);

$this->visibility->setType($type);
$this->visibility->setValue($vvalue);
return $this;
return $this;
}

public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}

?>
public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}
15 changes: 7 additions & 8 deletions src/Issue/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

namespace JiraRestApi\Issue;

class Comments implements \JsonSerializable {
/* @var int */
class Comments implements \JsonSerializable
{
/* @var int */
public $startAt;

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

public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}

?>
18 changes: 9 additions & 9 deletions src/Issue/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

namespace JiraRestApi\Issue;

class Issue implements \JsonSerializable{
class Issue implements \JsonSerializable
{
/**
* return only if Project query by key(not id)
* return only if Project query by key(not id).
*
* @var string
*/
public $expand;

/* @var string */
/* @var string */
public $self;

/* @var string */
Expand All @@ -21,10 +23,8 @@ class Issue implements \JsonSerializable{
/* @var IssueField */
public $fields;

public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}

?>
Loading

0 comments on commit 24a1fc2

Please sign in to comment.