@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | case 'files': |
| 153 | 153 | $sql = 'SELECT filetime AS time_field |
| 154 | - FROM ' . ATTACHMENTS_TABLE . ' |
|
| 154 | + FROM ' . ATTACHMENTS_TABLE . ' |
|
| 155 | 155 | WHERE is_orphan = 0 |
| 156 | 156 | AND filetime > ' . $lookback; |
| 157 | 157 | break; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $this->db->sql_freeresult($result); |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | - $data = array( |
|
| 172 | + $data = array( |
|
| 173 | 173 | $stat . '_total' => $total, |
| 174 | 174 | $stat . '_per_day' => $per_day, |
| 175 | 175 | $stat . '_chart' => join(',', $weekdays), |
@@ -77,8 +77,7 @@ |
||
| 77 | 77 | $return_data = $command->execute($style_id); |
| 78 | 78 | |
| 79 | 79 | $this->action_handler->clear_cache(); |
| 80 | - } |
|
| 81 | - catch (\blitze\sitemaker\exception\base $e) |
|
| 80 | + } catch (\blitze\sitemaker\exception\base $e) |
|
| 82 | 81 | { |
| 83 | 82 | $json_data['message'] = $e->get_message($this->user); |
| 84 | 83 | } |
@@ -58,12 +58,10 @@ |
||
| 58 | 58 | $return_data = $command->execute(); |
| 59 | 59 | |
| 60 | 60 | $this->action_handler->clear_cache(); |
| 61 | - } |
|
| 62 | - catch (\blitze\sitemaker\exception\base $e) |
|
| 61 | + } catch (\blitze\sitemaker\exception\base $e) |
|
| 63 | 62 | { |
| 64 | 63 | $return_data['message'] = $e->get_message($this->user); |
| 65 | - } |
|
| 66 | - catch (\Exception $e) |
|
| 64 | + } catch (\Exception $e) |
|
| 67 | 65 | { |
| 68 | 66 | $return_data['message'] = $this->user->lang($e->getMessage()); |
| 69 | 67 | } |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | if (!empty($data['.'][0]['TOTAL_USERS_ONLINE']) && !$this->request->is_set('f')) |
| 68 | 68 | { |
| 69 | - $l_online_users = $data['.'][0]['TOTAL_USERS_ONLINE']; |
|
| 69 | + $l_online_users = $data['.'][0]['TOTAL_USERS_ONLINE']; |
|
| 70 | 70 | $online_userlist = $data['.'][0]['LOGGED_IN_USER_LIST']; |
| 71 | 71 | $l_online_record = $data['.'][0]['RECORD_USERS']; |
| 72 | 72 | } |
@@ -41,8 +41,7 @@ |
||
| 41 | 41 | if (is_array($message)) |
| 42 | 42 | { |
| 43 | 43 | $this->message = (string) $message[0]; |
| 44 | - } |
|
| 45 | - else |
|
| 44 | + } else |
|
| 46 | 45 | { |
| 47 | 46 | $this->message = $message; |
| 48 | 47 | } |
@@ -142,8 +142,8 @@ |
||
| 142 | 142 | { |
| 143 | 143 | $url_info = parse_url($data['item_url']); |
| 144 | 144 | |
| 145 | - $data['url_path'] = (isset($url_info['path'])) ? $url_info['path'] : ''; |
|
| 146 | - $data['url_query'] = (isset($url_info['query'])) ? explode('&', $url_info['query']) : array(); |
|
| 145 | + $data['url_path'] = (isset($url_info['path'])) ? $url_info['path'] : ''; |
|
| 146 | + $data['url_query'] = (isset($url_info['query'])) ? explode('&', $url_info['query']) : array(); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
@@ -336,8 +336,7 @@ discard block |
||
| 336 | 336 | if ($this->settings['display_preview']) |
| 337 | 337 | { |
| 338 | 338 | $post_data = $this->forum->get_post_data($this->settings['display_preview']); |
| 339 | - } |
|
| 340 | - else |
|
| 339 | + } else |
|
| 341 | 340 | { |
| 342 | 341 | $post_data = array_fill_keys(array_keys($topic_data), array(array('post_text' => '', 'bbcode_uid' => '', 'bbcode_bitfield' => ''))); |
| 343 | 342 | } |
@@ -360,8 +359,7 @@ discard block |
||
| 360 | 359 | $this->fields['user_colour'] = 'topic_last_poster_colour'; |
| 361 | 360 | |
| 362 | 361 | $this->ptemplate->assign_var('L_POST_BY_AUTHOR', $this->user->lang('LAST_POST_BY_AUTHOR')); |
| 363 | - } |
|
| 364 | - else |
|
| 362 | + } else |
|
| 365 | 363 | { |
| 366 | 364 | $this->fields['time'] = 'topic_time'; |
| 367 | 365 | $this->fields['user_id'] = 'topic_poster'; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | { |
| 168 | 168 | for ($i = 0, $size = sizeof($topic_data); $i < $size; $i++) |
| 169 | 169 | { |
| 170 | - $row =& $topic_data[$i]; |
|
| 170 | + $row = & $topic_data[$i]; |
|
| 171 | 171 | $forum_id = $row['forum_id']; |
| 172 | 172 | $topic_id = $row['topic_id']; |
| 173 | 173 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | { |
| 198 | 198 | for ($i = 0, $size = sizeof($topic_data); $i < $size; $i++) |
| 199 | 199 | { |
| 200 | - $row =& $topic_data[$i]; |
|
| 200 | + $row = & $topic_data[$i]; |
|
| 201 | 201 | $forum_id = $row['forum_id']; |
| 202 | 202 | $topic_id = $row['topic_id']; |
| 203 | 203 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | for ($i = 0, $size = sizeof($topic_data); $i < $size; $i++) |
| 236 | 236 | { |
| 237 | - $topic_row =& $topic_data[$i]; |
|
| 237 | + $topic_row = & $topic_data[$i]; |
|
| 238 | 238 | $forum_id = $topic_row['forum_id']; |
| 239 | 239 | $topic_id = $topic_row['topic_id']; |
| 240 | 240 | $post_row = array_pop($post_data[$topic_id]); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | // Delete block data |
| 55 | 55 | $this->db->sql_query('DELETE FROM ' . $this->cblocks_table . ' WHERE block_id = ' . (int) $id); |
| 56 | 56 | |
| 57 | - $sql_data = array( |
|
| 57 | + $sql_data = array( |
|
| 58 | 58 | 'block_id' => $id, |
| 59 | 59 | 'block_content' => $content, |
| 60 | 60 | 'bbcode_bitfield' => '', |
@@ -41,8 +41,7 @@ |
||
| 41 | 41 | if (is_array($message)) |
| 42 | 42 | { |
| 43 | 43 | $this->message = (string) $message[0]; |
| 44 | - } |
|
| 45 | - else |
|
| 44 | + } else |
|
| 46 | 45 | { |
| 47 | 46 | $this->message = $message; |
| 48 | 47 | } |
@@ -79,8 +79,7 @@ |
||
| 79 | 79 | 'title' => 'LOGIN', |
| 80 | 80 | 'content' => $this->ptemplate->render_view('blitze/sitemaker', 'blocks/login.html', 'login_block') |
| 81 | 81 | ); |
| 82 | - } |
|
| 83 | - else if ($settings['show_member_menu']) |
|
| 82 | + } else if ($settings['show_member_menu']) |
|
| 84 | 83 | { |
| 85 | 84 | $block = $this->phpbb_container->get('blitze.sitemaker.block.member_menu'); |
| 86 | 85 | $block->set_template($this->ptemplate); |
@@ -91,8 +91,8 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | private function clean_styles() |
| 93 | 93 | { |
| 94 | - $routes_ary = $this->manager->get_routes_per_style(); |
|
| 95 | - $style_ids = $this->get_style_ids(); |
|
| 94 | + $routes_ary = $this->manager->get_routes_per_style(); |
|
| 95 | + $style_ids = $this->get_style_ids(); |
|
| 96 | 96 | |
| 97 | 97 | $routes = array(); |
| 98 | 98 | foreach ($routes_ary as $style_id => $style_routes) |