@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $sql = "SELECT * |
91 | 91 | FROM $this->items_table |
92 | - WHERE $this->pk = " . (int) $node_id ; |
|
92 | + WHERE $this->pk = ".(int) $node_id; |
|
93 | 93 | $result = $this->db->sql_query($sql); |
94 | 94 | $row = $this->db->sql_fetchrow($result); |
95 | 95 | $this->db->sql_freeresult($result); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $this->items_table => 'i' |
119 | 119 | ), |
120 | 120 | 'WHERE' => array( |
121 | - 'i.depth ' . (($max_depth) ? ' BETWEEN ' . (int) $start . ' AND ' . (int) ($start + $max_depth) : ' >= ' . (int) $start), |
|
121 | + 'i.depth '.(($max_depth) ? ' BETWEEN '.(int) $start.' AND '.(int) ($start + $max_depth) : ' >= '.(int) $start), |
|
122 | 122 | $this->sql_where, |
123 | 123 | ), |
124 | 124 | 'ORDER_BY' => 'i.left_id ASC', |
@@ -174,22 +174,22 @@ discard block |
||
174 | 174 | for ($i = 0, $size = sizeof($data); $i < $size; $i++) |
175 | 175 | { |
176 | 176 | $row = $data[$i]; |
177 | - $this_depth = $parental_depth[$row[$this->column_parent_id]] + 1; |
|
178 | - $repeat = abs($prev_depth - $this_depth); |
|
177 | + $this_depth = $parental_depth[$row[$this->column_parent_id]] + 1; |
|
178 | + $repeat = abs($prev_depth - $this_depth); |
|
179 | 179 | |
180 | - $tpl_data = array( |
|
180 | + $tpl_data = array( |
|
181 | 181 | 'PREV_DEPTH' => $prev_depth, |
182 | 182 | 'THIS_DEPTH' => $this_depth, |
183 | 183 | 'NUM_KIDS' => $this->count_descendants($row), |
184 | 184 | ); |
185 | 185 | |
186 | 186 | $template->assign_block_vars($handle, array_merge($tpl_data, array_change_key_case($row, CASE_UPPER))); |
187 | - $this->recursively_close_tags($repeat, $handle . '.close', $template); |
|
187 | + $this->recursively_close_tags($repeat, $handle.'.close', $template); |
|
188 | 188 | |
189 | 189 | $prev_depth = $this_depth; |
190 | 190 | $parental_depth[$row[$this->pk]] = $this_depth; |
191 | 191 | } |
192 | - $this->recursively_close_tags($prev_depth, 'close_' . $handle, $template); |
|
192 | + $this->recursively_close_tags($prev_depth, 'close_'.$handle, $template); |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | { |
203 | 203 | for ($i = 0; $i < $repeat; $i++) |
204 | 204 | { |
205 | - $template->assign_block_vars('close_' . $handle, array()); |
|
205 | + $template->assign_block_vars('close_'.$handle, array()); |
|
206 | 206 | } |
207 | 207 | } |
208 | 208 | |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | */ |
269 | 269 | protected function get_padded_title($padding, $title) |
270 | 270 | { |
271 | - return (($padding) ? $padding . '⤷ ' : '') . $title; |
|
271 | + return (($padding) ? $padding.'⤷ ' : '').$title; |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | /** |
@@ -280,6 +280,6 @@ discard block |
||
280 | 280 | protected function get_html_option(array $row, array $selected_ids, $title) |
281 | 281 | { |
282 | 282 | $selected = (in_array($row[$this->pk], $selected_ids)) ? ' selected="selected' : ''; |
283 | - return '<option value="' . $row[$this->pk] . '"' . $selected . '>' . $title . '</option>'; |
|
283 | + return '<option value="'.$row[$this->pk].'"'.$selected.'>'.$title.'</option>'; |
|
284 | 284 | } |
285 | 285 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | 'S_POLL_ACTION' => $viewtopic_url, |
101 | 101 | 'S_FORM_TOKEN' => $this->sitemaker->get_form_key('posting'), |
102 | 102 | |
103 | - 'U_VIEW_RESULTS' => $viewtopic_url . '&view=viewpoll', |
|
103 | + 'U_VIEW_RESULTS' => $viewtopic_url.'&view=viewpoll', |
|
104 | 104 | )); |
105 | 105 | } |
106 | 106 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $post_id = (int) $topic_data['topic_first_post_id']; |
172 | 172 | |
173 | 173 | $sql = 'SELECT o.*, p.bbcode_bitfield, p.bbcode_uid |
174 | - FROM ' . POLL_OPTIONS_TABLE . ' o, ' . POSTS_TABLE . " p |
|
174 | + FROM ' . POLL_OPTIONS_TABLE.' o, '.POSTS_TABLE." p |
|
175 | 175 | WHERE o.topic_id = $topic_id |
176 | 176 | AND p.post_id = $post_id |
177 | 177 | AND p.topic_id = o.topic_id |
@@ -247,8 +247,8 @@ discard block |
||
247 | 247 | if ($this->user->data['is_registered']) |
248 | 248 | { |
249 | 249 | $sql = 'SELECT poll_option_id |
250 | - FROM ' . POLL_VOTES_TABLE . ' |
|
251 | - WHERE topic_id = ' . (int) $topic_id . ' |
|
250 | + FROM ' . POLL_VOTES_TABLE.' |
|
251 | + WHERE topic_id = ' . (int) $topic_id.' |
|
252 | 252 | AND vote_user_id = ' . (int) $this->user->data['user_id']; |
253 | 253 | $result = $this->db->sql_query($sql); |
254 | 254 | |
@@ -263,9 +263,9 @@ discard block |
||
263 | 263 | // Cookie based guest tracking ... I don't like this but hum ho |
264 | 264 | // it's oft requested. This relies on "nice" users who don't feel |
265 | 265 | // the need to delete cookies to mess with results. |
266 | - if ($this->request->is_set($this->config['cookie_name'] . '_poll_' . $topic_id, \phpbb\request\request_interface::COOKIE)) |
|
266 | + if ($this->request->is_set($this->config['cookie_name'].'_poll_'.$topic_id, \phpbb\request\request_interface::COOKIE)) |
|
267 | 267 | { |
268 | - $cur_voted_id = explode(',', $this->request->variable($this->config['cookie_name'] . '_poll_' . $topic_id, '', true, \phpbb\request\request_interface::COOKIE)); |
|
268 | + $cur_voted_id = explode(',', $this->request->variable($this->config['cookie_name'].'_poll_'.$topic_id, '', true, \phpbb\request\request_interface::COOKIE)); |
|
269 | 269 | $cur_voted_id = array_map('intval', $cur_voted_id); |
270 | 270 | } |
271 | 271 | } |
@@ -75,10 +75,10 @@ discard block |
||
75 | 75 | $row['num_kids'] = $this->count_descendants($row); |
76 | 76 | |
77 | 77 | $template->assign_block_vars($handle, array_change_key_case($row, CASE_UPPER)); |
78 | - $this->close_open_tags($template, $handle . '.close', abs($prev_depth - $this_depth)); |
|
78 | + $this->close_open_tags($template, $handle.'.close', abs($prev_depth - $this_depth)); |
|
79 | 79 | } |
80 | 80 | |
81 | - $this->close_open_tags($template, 'close_' . $handle, ($this_depth - $this->min_depth)); |
|
81 | + $this->close_open_tags($template, 'close_'.$handle, ($this_depth - $this->min_depth)); |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 | |
@@ -115,12 +115,12 @@ discard block |
||
115 | 115 | */ |
116 | 116 | protected function get_current_path() |
117 | 117 | { |
118 | - $curr_page = '/' . ltrim($this->user->page['page_dir'] . '/' . $this->user->page['page_name'], './'); |
|
118 | + $curr_page = '/'.ltrim($this->user->page['page_dir'].'/'.$this->user->page['page_name'], './'); |
|
119 | 119 | $curr_parts = explode('&', $this->user->page['query_string']); |
120 | 120 | |
121 | 121 | sort($curr_parts); |
122 | 122 | |
123 | - return $curr_page . '?' . join('&', $curr_parts); |
|
123 | + return $curr_page.'?'.join('&', $curr_parts); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | $is_current_item = $this->is_current_item($row); |
164 | 164 | $is_parent = $this->is_parent_of_current_item($row); |
165 | - $this_depth = $this->parental_depth[$row[$this->column_parent_id]] + 1; |
|
165 | + $this_depth = $this->parental_depth[$row[$this->column_parent_id]] + 1; |
|
166 | 166 | $leaf = $this->get_leaf_node($row, $is_current_item, $is_parent); |
167 | 167 | |
168 | 168 | $this->parental_depth[$row[$this->pk]] = $this_depth; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'MENU_ID' => $menu_id, |
98 | 98 | 'ICON_PICKER' => $this->icon->picker(), |
99 | 99 | 'T_PATH' => $this->phpbb_root_path, |
100 | - 'UA_AJAX_URL' => $this->controller_helper->route('blitze_sitemaker_menus_admin', array(), true, '') . '/', |
|
100 | + 'UA_AJAX_URL' => $this->controller_helper->route('blitze_sitemaker_menus_admin', array(), true, '').'/', |
|
101 | 101 | )); |
102 | 102 | |
103 | 103 | $this->tpl_name = 'acp_menu'; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $vars = array('bulk_options', 'forumslist'); |
152 | 152 | extract($this->phpbb_dispatcher->trigger_event('blitze.sitemaker.acp_add_bulk_menu_options', compact($vars))); |
153 | 153 | |
154 | - $bulk_options['FORUMS'] = $this->get_forums_string($forumslist); |
|
154 | + $bulk_options['FORUMS'] = $this->get_forums_string($forumslist); |
|
155 | 155 | |
156 | 156 | $this->template->assign_var('bulk_options', $bulk_options); |
157 | 157 | } |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | protected function get_forums_string(array $forumslist) |
164 | 164 | { |
165 | 165 | $forum_url = $this->controller_helper->route('blitze_sitemaker_forum', array(), true, '', UrlGeneratorInterface::RELATIVE_PATH); |
166 | - $text = $this->language->lang('FORUM') . '|' . $forum_url . "\n"; |
|
166 | + $text = $this->language->lang('FORUM').'|'.$forum_url."\n"; |
|
167 | 167 | foreach ($forumslist as $forum_id => $row) |
168 | 168 | { |
169 | - $text .= "\t" . str_replace(' ', "\t", $row['padding']); |
|
170 | - $text .= $row['forum_name'] . '|'; |
|
169 | + $text .= "\t".str_replace(' ', "\t", $row['padding']); |
|
170 | + $text .= $row['forum_name'].'|'; |
|
171 | 171 | $text .= "viewforum.{$this->php_ext}?f=$forum_id\n"; |
172 | 172 | } |
173 | 173 |