@@ -160,8 +160,7 @@ |
||
| 160 | 160 | $this->caller->__set($this->data['gid'], true); |
| 161 | 161 | if ($type === CustomField::TYPE_ENUM) { |
| 162 | 162 | $this->data['enum_value']['gid'] = $this->_toEnumOptionGid($value); |
| 163 | - } |
|
| 164 | - else { |
|
| 163 | + } else { |
|
| 165 | 164 | $this->data["{$type}_value"] = $value; |
| 166 | 165 | } |
| 167 | 166 | } |
@@ -36,8 +36,7 @@ |
||
| 36 | 36 | private function _removeWithPost (string $rmPath, array $data, string $field, $diff) { |
| 37 | 37 | if ($this->hasGid()) { |
| 38 | 38 | return $this->_setWithPost($rmPath, $data, $field); |
| 39 | - } |
|
| 40 | - elseif (is_array($diff)) { |
|
| 39 | + } elseif (is_array($diff)) { |
|
| 41 | 40 | return $this->_set($field, array_values(array_diff($this->data[$field] ?? [], $diff))); |
| 42 | 41 | } |
| 43 | 42 | return $this->_set($field, array_values(array_filter($this->data[$field] ?? [], $diff))); |