@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function add_viewonline_location(\phpbb\event\data $event) |
| 88 | 88 | { |
| 89 | - if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/content/') === 0) |
|
| 89 | + if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/content/') === 0) |
|
| 90 | 90 | { |
| 91 | 91 | $types = join('|', $this->content_types->get_forum_types()); |
| 92 | 92 | preg_match("/\/content\/($types)(\/[0-9]\/.*)?/is", $event['row']['session_page'], $match); |
@@ -126,13 +126,13 @@ discard block |
||
| 126 | 126 | { |
| 127 | 127 | $list = $this->content_types->get_all_types(); |
| 128 | 128 | |
| 129 | - $text = $this->language->lang('CONTENT_TYPES') . '|' . $this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n"; |
|
| 129 | + $text = $this->language->lang('CONTENT_TYPES').'|'.$this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n"; |
|
| 130 | 130 | |
| 131 | 131 | foreach ($list as $type => $entity) |
| 132 | 132 | { |
| 133 | 133 | /** @var \blitze\content\model\entity\type $entity */ |
| 134 | - $text .= "\t" . $entity->get_content_langname() . '|'; |
|
| 135 | - $text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n"; |
|
| 134 | + $text .= "\t".$entity->get_content_langname().'|'; |
|
| 135 | + $text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n"; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | return trim($text); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | foreach ($posts_data as $topic_id => $posts) |
| 140 | 140 | { |
| 141 | - $post_data = array_shift($posts); |
|
| 141 | + $post_data = array_shift($posts); |
|
| 142 | 142 | $topic_data = $topics_data[$topic_id]; |
| 143 | 143 | $topic_data = array_merge( |
| 144 | 144 | $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info), |
@@ -250,8 +250,8 @@ discard block |
||
| 250 | 250 | $this->pagination->generate_template_pagination( |
| 251 | 251 | array( |
| 252 | 252 | 'routes' => array( |
| 253 | - 'blitze_content_' . $route_type, |
|
| 254 | - 'blitze_content_' . $route_type . '_page', |
|
| 253 | + 'blitze_content_'.$route_type, |
|
| 254 | + 'blitze_content_'.$route_type.'_page', |
|
| 255 | 255 | ), |
| 256 | 256 | 'params' => $params, |
| 257 | 257 | ), |