@@ -73,8 +73,7 @@ |
||
73 | 73 | if ($this->hasGid()) { |
74 | 74 | $this->api->post("{$this}/addMembers", ['members' => array_column($users, 'gid')]); |
75 | 75 | $this->_merge('members', $users); |
76 | - } |
|
77 | - else { |
|
76 | + } else { |
|
78 | 77 | $this->_merge('members', $users, true); |
79 | 78 | } |
80 | 79 | return $this; |
@@ -205,8 +205,7 @@ discard block |
||
205 | 205 | if ($this->hasGid()) { |
206 | 206 | $this->api->post("{$this}/addFollowers", ['followers' => array_column($users, 'gid')]); |
207 | 207 | $this->_merge('followers', $users); |
208 | - } |
|
209 | - else { |
|
208 | + } else { |
|
210 | 209 | $this->_merge('followers', $users, true); |
211 | 210 | } |
212 | 211 | return $this; |
@@ -222,8 +221,7 @@ discard block |
||
222 | 221 | if ($this->hasGid()) { |
223 | 222 | $this->api->post("{$this}/addTag", ['tag' => $tag->getGid()]); |
224 | 223 | $this->_merge('tags', [$tag]); |
225 | - } |
|
226 | - else { |
|
224 | + } else { |
|
227 | 225 | $this->_merge('tags', [$tag], true); |
228 | 226 | } |
229 | 227 | return $this; |
@@ -248,8 +246,7 @@ discard block |
||
248 | 246 | 'section' => $section |
249 | 247 | ]); |
250 | 248 | } |
251 | - } |
|
252 | - else { |
|
249 | + } else { |
|
253 | 250 | if (!$this->hasWorkspace()) { |
254 | 251 | $this->setWorkspace($project->getWorkspace()); |
255 | 252 | } |
@@ -560,8 +557,7 @@ discard block |
||
560 | 557 | if ($this->hasGid()) { |
561 | 558 | $this->api->post("{$this}/setParent", ['parent' => $parent ? $parent->getGid() : null]); |
562 | 559 | $this->data['parent'] = $parent; |
563 | - } |
|
564 | - else { |
|
560 | + } else { |
|
565 | 561 | $this->_set('parent', $parent); |
566 | 562 | } |
567 | 563 | return $this; |