Test Setup Failed
Pull Request — master (#190)
by
unknown
15:14
created
src/midcom/datamanager/storage/parameter.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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']) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.