@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | if (!function_exists('phpbb_get_user_avatar')) |
64 | 64 | { |
65 | - include($phpbb_root_path . 'includes/functions_display.' . $php_ext); |
|
65 | + include($phpbb_root_path.'includes/functions_display.'.$php_ext); |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | */ |
100 | 100 | protected function member_posts(array $row) |
101 | 101 | { |
102 | - $u_posts = append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, "author_id={$row['user_id']}&sr=posts" . $this->explain_range); |
|
103 | - $user_posts = '<a href="' . $u_posts . '">' . $row['user_posts'] . '</a>'; |
|
102 | + $u_posts = append_sid($this->phpbb_root_path.'search.'.$this->php_ext, "author_id={$row['user_id']}&sr=posts".$this->explain_range); |
|
103 | + $user_posts = '<a href="'.$u_posts.'">'.$row['user_posts'].'</a>'; |
|
104 | 104 | |
105 | 105 | return array( |
106 | 106 | 'USERNAME' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']), |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | 'WHERE' => $this->db->sql_in_set('u.user_type', array(USER_NORMAL, USER_FOUNDER)), |
169 | 169 | ); |
170 | 170 | |
171 | - $sql_method = 'set_' . $this->settings['query_type'] . '_sql'; |
|
171 | + $sql_method = 'set_'.$this->settings['query_type'].'_sql'; |
|
172 | 172 | call_user_func_array(array($this, $sql_method), array(&$sql_ary)); |
173 | 173 | |
174 | 174 | $this->set_range_sql($sql_ary); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $this->info_header = ''; |
199 | 199 | $this->view_mode = 'member_bots'; |
200 | 200 | |
201 | - $sql_ary['WHERE'] = 'u.user_type = ' . USER_IGNORE; |
|
201 | + $sql_ary['WHERE'] = 'u.user_type = '.USER_IGNORE; |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | protected function set_tenured_sql(array &$sql_ary) |
208 | 208 | { |
209 | 209 | $sql_ary['SELECT'] .= ', u.user_regdate as member_date'; |
210 | - $sql_ary['ORDER_BY'] = 'u.user_regdate ' . (($this->settings['query_type'] == 'tenured') ? 'ASC' : 'DESC'); |
|
210 | + $sql_ary['ORDER_BY'] = 'u.user_regdate '.(($this->settings['query_type'] == 'tenured') ? 'ASC' : 'DESC'); |
|
211 | 211 | |
212 | 212 | $this->sql_date_field = 'u.user_regdate'; |
213 | 213 | $this->settings['date_range'] = ''; |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $sql_ary['SELECT'] .= ', COUNT(p.post_id) as user_posts'; |
231 | 231 | $sql_ary['FROM'] += array(TOPICS_TABLE => 't'); |
232 | 232 | $sql_ary['FROM'] += array(POSTS_TABLE => 'p'); |
233 | - $sql_ary['WHERE'] .= ' AND ' . time() . ' > t.topic_time AND t.topic_id = p.topic_id AND p.post_visibility = ' . ITEM_APPROVED . ' AND p.poster_id = u.user_id'; |
|
233 | + $sql_ary['WHERE'] .= ' AND '.time().' > t.topic_time AND t.topic_id = p.topic_id AND p.post_visibility = '.ITEM_APPROVED.' AND p.poster_id = u.user_id'; |
|
234 | 234 | $sql_ary['GROUP_BY'] = 'u.user_id'; |
235 | 235 | $sql_ary['ORDER_BY'] = 'user_posts DESC, u.username ASC'; |
236 | 236 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | if ($this->settings['date_range'] && $this->sql_date_field) |
248 | 248 | { |
249 | 249 | $range = $this->date_range->get($this->settings['date_range']); |
250 | - $this->explain_range = '&date=' . $range['date']; |
|
250 | + $this->explain_range = '&date='.$range['date']; |
|
251 | 251 | |
252 | 252 | $sql_ary['WHERE'] .= " AND {$this->sql_date_field} BETWEEN {$range['start']} AND {$range['stop']}"; |
253 | 253 | } |
@@ -59,6 +59,6 @@ |
||
59 | 59 | $class_name = get_class($block_instance); |
60 | 60 | list($namespace, $extension) = explode('\\', $class_name); |
61 | 61 | |
62 | - return $namespace . '/' . $extension; |
|
62 | + return $namespace.'/'.$extension; |
|
63 | 63 | } |
64 | 64 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function create($action) |
65 | 65 | { |
66 | - $action_class = 'blitze\\sitemaker\\services\\blocks\\action\\' . $action; |
|
66 | + $action_class = 'blitze\\sitemaker\\services\\blocks\\action\\'.$action; |
|
67 | 67 | |
68 | 68 | if (!class_exists($action_class)) |
69 | 69 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $time = $this->user->create_datetime($this->time); |
39 | 39 | $now = phpbb_gmgetdate($time->getTimestamp() + $time->getOffset()); |
40 | 40 | |
41 | - $method = 'get_' . $range; |
|
41 | + $method = 'get_'.$range; |
|
42 | 42 | $data = array( |
43 | 43 | 'start' => 0, |
44 | 44 | 'stop' => 0, |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | $default_lang_files = $finder |
65 | 65 | ->prefix($lang_file) |
66 | 66 | ->suffix(".$this->php_ext") |
67 | - ->extension_directory('/language/' . basename($this->config['default_lang'])) |
|
68 | - ->core_path('language/' . basename($this->config['default_lang']) . '/') |
|
67 | + ->extension_directory('/language/'.basename($this->config['default_lang'])) |
|
68 | + ->core_path('language/'.basename($this->config['default_lang']).'/') |
|
69 | 69 | ->find(); |
70 | 70 | } |
71 | 71 | |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | $user_lang_files = $finder |
85 | 85 | ->prefix($lang_file) |
86 | 86 | ->suffix(".$this->php_ext") |
87 | - ->extension_directory('/language/' . $this->user->lang_name) |
|
88 | - ->core_path('language/' . $this->user->lang_name . '/') |
|
87 | + ->extension_directory('/language/'.$this->user->lang_name) |
|
88 | + ->core_path('language/'.$this->user->lang_name.'/') |
|
89 | 89 | ->find(); |
90 | 90 | |
91 | 91 | $lang_files = array_unique(array_merge($user_lang_files, $english_lang_files, $default_lang_files)); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | if (isset($allowed_fields[$field])) |
36 | 36 | { |
37 | - $mutator = 'set_' . $field; |
|
37 | + $mutator = 'set_'.$field; |
|
38 | 38 | $entity->$mutator($allowed_fields[$field]); |
39 | 39 | $item_mapper->save($entity); |
40 | 40 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function create($action) |
48 | 48 | { |
49 | - $action_class = 'blitze\\sitemaker\\services\\menus\\action\\' . $action; |
|
49 | + $action_class = 'blitze\\sitemaker\\services\\menus\\action\\'.$action; |
|
50 | 50 | |
51 | 51 | if (!class_exists($action_class)) |
52 | 52 | { |
@@ -14,12 +14,12 @@ |
||
14 | 14 | class nestedset extends builder |
15 | 15 | { |
16 | 16 | /** |
17 | - * Construct |
|
18 | - * |
|
19 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
20 | - * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
|
21 | - * @param string $table_name Table name |
|
22 | - */ |
|
17 | + * Construct |
|
18 | + * |
|
19 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
20 | + * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
|
21 | + * @param string $table_name Table name |
|
22 | + */ |
|
23 | 23 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock, $table_name) |
24 | 24 | { |
25 | 25 | parent::__construct( |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | if (!class_exists('acp_forums')) |
56 | 56 | { |
57 | - include($this->phpbb_root_path . 'includes/acp/acp_forums.' . $this->php_ext); |
|
57 | + include($this->phpbb_root_path.'includes/acp/acp_forums.'.$this->php_ext); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | $translator->add_lang('acp/forums'); |