@@ -141,7 +141,7 @@ |
||
141 | 141 | */ |
142 | 142 | public function set_class($class) |
143 | 143 | { |
144 | - $this->class = ($class) ? ' ' . trim($class) : ''; |
|
144 | + $this->class = ($class) ? ' '.trim($class) : ''; |
|
145 | 145 | return $this; |
146 | 146 | } |
147 | 147 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | // @codeCoverageIgnoreStart |
23 | 23 | if (!function_exists('make_forum_select')) |
24 | 24 | { |
25 | - include($phpbb_root_path . 'includes/functions_admin.' . $php_ext); |
|
25 | + include($phpbb_root_path.'includes/functions_admin.'.$php_ext); |
|
26 | 26 | } |
27 | 27 | // @codeCoverageIgnoreEnd |
28 | 28 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $forum_options = array('' => 'ALL'); |
44 | 44 | foreach ($forumlist as $row) |
45 | 45 | { |
46 | - $forum_options[$row['forum_id']] = $row['padding'] . $row['forum_name']; |
|
46 | + $forum_options[$row['forum_id']] = $row['padding'].$row['forum_name']; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | return $forum_options; |
@@ -202,12 +202,12 @@ discard block |
||
202 | 202 | $this->store['sql_array']['SELECT'][] = 'tt.mark_time, ft.mark_time as forum_mark_time'; |
203 | 203 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
204 | 204 | 'FROM' => array(TOPICS_TRACK_TABLE => 'tt'), |
205 | - 'ON' => 'tt.user_id = ' . $this->user->data['user_id'] . ' AND t.topic_id = tt.topic_id' |
|
205 | + 'ON' => 'tt.user_id = '.$this->user->data['user_id'].' AND t.topic_id = tt.topic_id' |
|
206 | 206 | ); |
207 | 207 | |
208 | 208 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
209 | 209 | 'FROM' => array(FORUMS_TRACK_TABLE => 'ft'), |
210 | - 'ON' => 'ft.user_id = ' . $this->user->data['user_id'] . ' AND t.forum_id = ft.forum_id' |
|
210 | + 'ON' => 'ft.user_id = '.$this->user->data['user_id'].' AND t.forum_id = ft.forum_id' |
|
211 | 211 | ); |
212 | 212 | } |
213 | 213 | |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | { |
227 | 227 | if ($unix_start_time && $unix_stop_time) |
228 | 228 | { |
229 | - $this->store['sql_array']['WHERE'][] = (($mode == 'topic') ? 't.topic_time' : 'p.post_time') . " BETWEEN $unix_start_time AND $unix_stop_time"; |
|
229 | + $this->store['sql_array']['WHERE'][] = (($mode == 'topic') ? 't.topic_time' : 'p.post_time')." BETWEEN $unix_start_time AND $unix_stop_time"; |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | return $this; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | */ |
259 | 259 | public function set_sorting($sort_key, $sort_dir = 'DESC') |
260 | 260 | { |
261 | - $this->store['sql_array']['ORDER_BY'] = $sort_key . ' ' . $sort_dir; |
|
261 | + $this->store['sql_array']['ORDER_BY'] = $sort_key.' '.$sort_dir; |
|
262 | 262 | |
263 | 263 | return $this; |
264 | 264 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | { |
320 | 320 | if (!empty($column_id)) |
321 | 321 | { |
322 | - $this->store['sql_array']['WHERE'][] = (is_array($column_id)) ? $this->db->sql_in_set($column, $column_id) : $column . ' = ' . (int) $column_id; |
|
322 | + $this->store['sql_array']['WHERE'][] = (is_array($column_id)) ? $this->db->sql_in_set($column, $column_id) : $column.' = '.(int) $column_id; |
|
323 | 323 | } |
324 | 324 | } |
325 | 325 | |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | { |
331 | 331 | if ($check_visibility) |
332 | 332 | { |
333 | - $this->store['sql_array']['WHERE'][] = 't.topic_time <= ' . time(); |
|
333 | + $this->store['sql_array']['WHERE'][] = 't.topic_time <= '.time(); |
|
334 | 334 | $this->store['sql_array']['WHERE'][] = $this->content_visibility->get_global_visibility_sql('topic', $this->ex_fid_ary, 't.'); |
335 | 335 | } |
336 | 336 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | // @codeCoverageIgnoreStart |
64 | 64 | if (!function_exists('validate_config_vars')) |
65 | 65 | { |
66 | - include($this->phpbb_root_path . 'includes/functions_acp.' . $this->php_ext); |
|
66 | + include($this->phpbb_root_path.'includes/functions_acp.'.$this->php_ext); |
|
67 | 67 | } |
68 | 68 | // @codeCoverageIgnoreEnd |
69 | 69 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | // @codeCoverageIgnoreStart |
86 | 86 | if (!function_exists('validate_config_vars')) |
87 | 87 | { |
88 | - include($this->phpbb_root_path . 'includes/functions_acp.' . $this->php_ext); |
|
88 | + include($this->phpbb_root_path.'includes/functions_acp.'.$this->php_ext); |
|
89 | 89 | } |
90 | 90 | // @codeCoverageIgnoreEnd |
91 | 91 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $vars['append'] = $this->append_field($vars); |
174 | 174 | |
175 | 175 | $type = explode(':', $vars['type']); |
176 | - $method = 'prep_' . $type[0] . '_field_for_display'; |
|
176 | + $method = 'prep_'.$type[0].'_field_for_display'; |
|
177 | 177 | |
178 | 178 | if (is_callable(array($this, $method))) |
179 | 179 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | $l_explain = ''; |
218 | 218 | if (!empty($vars['explain'])) |
219 | 219 | { |
220 | - $l_explain = (isset($vars['lang_explain'])) ? $this->translator->lang($vars['lang_explain']) : $this->translator->lang($vars['lang'] . '_EXPLAIN'); |
|
220 | + $l_explain = (isset($vars['lang_explain'])) ? $this->translator->lang($vars['lang_explain']) : $this->translator->lang($vars['lang'].'_EXPLAIN'); |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | return $l_explain; |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | { |
318 | 318 | $this->prep_checkbox_field_for_display($vars, $type, $field); |
319 | 319 | |
320 | - $vars['method'] ='build_multi_select'; |
|
320 | + $vars['method'] = 'build_multi_select'; |
|
321 | 321 | } |
322 | 322 | |
323 | 323 | /** |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | { |
142 | 142 | $this->set_display_fields(); |
143 | 143 | |
144 | - $view = 'S_' . strtoupper($this->settings['template']); |
|
144 | + $view = 'S_'.strtoupper($this->settings['template']); |
|
145 | 145 | $post_data = $this->get_post_data($topic_data); |
146 | 146 | $topic_data = array_values($topic_data); |
147 | 147 | |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | 'VIEWS' => $row['topic_views'], |
190 | 190 | 'S_UNREAD_TOPIC' => $this->is_unread_topic($forum_id, $topic_id, $row['topic_last_post_time']), |
191 | 191 | |
192 | - 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "f=$forum_id&t=$topic_id"), |
|
193 | - 'U_VIEWFORUM' => append_sid($this->phpbb_root_path . 'viewforum.' . $this->php_ext, "f=$forum_id"), |
|
194 | - 'U_NEW_POST' => append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "f=$forum_id&t=$topic_id&view=unread") . '#unread', |
|
195 | - 'U_LAST_POST' => append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "f=$forum_id&t=$topic_id&p=" . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'], |
|
192 | + 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path.'viewtopic.'.$this->php_ext, "f=$forum_id&t=$topic_id"), |
|
193 | + 'U_VIEWFORUM' => append_sid($this->phpbb_root_path.'viewforum.'.$this->php_ext, "f=$forum_id"), |
|
194 | + 'U_NEW_POST' => append_sid($this->phpbb_root_path.'viewtopic.'.$this->php_ext, "f=$forum_id&t=$topic_id&view=unread").'#unread', |
|
195 | + 'U_LAST_POST' => append_sid($this->phpbb_root_path.'viewtopic.'.$this->php_ext, "f=$forum_id&t=$topic_id&p=".$row['topic_last_post_id']).'#p'.$row['topic_last_post_id'], |
|
196 | 196 | )); |
197 | 197 | unset($topic_data[$i], $post_data[$topic_id]); |
198 | 198 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function get_default_avatar() |
106 | 106 | { |
107 | - return '<img src="' . $this->get_theme_path() . '/images/no_avatar.gif" alt="" />'; |
|
107 | + return '<img src="'.$this->get_theme_path().'/images/no_avatar.gif" alt="" />'; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function get_theme_path() |
115 | 115 | { |
116 | - return "{$this->web_path}styles/" . rawurlencode($this->user->style['style_path']) . '/theme'; |
|
116 | + return "{$this->web_path}styles/".rawurlencode($this->user->style['style_path']).'/theme'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | protected function set_corrected_paths() |
149 | 149 | { |
150 | 150 | // Determine board url - we may need it later |
151 | - $board_url = generate_board_url() . '/'; |
|
151 | + $board_url = generate_board_url().'/'; |
|
152 | 152 | |
153 | 153 | $corrected_path = $this->path_helper->get_web_root_path(); |
154 | 154 | $this->web_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? $board_url : $corrected_path; |
@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | 'USER_POSTS' => $this->user->data['user_posts'], |
69 | 69 | 'NEW_POSTS' => $this->get_new_posts_count(), |
70 | 70 | |
71 | - 'U_PROFILE' => append_sid($this->phpbb_root_path . 'memberlist.' . $this->php_ext, 'mode=viewprofile&u=' . $this->user->data['user_id']), |
|
72 | - 'U_SEARCH_NEW' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, 'search_id=newposts'), |
|
73 | - 'U_SEARCH_SELF' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, 'search_id=egosearch'), |
|
74 | - 'U_PRIVATE_MSG' => append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, 'i=pm&folder=inbox'), |
|
75 | - 'U_LOGOUT' => append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, 'mode=logout', true, $this->user->session_id), |
|
71 | + 'U_PROFILE' => append_sid($this->phpbb_root_path.'memberlist.'.$this->php_ext, 'mode=viewprofile&u='.$this->user->data['user_id']), |
|
72 | + 'U_SEARCH_NEW' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, 'search_id=newposts'), |
|
73 | + 'U_SEARCH_SELF' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, 'search_id=egosearch'), |
|
74 | + 'U_PRIVATE_MSG' => append_sid($this->phpbb_root_path.'ucp.'.$this->php_ext, 'i=pm&folder=inbox'), |
|
75 | + 'U_LOGOUT' => append_sid($this->phpbb_root_path.'ucp.'.$this->php_ext, 'mode=logout', true, $this->user->session_id), |
|
76 | 76 | 'U_MCP' => $this->get_mcp_url(), |
77 | 77 | 'U_ACP' => $this->get_acp_url(), |
78 | 78 | )); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | protected function get_mcp_url() |
101 | 101 | { |
102 | - return ($this->auth->acl_get('m_')) ? append_sid($this->phpbb_root_path . 'mcp.' . $this->php_ext, false, true, $this->user->session_id) : ''; |
|
102 | + return ($this->auth->acl_get('m_')) ? append_sid($this->phpbb_root_path.'mcp.'.$this->php_ext, false, true, $this->user->session_id) : ''; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | protected function get_acp_url() |
109 | 109 | { |
110 | - return ($this->auth->acl_get('a_')) ? append_sid($this->phpbb_root_path . 'adm/index.' . $this->php_ext, 'i=-blitze-sitemaker-acp-menu_module', true, $this->user->session_id) : ''; |
|
110 | + return ($this->auth->acl_get('a_')) ? append_sid($this->phpbb_root_path.'adm/index.'.$this->php_ext, 'i=-blitze-sitemaker-acp-menu_module', true, $this->user->session_id) : ''; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | POSTS_TABLE => 'p', |
121 | 121 | ), |
122 | 122 | 'WHERE' => array( |
123 | - 't.topic_id = p.topic_id AND p.post_time > ' . $this->user->data['user_lastvisit'], |
|
123 | + 't.topic_id = p.topic_id AND p.post_time > '.$this->user->data['user_lastvisit'], |
|
124 | 124 | ), |
125 | 125 | ); |
126 | 126 |