@@ -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']) { |
@@ -244,8 +244,8 @@ |
||
| 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 | } |
@@ -163,8 +163,7 @@ |
||
| 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 |
@@ -68,8 +68,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -22,7 +22,7 @@ |
||
| 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 | } |