@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * Converts the selected options according to the multiple_storagemode setting. |
| 88 | 88 | * |
| 89 | 89 | * @return mixed The data converted to the final data storage. |
| 90 | - */ |
|
| 90 | + */ |
|
| 91 | 91 | function convert_multiple_to_storage() |
| 92 | 92 | { |
| 93 | 93 | switch ($this->config['type_config']['multiple_storagemode']) { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | public function load() |
| 29 | 29 | { |
| 30 | 30 | $source = $this->object->get_parameter($this->config['storage']['domain'], $this->config['storage']['name']); |
| 31 | - if(isset($this->config['type_config']['multiple_storagemode'])) { |
|
| 31 | + if (isset($this->config['type_config']['multiple_storagemode'])) { |
|
| 32 | 32 | $source = $this->convert_multiple_from_storage($source); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | { |
| 43 | 43 | //workaround for weird mgd API behavior where setting falsy (i.e. deleting) a nonexistent parameter |
| 44 | 44 | //returns an error |
| 45 | - if ( !$this->value |
|
| 45 | + if (!$this->value |
|
| 46 | 46 | && $this->load() === null) { |
| 47 | 47 | return true; |
| 48 | 48 | } |
| 49 | - if(isset($this->config['type_config']['multiple_storagemode'])) { |
|
| 49 | + if (isset($this->config['type_config']['multiple_storagemode'])) { |
|
| 50 | 50 | $this->value = $this->convert_multiple_to_storage(); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | switch ($this->config['type_config']['multiple_storagemode']) { |
| 61 | 61 | case 'serialized': |
| 62 | 62 | case 'array': |
| 63 | - if ( !is_array($source) |
|
| 63 | + if (!is_array($source) |
|
| 64 | 64 | && empty($source)) { |
| 65 | 65 | $source = array(); |
| 66 | 66 | } |