@@ -15,12 +15,12 @@ |
||
15 | 15 | class out_of_bounds extends base |
16 | 16 | { |
17 | 17 | /** |
18 | - * Translate this exception |
|
19 | - * |
|
20 | - * @param \phpbb\user $user |
|
21 | - * @return array|string |
|
22 | - * @access public |
|
23 | - */ |
|
18 | + * Translate this exception |
|
19 | + * |
|
20 | + * @param \phpbb\user $user |
|
21 | + * @return array|string |
|
22 | + * @access public |
|
23 | + */ |
|
24 | 24 | public function get_message(\phpbb\user $user) |
25 | 25 | { |
26 | 26 | return $this->translate_portions($user, $this->message_full, 'EXCEPTION_OUT_OF_BOUNDS'); |
@@ -39,8 +39,8 @@ |
||
39 | 39 | */ |
40 | 40 | public function create($type, $mapper = '') |
41 | 41 | { |
42 | - $mapper_class = 'blitze\\sitemaker\\model\\' . $type . '\\mapper\\' . $mapper; |
|
43 | - $collection = 'blitze\\sitemaker\\model\\' . $type . '\\collections\\' . $mapper; |
|
42 | + $mapper_class = 'blitze\\sitemaker\\model\\'.$type.'\\mapper\\'.$mapper; |
|
43 | + $collection = 'blitze\\sitemaker\\model\\'.$type.'\\collections\\'.$mapper; |
|
44 | 44 | |
45 | 45 | return new $mapper_class($this->db, new $collection, $this, $this->mapper_tables[$mapper], $this->config); |
46 | 46 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | if (!function_exists('make_forum_select')) |
23 | 23 | { |
24 | - include($phpbb_root_path . 'includes/functions_admin.' . $php_ext); // @codeCoverageIgnore |
|
24 | + include($phpbb_root_path.'includes/functions_admin.'.$php_ext); // @codeCoverageIgnore |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $forum_options = array('' => 'ALL'); |
42 | 42 | foreach ($forumlist as $row) |
43 | 43 | { |
44 | - $forum_options[$row['forum_id']] = $row['padding'] . $row['forum_name']; |
|
44 | + $forum_options[$row['forum_id']] = $row['padding'].$row['forum_name']; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return $forum_options; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | if (in_array($topic_type, array(POST_STICKY, POST_ANNOUNCE))) |
144 | 144 | { |
145 | - $this->store['sql_array']['WHERE'][] = '(t.topic_time_limit > 0 AND (t.topic_time + t.topic_time_limit) < ' . time() . ')'; |
|
145 | + $this->store['sql_array']['WHERE'][] = '(t.topic_time_limit > 0 AND (t.topic_time + t.topic_time_limit) < '.time().')'; |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | return $this; |
@@ -160,13 +160,13 @@ discard block |
||
160 | 160 | $this->store['sql_array']['SELECT'][] = 'tw.notify_status'; |
161 | 161 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
162 | 162 | 'FROM' => array(TOPICS_WATCH_TABLE => 'tw'), |
163 | - 'ON' => 'tw.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.topic_id = tw.topic_id' |
|
163 | + 'ON' => 'tw.user_id = '.(int) $this->user->data['user_id'].' AND t.topic_id = tw.topic_id' |
|
164 | 164 | ); |
165 | 165 | |
166 | 166 | $this->store['sql_array']['SELECT'][] = 'fw.notify_status'; |
167 | 167 | $this->store['sql_array']['LEFT JOIN'][] = array( |
168 | 168 | 'FROM' => array(FORUMS_WATCH_TABLE => 'fw'), |
169 | - 'ON' => '(fw.forum_id = f.forum_id AND fw.user_id = ' . (int) $this->user->data['user_id'] . ')', |
|
169 | + 'ON' => '(fw.forum_id = f.forum_id AND fw.user_id = '.(int) $this->user->data['user_id'].')', |
|
170 | 170 | ); |
171 | 171 | } |
172 | 172 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $this->store['sql_array']['SELECT'][] = 'bm.topic_id as bookmarked'; |
186 | 186 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
187 | 187 | 'FROM' => array(BOOKMARKS_TABLE => 'bm'), |
188 | - 'ON' => 'bm.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.topic_id = bm.topic_id' |
|
188 | + 'ON' => 'bm.user_id = '.(int) $this->user->data['user_id'].' AND t.topic_id = bm.topic_id' |
|
189 | 189 | ); |
190 | 190 | } |
191 | 191 | |
@@ -206,12 +206,12 @@ discard block |
||
206 | 206 | $this->store['sql_array']['SELECT'][] = 'tt.mark_time, ft.mark_time as forum_mark_time'; |
207 | 207 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
208 | 208 | 'FROM' => array(TOPICS_TRACK_TABLE => 'tt'), |
209 | - 'ON' => 'tt.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.topic_id = tt.topic_id' |
|
209 | + 'ON' => 'tt.user_id = '.(int) $this->user->data['user_id'].' AND t.topic_id = tt.topic_id' |
|
210 | 210 | ); |
211 | 211 | |
212 | 212 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
213 | 213 | 'FROM' => array(FORUMS_TRACK_TABLE => 'ft'), |
214 | - 'ON' => 'ft.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.forum_id = ft.forum_id' |
|
214 | + 'ON' => 'ft.user_id = '.(int) $this->user->data['user_id'].' AND t.forum_id = ft.forum_id' |
|
215 | 215 | ); |
216 | 216 | } |
217 | 217 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | { |
231 | 231 | if ($unix_start_time && $unix_stop_time) |
232 | 232 | { |
233 | - $this->store['sql_array']['WHERE'][] = (($mode == 'topic') ? 't.topic_time' : 'p.post_time') . " BETWEEN $unix_start_time AND $unix_stop_time"; |
|
233 | + $this->store['sql_array']['WHERE'][] = (($mode == 'topic') ? 't.topic_time' : 'p.post_time')." BETWEEN $unix_start_time AND $unix_stop_time"; |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | return $this; |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | */ |
263 | 263 | public function set_sorting($sort_key, $sort_dir = 'DESC') |
264 | 264 | { |
265 | - $this->store['sql_array']['ORDER_BY'] = $sort_key . ' ' . $sort_dir; |
|
265 | + $this->store['sql_array']['ORDER_BY'] = $sort_key.' '.$sort_dir; |
|
266 | 266 | |
267 | 267 | return $this; |
268 | 268 | } |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | { |
324 | 324 | if (!empty($column_id)) |
325 | 325 | { |
326 | - $this->store['sql_array']['WHERE'][] = (is_array($column_id)) ? $this->db->sql_in_set($column, $column_id) : $column . ' = ' . (int) $column_id; |
|
326 | + $this->store['sql_array']['WHERE'][] = (is_array($column_id)) ? $this->db->sql_in_set($column, $column_id) : $column.' = '.(int) $column_id; |
|
327 | 327 | } |
328 | 328 | } |
329 | 329 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | { |
335 | 335 | if ($check_visibility) |
336 | 336 | { |
337 | - $this->store['sql_array']['WHERE'][] = 't.topic_time <= ' . time(); |
|
337 | + $this->store['sql_array']['WHERE'][] = 't.topic_time <= '.time(); |
|
338 | 338 | $this->store['sql_array']['WHERE'][] = $this->content_visibility->get_global_visibility_sql('topic', $this->ex_fid_ary, 't.'); |
339 | 339 | } |
340 | 340 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | if (!class_exists('acp_forums')) |
66 | 66 | { |
67 | - include($this->phpbb_root_path . 'includes/acp/acp_forums.' . $this->php_ext); |
|
67 | + include($this->phpbb_root_path.'includes/acp/acp_forums.'.$this->php_ext); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $this->user->add_lang('acp/forums'); |
@@ -156,8 +156,7 @@ |
||
156 | 156 | if (!empty($returned_data['content'])) |
157 | 157 | { |
158 | 158 | $content = $returned_data['content']; |
159 | - } |
|
160 | - else if ($edit_mode) |
|
159 | + } else if ($edit_mode) |
|
161 | 160 | { |
162 | 161 | $returned_data['status'] = 0; |
163 | 162 | $content = $this->user->lang('BLOCK_NO_DATA'); |
@@ -144,8 +144,7 @@ |
||
144 | 144 | { |
145 | 145 | $content = $this->user->lang('BLOCK_NO_DATA'); |
146 | 146 | $returned_data['status'] = 0; |
147 | - } |
|
148 | - else |
|
147 | + } else |
|
149 | 148 | { |
150 | 149 | $content = $returned_data['content']; |
151 | 150 | } |
@@ -71,8 +71,7 @@ discard block |
||
71 | 71 | if (!empty($collection)) |
72 | 72 | { |
73 | 73 | return $collection->get_entities(); |
74 | - } |
|
75 | - else |
|
74 | + } else |
|
76 | 75 | { |
77 | 76 | return array(); |
78 | 77 | } |
@@ -122,8 +121,7 @@ discard block |
||
122 | 121 | if (!$has_blocks && !$this->route_is_customized($entity->to_array())) |
123 | 122 | { |
124 | 123 | $this->route_mapper->delete($entity); |
125 | - } |
|
126 | - else |
|
124 | + } else |
|
127 | 125 | { |
128 | 126 | $entity->set_has_blocks($has_blocks); |
129 | 127 | $this->route_mapper->save($entity); |
@@ -45,9 +45,9 @@ |
||
45 | 45 | public function display(array $settings, $edit_mode = false) |
46 | 46 | { |
47 | 47 | $content = ''; |
48 | - $content .= $this->user->lang('TOTAL_POSTS_COUNT', (int) $this->config['num_posts']) . '<br />'; |
|
49 | - $content .= $this->user->lang('TOTAL_TOPICS', (int) $this->config['num_topics']) . '<br />'; |
|
50 | - $content .= $this->user->lang('TOTAL_USERS', (int) $this->config['num_users']) . '<br />'; |
|
48 | + $content .= $this->user->lang('TOTAL_POSTS_COUNT', (int) $this->config['num_posts']).'<br />'; |
|
49 | + $content .= $this->user->lang('TOTAL_TOPICS', (int) $this->config['num_topics']).'<br />'; |
|
50 | + $content .= $this->user->lang('TOTAL_USERS', (int) $this->config['num_users']).'<br />'; |
|
51 | 51 | $content .= $this->user->lang('NEWEST_USER', get_username_string('full', $this->config['newest_user_id'], $this->config['newest_username'], $this->config['newest_user_colour'])); |
52 | 52 | |
53 | 53 | $this->template->assign_var('NEWEST_USER', false); |