@@ -68,8 +68,7 @@ discard block |
||
68 | 68 | $this->data[$key] = array_values(array_unique($this->data[$key])); |
69 | 69 | if ($force) { |
70 | 70 | $this->diff[$key] = true; |
71 | - } |
|
72 | - else { |
|
71 | + } else { |
|
73 | 72 | $this->api->getCache()->add($this); |
74 | 73 | } |
75 | 74 | } |
@@ -117,8 +116,7 @@ discard block |
||
117 | 116 | if (isset($key)) { |
118 | 117 | $value = $this->api->get($this, [], ['fields' => static::$optFields[$key] ?? $key])[$key] ?? null; |
119 | 118 | $this->_setMapped($key, $value); |
120 | - } |
|
121 | - else { |
|
119 | + } else { |
|
122 | 120 | $this->_setData($this->api->get($this, [], ['expand' => 'this'])); |
123 | 121 | } |
124 | 122 | $this->api->getCache()->add($this); |