@@ -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 | } |
@@ -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 | } |
@@ -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 | } |