@@ -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'; |
@@ -237,8 +237,7 @@ |
||
237 | 237 | { |
238 | 238 | $padding .= $pad_with; |
239 | 239 | $padding_store[$row['parent_id']] = $padding; |
240 | - } |
|
241 | - else if ($row['left_id'] > $right + 1) |
|
240 | + } else if ($row['left_id'] > $right + 1) |
|
242 | 241 | { |
243 | 242 | $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : ''; |
244 | 243 | } |
@@ -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, |
@@ -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 | } |
@@ -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 | } |
@@ -177,13 +177,11 @@ |
||
177 | 177 | { |
178 | 178 | $route = ltrim(dirname($page_dir) . '/index.php', './'); |
179 | 179 | $parent_route = $this->get_parent_route_info($routes, $route); |
180 | - } |
|
181 | - else if ($current_route === 'viewtopic.' . $this->php_ext) |
|
180 | + } else if ($current_route === 'viewtopic.' . $this->php_ext) |
|
182 | 181 | { |
183 | 182 | $route = 'viewforum.' . $this->php_ext; |
184 | 183 | $parent_route = $this->get_parent_route_info($routes, $route); |
185 | - } |
|
186 | - else |
|
184 | + } else |
|
187 | 185 | { |
188 | 186 | $parent_route = $this->get_virtual_parent($routes, $current_route); |
189 | 187 | } |
@@ -43,8 +43,7 @@ |
||
43 | 43 | if ('get' == $match[1]) |
44 | 44 | { |
45 | 45 | return $this->$attribute; |
46 | - } |
|
47 | - else |
|
46 | + } else |
|
48 | 47 | { |
49 | 48 | $this->$attribute = $this->validate_attribute($match[2], $args[0]); |
50 | 49 | return $this; |
@@ -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 | } |