@@ -50,6 +50,6 @@ |
||
| 50 | 50 | $indexer = new org_openpsa_documents_midcom_indexer($this->_topic); |
| 51 | 51 | $indexer->index($controller->get_datamanager()); |
| 52 | 52 | |
| 53 | - return $controller->get_datamanager()->get_storage()->get_value()->name. "/"; |
|
| 53 | + return $controller->get_datamanager()->get_storage()->get_value()->name . "/"; |
|
| 54 | 54 | } |
| 55 | 55 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Get the calendar root event |
| 24 | 24 | if ($root_event = org_openpsa_calendar_interface::find_root_event()) { |
| 25 | - $field =& $schemadb->get('default')->get_field('calendar'); |
|
| 25 | + $field = & $schemadb->get('default')->get_field('calendar'); |
|
| 26 | 26 | $field['type_config']['privilege_object'] = $root_event; |
| 27 | 27 | $field['type_config']['assignee'] = 'group:' . $group->guid; |
| 28 | 28 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | // Get the calendar root event |
| 24 | 24 | if ($root_event = org_openpsa_calendar_interface::find_root_event()) { |
| 25 | - $field =& $schemadb->get('default')->get_field('calendar'); |
|
| 25 | + $field = & $schemadb->get('default')->get_field('calendar'); |
|
| 26 | 26 | $field['type_config']['privilege_object'] = $root_event; |
| 27 | 27 | $field['type_config']['assignee'] = 'user:' . $person->guid; |
| 28 | 28 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function form_widget_simple(FormView $view, array $data) |
| 19 | 19 | { |
| 20 | - if ( !empty($data['value']) |
|
| 20 | + if (!empty($data['value']) |
|
| 21 | 21 | || is_numeric($data['value'])) { |
| 22 | 22 | return $data['value']; |
| 23 | 23 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | case 'save': |
| 45 | 45 | $this->_reset_password($data['controller']->get_form_values()); |
| 46 | 46 | $data['processing_msg'] = $this->_l10n->get('password reset, mail sent.'); |
| 47 | - $data['processing_msg_raw']= 'password reset, mail sent.'; |
|
| 47 | + $data['processing_msg_raw'] = 'password reset, mail sent.'; |
|
| 48 | 48 | $this->_success = true; |
| 49 | 49 | break; |
| 50 | 50 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | ]); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if ( $this->_article->topic === $this->_topic->id |
|
| 49 | + if ($this->_article->topic === $this->_topic->id |
|
| 50 | 50 | && $this->_article->can_do('midgard:delete')) { |
| 51 | 51 | $delete = $this->get_workflow('delete', ['object' => $this->_article]); |
| 52 | 52 | $buttons[] = $delete->get_button("delete/{$this->_article->guid}/"); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $this->_datamanager->set_storage($this->_article); |
| 115 | 115 | |
| 116 | 116 | $arg = $this->_article->name ?: $this->_article->guid; |
| 117 | - if ( $arg != 'index' |
|
| 117 | + if ($arg != 'index' |
|
| 118 | 118 | && $this->_config->get('hide_navigation')) { |
| 119 | 119 | $this->add_breadcrumb("{$arg}/", $this->_article->title); |
| 120 | 120 | } |
@@ -124,13 +124,13 @@ discard block |
||
| 124 | 124 | midcom::get()->metadata->set_request_metadata($this->_article->metadata->revised, $this->_article->guid); |
| 125 | 125 | $this->bind_view_to_object($this->_article, $this->_datamanager->get_schema()->get_name()); |
| 126 | 126 | |
| 127 | - if ( $this->_config->get('indexinnav') |
|
| 127 | + if ($this->_config->get('indexinnav') |
|
| 128 | 128 | || $this->_config->get('autoindex') |
| 129 | 129 | || $this->_article->name != 'index') { |
| 130 | 130 | $this->set_active_leaf($this->_article->id); |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - if ( $this->_config->get('folder_in_title') |
|
| 133 | + if ($this->_config->get('folder_in_title') |
|
| 134 | 134 | && $this->_topic->extra != $this->_article->title) { |
| 135 | 135 | midcom::get()->head->set_pagetitle("{$this->_topic->extra}: {$this->_article->title}"); |
| 136 | 136 | } else { |
@@ -7,6 +7,6 @@ |
||
| 7 | 7 | <?php |
| 8 | 8 | |
| 9 | 9 | } else { |
| 10 | - echo "<p class=\"stub\">" . $data['l10n']->get('this page is stub')."</p>"; |
|
| 10 | + echo "<p class=\"stub\">" . $data['l10n']->get('this page is stub') . "</p>"; |
|
| 11 | 11 | } |
| 12 | 12 | ?> |
| 13 | 13 | \ No newline at end of file |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | </td> |
| 23 | 23 | <td class="revisor"> |
| 24 | 24 | <?php |
| 25 | - if ( $history['user'] |
|
| 25 | + if ($history['user'] |
|
| 26 | 26 | && $user = midcom::get()->auth->get_user($history['user'])) { |
| 27 | 27 | $person_label = org_openpsa_widgets_contact::get($user->guid)->show_inline(); |
| 28 | 28 | echo " {$person_label}\n"; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $formatter = $data['l10n']->get_formatter(); |
| 30 | 30 | foreach ($data['items'] as $item) { |
| 31 | 31 | echo "<tr>\n"; |
| 32 | - $date = (int)$item->get_date('U'); |
|
| 32 | + $date = (int) $item->get_date('U'); |
|
| 33 | 33 | if ($date == 0) { |
| 34 | 34 | echo " <td>" . $data['l10n']->get('n/a') . "</td>\n"; |
| 35 | 35 | } else { |