@@ -69,8 +69,7 @@ |
||
69 | 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 | - } |
|
73 | - else |
|
72 | + } else |
|
74 | 73 | { |
75 | 74 | $item_id = 0; |
76 | 75 | $item = 'forum'; |
@@ -260,8 +260,7 @@ |
||
260 | 260 | 'depth' => $new_parent['depth'] + 1, |
261 | 261 | 'right_id' => --$new_parent['right_id'], |
262 | 262 | ); |
263 | - } |
|
264 | - else |
|
263 | + } else |
|
265 | 264 | { |
266 | 265 | return array( |
267 | 266 | 'depth' => 0, |
@@ -232,8 +232,7 @@ |
||
232 | 232 | if (sizeof($post_ids)) |
233 | 233 | { |
234 | 234 | $sql_where[] = $this->db->sql_in_set('p.post_id', $post_ids); |
235 | - } |
|
236 | - else if (sizeof($this->store['topic'])) |
|
235 | + } else if (sizeof($this->store['topic'])) |
|
237 | 236 | { |
238 | 237 | $this->_limit_posts_by_topic($sql_where, $topic_first_or_last_post); |
239 | 238 | } |
@@ -40,8 +40,7 @@ |
||
40 | 40 | if ($this->can_track_by_lastread()) |
41 | 41 | { |
42 | 42 | $info = $this->build_tracking_info('get_topic_tracking', $forums, $topics); |
43 | - } |
|
44 | - else if ($this->can_track_anonymous()) |
|
43 | + } else if ($this->can_track_anonymous()) |
|
45 | 44 | { |
46 | 45 | $info = $this->build_tracking_info('get_complete_topic_tracking', $forums, $topics); |
47 | 46 | } |
@@ -104,8 +104,7 @@ |
||
104 | 104 | if (!isset($key)) |
105 | 105 | { |
106 | 106 | $this->entities[] = $entity; |
107 | - } |
|
108 | - else |
|
107 | + } else |
|
109 | 108 | { |
110 | 109 | $this->entities[$key] = $entity; |
111 | 110 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | if ($entity->get_item_id()) |
97 | 97 | { |
98 | 98 | $item = $this->tree->update_item($entity->get_item_id(), $sql_data); |
99 | - } |
|
100 | - else |
|
99 | + } else |
|
101 | 100 | { |
102 | 101 | $item = $this->tree->insert($sql_data); |
103 | 102 | } |
@@ -175,8 +175,7 @@ |
||
175 | 175 | if (!is_array($settings)) |
176 | 176 | { |
177 | 177 | $this->settings = $settings; |
178 | - } |
|
179 | - else if (sizeof($settings)) |
|
178 | + } else if (sizeof($settings)) |
|
180 | 179 | { |
181 | 180 | $this->settings = json_encode($settings); |
182 | 181 | $this->hash = md5($this->settings); |
@@ -88,8 +88,7 @@ |
||
88 | 88 | $return_data = $command->execute($style_id); |
89 | 89 | |
90 | 90 | $this->action_handler->clear_cache(); |
91 | - } |
|
92 | - catch (\blitze\sitemaker\exception\base $e) |
|
91 | + } catch (\blitze\sitemaker\exception\base $e) |
|
93 | 92 | { |
94 | 93 | $json_data['message'] = $e->get_message($this->translator); |
95 | 94 | } |
@@ -63,12 +63,10 @@ |
||
63 | 63 | $return_data = $command->execute(); |
64 | 64 | |
65 | 65 | $this->action_handler->clear_cache(); |
66 | - } |
|
67 | - catch (\blitze\sitemaker\exception\base $e) |
|
66 | + } catch (\blitze\sitemaker\exception\base $e) |
|
68 | 67 | { |
69 | 68 | $return_data['message'] = $e->get_message($this->translator); |
70 | - } |
|
71 | - catch (\Exception $e) |
|
69 | + } catch (\Exception $e) |
|
72 | 70 | { |
73 | 71 | $return_data['message'] = $this->translator->lang($e->getMessage()); |
74 | 72 | } |