@@ -140,16 +140,16 @@ |
||
| 140 | 140 | |
| 141 | 141 | public function jsonSerialize() |
| 142 | 142 | { |
| 143 | - $vars = array_filter(get_object_vars($this), function ($var) { |
|
| 143 | + $vars = array_filter(get_object_vars($this), function($var) { |
|
| 144 | 144 | return !is_null($var); |
| 145 | 145 | }); |
| 146 | 146 | |
| 147 | 147 | // if assignee property has empty value then remove it. |
| 148 | 148 | // @see https://github.com/lesstif/php-jira-rest-client/issues/126 |
| 149 | 149 | // @see https://github.com/lesstif/php-jira-rest-client/issues/177 |
| 150 | - if (! empty($this->assignee)) { |
|
| 150 | + if (!empty($this->assignee)) { |
|
| 151 | 151 | // do nothing |
| 152 | - if ($this->assignee->isWantUnassigned() === true ) { |
|
| 152 | + if ($this->assignee->isWantUnassigned() === true) { |
|
| 153 | 153 | |
| 154 | 154 | } elseif ($this->assignee->isEmpty()) { |
| 155 | 155 | unset($vars['assignee']); |
@@ -71,8 +71,9 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | public function isWantUnassigned() |
| 73 | 73 | { |
| 74 | - if ($this->wantUnassigned) |
|
| 75 | - return true; |
|
| 74 | + if ($this->wantUnassigned) { |
|
| 75 | + return true; |
|
| 76 | + } |
|
| 76 | 77 | |
| 77 | 78 | return false; |
| 78 | 79 | } |