@@ -105,6 +105,6 @@ |
||
105 | 105 | */ |
106 | 106 | private function get_viewonline_url() |
107 | 107 | { |
108 | - return ($this->auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel')) ? append_sid("{$this->phpbb_root_path}viewonline." . $this->php_ext) : ''; |
|
108 | + return ($this->auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel')) ? append_sid("{$this->phpbb_root_path}viewonline.".$this->php_ext) : ''; |
|
109 | 109 | } |
110 | 110 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function get_access_key() |
52 | 52 | { |
53 | - return sha1($this->user->data['user_form_salt'] . 'filemanager'); |
|
53 | + return sha1($this->user->data['user_form_salt'].'filemanager'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | extract($this->phpbb_dispatcher->trigger_event('blitze_sitemaker.acp_save_settings')); |
148 | 148 | |
149 | - $this->trigger_error($this->translator->lang('SETTINGS_SAVED') . adm_back_link($this->u_action)); |
|
149 | + $this->trigger_error($this->translator->lang('SETTINGS_SAVED').adm_back_link($this->u_action)); |
|
150 | 150 | } |
151 | 151 | } |
152 | 152 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | $style_prefs = (array) json_decode($this->config_text->get('sm_layout_prefs'), true); |
171 | 171 | |
172 | - $result = $this->db->sql_query('SELECT style_id, style_name FROM ' . STYLES_TABLE); |
|
172 | + $result = $this->db->sql_query('SELECT style_id, style_name FROM '.STYLES_TABLE); |
|
173 | 173 | |
174 | 174 | $styles = array(); |
175 | 175 | while ($row = $this->db->sql_fetchrow($result)) |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $path = dirname($path); |
237 | 237 | $name = basename($path); |
238 | 238 | |
239 | - $layouts[$name] = $this->phpbb_root_path . $path . '/'; |
|
239 | + $layouts[$name] = $this->phpbb_root_path.$path.'/'; |
|
240 | 240 | } |
241 | 241 | ksort($layouts); |
242 | 242 | |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | $id = $entity->get_menu_id(); |
290 | 290 | $name = $entity->get_menu_name(); |
291 | 291 | $selected = ($id == $this->config['sm_navbar_menu']) ? ' selected="selected"' : ''; |
292 | - $options .= '<option value="' . $id . '"' . $selected . '>' . $name . '</option>'; |
|
292 | + $options .= '<option value="'.$id.'"'.$selected.'>'.$name.'</option>'; |
|
293 | 293 | } |
294 | 294 | |
295 | 295 | return $options; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $sql = "SELECT * |
81 | 81 | FROM $this->items_table |
82 | - WHERE $this->pk = " . (int) $node_id ; |
|
82 | + WHERE $this->pk = ".(int) $node_id; |
|
83 | 83 | $result = $this->db->sql_query($sql); |
84 | 84 | $row = $this->db->sql_fetchrow($result); |
85 | 85 | $this->db->sql_freeresult($result); |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | $this->items_table => 'i' |
109 | 109 | ), |
110 | 110 | 'WHERE' => array( |
111 | - 'i.depth ' . (($max_depth) ? " BETWEEN $start AND " . ($start + $max_depth) : ' >= ' . $start), |
|
112 | - (($this->sql_where) ? 'i.' . $this->sql_where : ''), |
|
111 | + 'i.depth '.(($max_depth) ? " BETWEEN $start AND ".($start + $max_depth) : ' >= '.$start), |
|
112 | + (($this->sql_where) ? 'i.'.$this->sql_where : ''), |
|
113 | 113 | ), |
114 | 114 | 'ORDER_BY' => 'i.left_id ASC', |
115 | 115 | ), |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @param \phpbb\template\twig\twig $template |
156 | 156 | * @param string $handle |
157 | 157 | */ |
158 | - public function display_list(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree') |
|
158 | + public function display_list(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree') |
|
159 | 159 | { |
160 | 160 | $prev_depth = 0; |
161 | 161 | $parental_depth = array(0 => -1); |
@@ -164,22 +164,22 @@ discard block |
||
164 | 164 | for ($i = 0, $size = sizeof($data); $i < $size; $i++) |
165 | 165 | { |
166 | 166 | $row = $data[$i]; |
167 | - $this_depth = $parental_depth[$row['parent_id']] + 1; |
|
168 | - $repeat = abs($prev_depth - $this_depth); |
|
167 | + $this_depth = $parental_depth[$row['parent_id']] + 1; |
|
168 | + $repeat = abs($prev_depth - $this_depth); |
|
169 | 169 | |
170 | - $tpl_data = array( |
|
170 | + $tpl_data = array( |
|
171 | 171 | 'PREV_DEPTH' => $prev_depth, |
172 | 172 | 'THIS_DEPTH' => $this_depth, |
173 | 173 | 'NUM_KIDS' => $this->count_descendants($row), |
174 | 174 | ); |
175 | 175 | |
176 | 176 | $template->assign_block_vars($handle, array_merge($tpl_data, array_change_key_case($row, CASE_UPPER))); |
177 | - $this->recursively_close_tags($repeat, $handle . '.close', $template); |
|
177 | + $this->recursively_close_tags($repeat, $handle.'.close', $template); |
|
178 | 178 | |
179 | 179 | $prev_depth = $this_depth; |
180 | 180 | $parental_depth[$row[$this->pk]] = $this_depth; |
181 | 181 | } |
182 | - $this->recursively_close_tags($prev_depth, 'close_' . $handle, $template); |
|
182 | + $this->recursively_close_tags($prev_depth, 'close_'.$handle, $template); |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
@@ -188,11 +188,11 @@ discard block |
||
188 | 188 | * @param \phpbb\template\twig\twig $template |
189 | 189 | * @return void |
190 | 190 | */ |
191 | - protected function recursively_close_tags($repeat, $handle, \phpbb\template\twig\twig &$template) |
|
191 | + protected function recursively_close_tags($repeat, $handle, \phpbb\template\twig\twig & $template) |
|
192 | 192 | { |
193 | 193 | for ($i = 0; $i < $repeat; $i++) |
194 | 194 | { |
195 | - $template->assign_block_vars('close_' . $handle, array()); |
|
195 | + $template->assign_block_vars('close_'.$handle, array()); |
|
196 | 196 | } |
197 | 197 | } |
198 | 198 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | */ |
259 | 259 | protected function get_padded_title($padding, $title) |
260 | 260 | { |
261 | - return (($padding) ? $padding . '⤷ ' : '') . $title; |
|
261 | + return (($padding) ? $padding.'⤷ ' : '').$title; |
|
262 | 262 | } |
263 | 263 | |
264 | 264 | /** |
@@ -270,6 +270,6 @@ discard block |
||
270 | 270 | protected function get_html_option(array $row, array $selected_ids, $title) |
271 | 271 | { |
272 | 272 | $selected = (in_array($row[$this->pk], $selected_ids)) ? ' selected="selected' : ''; |
273 | - return '<option value="' . $row[$this->pk] . '"' . $selected . '>' . $title . '</option>'; |
|
273 | + return '<option value="'.$row[$this->pk].'"'.$selected.'>'.$title.'</option>'; |
|
274 | 274 | } |
275 | 275 | } |