Test Setup Failed
Pull Request — master (#190)
by
unknown
09:58
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         //workaround for weird mgd API behavior where setting falsy (i.e. deleting) a nonexistent parameter
46 46
         //returns an error
47
-        if (   !$this->value
47
+        if (!$this->value
48 48
             && $this->load() === null) {
49 49
             return true;
50 50
         }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         switch ($this->config['type_config']['multiple_storagemode']) {
64 64
             case 'serialized':
65 65
             case 'array':
66
-                if (   !is_array($source)
66
+                if (!is_array($source)
67 67
                     && empty($source)) {
68 68
                     $source = array();
69 69
                 }
Please login to merge, or discard this patch.
src/midcom/datamanager/schema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,15 +143,15 @@  discard block
 block discarded – undo
143 143
             'validation' => array()
144 144
         ));
145 145
 
146
-        $normalize_widget = function (Options $options, $value) {
147
-            if (   $value == 'images'
146
+        $normalize_widget = function(Options $options, $value) {
147
+            if ($value == 'images'
148 148
                 || $value == 'downloads') {
149 149
                 return 'subform';
150 150
             }
151 151
             return $value;
152 152
         };
153 153
 
154
-        $normalize_storage = function (Options $options, $value) use ($name) {
154
+        $normalize_storage = function(Options $options, $value) use ($name) {
155 155
             $default = array(
156 156
                 'location' => 'parameter',
157 157
                 'domain' => 'midcom.helper.datamanager2',
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                 $rule = array('type' => $rule);
205 205
             } elseif (!array_key_exists('type', $rule)) {
206 206
                 throw new midcom_error("Missing validation rule type for rule {$key} on field {$config['name']}, this is a required option.");
207
-            } elseif (   $rule['type'] == 'compare'
207
+            } elseif ($rule['type'] == 'compare'
208 208
                     && !array_key_exists('compare_with', $rule)) {
209 209
                         throw new midcom_error("Missing compare_with option for compare type rule {$key} on field {$config['name']}, this is a required option.");
210 210
             }
Please login to merge, or discard this patch.