@@ -101,8 +101,7 @@ |
||
| 101 | 101 | if (!isset($key)) |
| 102 | 102 | { |
| 103 | 103 | $this->_entities[] = $entity; |
| 104 | - } |
|
| 105 | - else |
|
| 104 | + } else |
|
| 106 | 105 | { |
| 107 | 106 | $this->_entities[$key] = $entity; |
| 108 | 107 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -164,8 +164,7 @@ |
||
| 164 | 164 | if (!is_array($settings)) |
| 165 | 165 | { |
| 166 | 166 | $this->settings = $settings; |
| 167 | - } |
|
| 168 | - else if (sizeof($settings)) |
|
| 167 | + } else if (sizeof($settings)) |
|
| 169 | 168 | { |
| 170 | 169 | $this->settings = serialize($settings); |
| 171 | 170 | $this->hash = md5($this->settings); |