Test Setup Failed
Pull Request — master (#190)
by
unknown
08:43
created
src/midcom/datamanager/storage/parameter.php 1 patch
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.
lib/midcom/helper/datamanager2/ajax/autocomplete.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,8 +244,8 @@
 block discarded – undo
244 244
             }
245 245
         } elseif (   $item_name == 'username'
246 246
                   && $object instanceof midcom_db_person) {
247
-          $account = new midcom_core_account($object);
248
-          return $account->get_username();
247
+            $account = new midcom_core_account($object);
248
+            return $account->get_username();
249 249
         }
250 250
         return $object->$item_name;
251 251
     }
Please login to merge, or discard this patch.
src/midcom/datamanager/schema.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,8 +163,7 @@
 block discarded – undo
163 163
             }
164 164
             if ($value === null) {
165 165
 
166
-                if($options['type'] === 'privilege')
167
-                {
166
+                if($options['type'] === 'privilege') {
168 167
                     return array(
169 168
                         'location' => 'privilege',
170 169
                         'name' => $name
Please login to merge, or discard this patch.
src/midcom/datamanager/extension/type/privilege.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function get_effective_value(array $options,$object = null)
70 70
     {
71
-        if (!$object)
72
-        {
71
+        if (!$object) {
73 72
             $defaults = midcom::get()->auth->acl->get_default_privileges();
74 73
             return(($defaults[$options['privilege_name']] === MIDCOM_PRIVILEGE_ALLOW));
75 74
         }
@@ -112,8 +111,7 @@  discard block
 block discarded – undo
112 111
         $object_found = false;
113 112
         $help_obj = $object;
114 113
 
115
-        while (!$object_found)
116
-        {
114
+        while (!$object_found) {
117 115
             if ($help_obj instanceof dbacontainer) {
118 116
                 $object_found = true;
119 117
                 return $help_obj->get_value();
Please login to merge, or discard this patch.
src/midcom/datamanager/storage/privilege.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                     $this->config['type_config']['privilege_name'],
23 23
                     $this->config['type_config']['assignee'],
24 24
                     $this->config['type_config']['classname']
25
-                  );
25
+                    );
26 26
 
27 27
         return $source->__get('value');
28 28
     }
Please login to merge, or discard this patch.